Withdraw Crypto

Learn how to withdraw crypto from your account to an external wallet.

Before You Begin

Make sure you have funds in your account. If not, check out how to get funds into your account here.

Withdraw Crypto

1. Withdraw 20 USDC

POST https://sandbox.conduit.financial/transactions

  • Replace source with the allocation id you want to withdraw from
  • Replace destination with the wallet address you want to withdraw to
{
  "data": {
    "attributes": {
      "assetType": "asset:eth:USDC",
      "amount": "20000000",
      "source": "id:allc:2J8OkA50iEKCUdAP64xbgU14Irf",
      "destination": "wlt:eth:0x0000000000000000000000000000000000000000"
    }
  }
}
{
  "data": {
    "id": "id:trxn:2JEmbbAXZ2TgNNNuchmSW916Bw7",
    "type": "transaction",
    "attributes": {
      "createdAt": "2022-12-21T19:41:29.771Z",
      "createdBy": "client",
      "effectiveDate": "2022-12-21",
      "amount": "20000000",
      "source": "id:allc:2J8OkA50iEKCUdAP64xbgU14Irf",
      "destination": "wlt:eth:0x0000000000000000000000000000000000000000",
      "status": "pending",
      "assetType": "asset:eth:USDC"
    },
    "relationships": {
      "source": {
        "links": {
          "self": "/transactions/id:trxn:2JEmbbAXZ2TgNNNuchmSW916Bw7/relationships/source",
          "related": "/transactions/id:trxn:2JEmbbAXZ2TgNNNuchmSW916Bw7/source"
        },
        "data": {
          "id": "id:allc:2J8OkA50iEKCUdAP64xbgU14Irf",
          "type": "id"
        }
      },
      "destination": {
        "links": {
          "self": "/transactions/id:trxn:2JEmbbAXZ2TgNNNuchmSW916Bw7/relationships/destination",
          "related": "/transactions/id:trxn:2JEmbbAXZ2TgNNNuchmSW916Bw7/destination"
        },
        "data": {
          "id": "wlt:eth:0x0000000000000000000000000000000000000000",
          "type": "wallet"
        }
      },
      "quote": {
        "links": {
          "self": "/transactions/id:trxn:2JEmbbAXZ2TgNNNuchmSW916Bw7/relationships/quote",
          "related": "/transactions/id:trxn:2JEmbbAXZ2TgNNNuchmSW916Bw7/quote"
        },
        "data": null
      }
    }
  }
}

2. Check Balance

With the withdrawal confirmed, the deducted USDC should reflect in your account. Verify by checking your account balance.

GET https://sandbox.conduit.financial/accounts/id:acct:{your_account_id}

{
  "data": {
    "id": "id:acct:2J8Ok1bfIrvpNcX2V8QwDMigUKE",
    "type": "account",
    "attributes": {
      "balances": {
        "available": [
          {
            "assetType": "asset:eth:USDC",
            "amount": "300000000"
          }
        ],
        "pending": [
          {
            "assetType": "asset:eth:USDC",
            "amount": "200000000"
          }
        ]
      }
    },
    "relationships": {
      "account-holders": {
        "links": {
          "self": "/accounts/id:acct:2J8Ok1bfIrvpNcX2V8QwDMigUKE/relationships/account-holders",
          "related": "/accounts/id:acct:2J8Ok1bfIrvpNcX2V8QwDMigUKE/account-holders"
        },
        "data": [
          {
            "id": "id:ahl:2J8Ocs7KFZJt3CMPi9f0x8UCCQ0",
            "type": "account-holder"
          }
        ]
      },
      "allocations": {
        "links": {
          "self": "/accounts/id:acct:2J8Ok1bfIrvpNcX2V8QwDMigUKE/relationships/allocations",
          "first": "/accounts/id:acct:2J8Ok1bfIrvpNcX2V8QwDMigUKE/relationships/allocations",
          "next": null,
          "related": "/accounts/id:acct:2J8Ok1bfIrvpNcX2V8QwDMigUKE/allocations"
        },
        "data": [
          {
            "id": "id:allc:2J8OkA50iEKCUdAP64xbgU14Irf",
            "type": "allocation"
          }
        ]
      },
      "wallets": {
        "links": {
          "self": "/accounts/id:acct:2J8Ok1bfIrvpNcX2V8QwDMigUKE/relationships/wallets",
          "related": "/accounts/id:acct:2J8Ok1bfIrvpNcX2V8QwDMigUKE/wallets"
        },
        "data": []
      }
    }
  },
  "included": [
    {
      "id": "id:allc:2J8OkA50iEKCUdAP64xbgU14Irf",
      "type": "allocation",
      "attributes": {
        "effectiveYieldRate": "0",
        "conduitTakeRate": "20",
        "clientTakeRate": "0",
        "poolId": "id:pool:2H1E3EPxcafvzFKOyoLUwO2PfcK",
        "poolYieldRate": "0",
        "accountId": "id:acct:2J8Ok1bfIrvpNcX2V8QwDMigUKE",
        "poolName": "default_pool_usdc",
        "balances": {
          "available": [
            {
              "assetType": "asset:eth:USDC",
              "amount": "300000000"
            }
          ],
          "pending": [
            {
              "assetType": "asset:eth:USDC",
              "amount": "0"
            }
          ],
          "accruedYield": [
            {
              "assetType": "asset:eth:USDC",
              "amount": "0"
            }
          ]
        }
      }
    }
  ]
}

What’s Next

Now that you know how to deposit and withdraw crypto, learn how to start earning yield.