Asset Management
Add Asset to Wallet
API Documentation
Wallet Management
Address Operations
- GETGet Addresses
- POSTGenerate Address
- GETGet Address
- PATCHUpdate Address
- POSTWhitelist address
- DELUnwhitelist address
- GETGet Balance
- GETGet Balances
- GETGet transactions
- POSTWithdraw Network Fee
- POSTWithdraw
- POSTGet Swap Quote
- POSTSwap Execute
- POSTCustom Smart Contract Network Fee
- POSTCustom Smart Contract Read
- POSTCustom Smart Contract Write
Withdrawals
Custom Smart Contracts
Asset Management
Transactions
AML(Anti Money Laundering)
Auto Settlements
Asset Recovery
Payment Links
Miscellaneous
Asset Management
Add Asset to Wallet
This endpoint allows you to add assets to a specific wallet
Body Parameters
Key | Required | Type | Description |
---|---|---|---|
assetId | true | string | The asset id you want this wallet to support. |
POST
/
v1
/
wallets
/
{walletId}
/
assets
curl --request POST \
--url https://api.blockradar.co/v1/wallets/{walletId}/assets \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"assetId": "ASSET_ID"
}'
{
"data": {
"asset": {
"address": "0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238",
"createdAt": "2024-05-14T14:53:33.682Z",
"decimals": 6,
"id": "fe04a28c-c615-4e41-8eda-f84c862864f5",
"isActive": true,
"name": "USDC Coin",
"network": "testnet",
"symbol": "USDC",
"updatedAt": "2024-05-27T12:24:11.951Z"
},
"createdAt": "2024-05-26T08:11:43.129Z",
"id": "c4c26507-207b-4070-b968-31171881c227",
"isActive": true,
"updatedAt": "2024-06-06T09:37:55.873Z"
},
"message": "Asset added successfully",
"statusCode": 200
}
Authorizations
Path Parameters
Example:
"YOUR_WALLET_ID"
Body
application/json
Response
201 - application/json
200
The response is of type object
.
curl --request POST \
--url https://api.blockradar.co/v1/wallets/{walletId}/assets \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"assetId": "ASSET_ID"
}'
{
"data": {
"asset": {
"address": "0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238",
"createdAt": "2024-05-14T14:53:33.682Z",
"decimals": 6,
"id": "fe04a28c-c615-4e41-8eda-f84c862864f5",
"isActive": true,
"name": "USDC Coin",
"network": "testnet",
"symbol": "USDC",
"updatedAt": "2024-05-27T12:24:11.951Z"
},
"createdAt": "2024-05-26T08:11:43.129Z",
"id": "c4c26507-207b-4070-b968-31171881c227",
"isActive": true,
"updatedAt": "2024-06-06T09:37:55.873Z"
},
"message": "Asset added successfully",
"statusCode": 200
}