Skip to content

Issue a Deposit Address ​

A deposit address is created for an account, asset type, and network. Discover IDs from the current environment instead of hard-coding values from another deployment.

First review Deposit Addresses for destination roles, address string reuse, memos, and their relationship to deposit transactions.

Discover Sepolia USDT ​

bash
usdt_response="$(wallet_request GET '/asset-types?code=USDT&page=1&page_size=20')"
sepolia_response="$(wallet_request GET '/networks?is_active=true&page=1&page_size=100')"

export ASSET_TYPE_ID="$(printf '%s' "$usdt_response" | jq -er '.data.items[0].id // empty')"
export NETWORK_ID="$(printf '%s' "$sepolia_response" | jq -er '.data.items[] | select(.chain_id == 11155111) | .network_id')"
export ASSET_DECIMALS="$(printf '%s' "$usdt_response" | jq -er '.data.items[0].decimals // empty')"

First verify success and the USDT result. Select Sepolia by chain_id: 11155111 rather than an environment-specific code. If it is absent, check subsequent pages and availability in the target environment, and stop until resolved.

Verify that the asset/network combination is deployed and active.

bash
wallet_request GET "/assets/by-type-network?asset_type_id=$ASSET_TYPE_ID&network_id=$NETWORK_ID" | jq

Proceed only when success and data.is_active are true and the response matches USDT on Ethereum Sepolia.

Create the address ​

Send IDs as JSON numbers.

bash
address_body="{\"asset_type_id\":$ASSET_TYPE_ID,\"network_id\":$NETWORK_ID}"

address_response="$(
  wallet_request POST "/accounts/$ACCOUNT_ID/deposit-addresses" "$address_body"
)"
printf '%s\n' "$address_response" | jq

export DEPOSIT_ADDRESS="$(printf '%s' "$address_response" | jq -r '.data.address')"

Persist the returned address with ACCOUNT_ID, ASSET_TYPE_ID, and NETWORK_ID. EVM networks generally return tag_or_memo: null; other networks may require it and the customer interface must display it with the address.

Retrieve issued addresses ​

bash
wallet_request GET "/accounts/$ACCOUNT_ID/deposit-addresses?page=1&page_size=20" | jq

Display the network name prominently. Sending an asset on the wrong network can make recovery impossible.

Next: Check a deposit.

OOLIN is a digital asset operations infrastructure product by BPMG.