Depa LogoDocsv1
The Journal

Blockchain Wallets & Custody

Generating deposit addresses, monitoring on-chain balances, and estimating network gas fees.

Blockchain wallets hold or receive stablecoins and crypto for an account, on Polygon, Ethereum, Solana, Tron and Bitcoin. There are two kinds:

  • Deposit wallets (kind: deposits): addresses Depa generates for the account. Funds sent to them are credited to the account's ledger.
  • Source wallets (kind: source): external addresses you whitelist as payout destinations.

1. Creating a Deposit Wallet

Generate a new deposit address on your target network. Leave address out for deposit wallets:

Request

curl -X POST https://sandbox.depasify.com/api/v1/accounts/8f3a2c1e-5b7d-4e9a-9c21-7d4b6e0f1a23/blockchain_wallets \
  -H "Authorization: Bearer <your_jwt_token>" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "USDC on Polygon",
    "currency": "USDC",
    "network": "POLYGON",
    "kind": "deposits"
  }'

Response

{
  "data": {
    "id": "9a7b3c2d-1e4f-4a6b-8c9d-0e1f2a3b4c5d",
    "name": "USDC on Polygon",
    "address": "0x5aAeb6053F3E94C9b9A09f33669435E7Ef1BeAed",
    "network": "POLYGON",
    "kind": "deposits",
    "memo": null,
    "balance": [["USDC", "0.0"]],
    "created_at": 1772813114
  }
}

To whitelist a payout address instead, send "kind": "source" with the external address.


2. Estimating Network Fees

Before sending an on-chain payment, check the network fee for a wallet:

curl https://sandbox.depasify.com/api/v1/accounts/8f3a2c1e-5b7d-4e9a-9c21-7d4b6e0f1a23/blockchain_wallets/9a7b3c2d-1e4f-4a6b-8c9d-0e1f2a3b4c5d/fees \
  -H "Authorization: Bearer <your_jwt_token>"

Response

{
  "data": {
    "network": "POLYGON",
    "fees": 0.05
  }
}

For an estimate by network and asset without a wallet, use GET /gas_fees.

On this page

🍪 We do not track your behaviour or use any cookie on this site.