curl --request POST \
--url https://api.blockradar.co/v1/wallets/{walletId}/addresses \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"disableAutoSweep": "OPTIONAL_BOOLEAN",
"enableGaslessWithdraw": "OPTIONAL_BOOLEAN",
"metadata": "OPTIONAL_METADATA",
"name": "OPTIONAL_ADDRESS_NAME",
"showPrivateKey": "OPTIONAL_BOOLEAN"
}'
{
"data": {
"address": "0xe1037B45b48390285e5067424053fa35c478296b",
"blockchain": {
"createdAt": "2024-05-14T11:53:33.095Z",
"derivationPath": "m/44'/60'/0'/0",
"id": "85ffc132-3972-4c9e-99a5-5cf0ccb688bf",
"isActive": true,
"isEvmCompatible": true,
"logoUrl": "https://res.cloudinary.com/blockradar/image/upload/v1716800081/crypto-assets/ethereum-eth-logo_idraq2.png",
"name": "ethereum",
"slug": "ethereum",
"symbol": "eth",
"tokenStandard": "ERC20",
"updatedAt": "2024-06-14T22:32:11.983Z"
},
"configurations": {
"aml": {
"message": "Address is not sanctioned",
"provider": "ofac",
"status": "success"
},
"disableAutoSweep": false,
"enableGaslessWithdraw": false,
"showPrivateKey": false
},
"createdAt": "2024-10-23T11:13:40.446Z",
"derivationPath": "m/44'/60'/0'/0/87",
"id": "0a69c48a-6c6f-422c-bd6a-70de3306a3ac",
"isActive": true,
"metadata": {
"user_id": 1
},
"name": "Customer 1",
"network": "testnet",
"type": "INTERNAL",
"updatedAt": "2024-10-23T11:13:40.446Z"
},
"message": "Address generated successfully",
"statusCode": 200
}
This endpoint allows you to create a new address for a specific wallet.
Key | Required | Type | Description |
---|---|---|---|
name | false | string | The name of the address. |
metadata | false | object | Additional metadata for the address, this will be part of any transaction tied to this |
showPrivateKey | false | boolean | If you want the address private key to be part of the response |
disableAutoSweep | false | boolean | Disable automatic sweeping of assets sent to the address into your master wallet |
enableGaslessWithdraw | false | boolean | Enable gasless transactions from this address |
curl --request POST \
--url https://api.blockradar.co/v1/wallets/{walletId}/addresses \
--header 'Content-Type: application/json' \
--header 'x-api-key: <api-key>' \
--data '{
"disableAutoSweep": "OPTIONAL_BOOLEAN",
"enableGaslessWithdraw": "OPTIONAL_BOOLEAN",
"metadata": "OPTIONAL_METADATA",
"name": "OPTIONAL_ADDRESS_NAME",
"showPrivateKey": "OPTIONAL_BOOLEAN"
}'
{
"data": {
"address": "0xe1037B45b48390285e5067424053fa35c478296b",
"blockchain": {
"createdAt": "2024-05-14T11:53:33.095Z",
"derivationPath": "m/44'/60'/0'/0",
"id": "85ffc132-3972-4c9e-99a5-5cf0ccb688bf",
"isActive": true,
"isEvmCompatible": true,
"logoUrl": "https://res.cloudinary.com/blockradar/image/upload/v1716800081/crypto-assets/ethereum-eth-logo_idraq2.png",
"name": "ethereum",
"slug": "ethereum",
"symbol": "eth",
"tokenStandard": "ERC20",
"updatedAt": "2024-06-14T22:32:11.983Z"
},
"configurations": {
"aml": {
"message": "Address is not sanctioned",
"provider": "ofac",
"status": "success"
},
"disableAutoSweep": false,
"enableGaslessWithdraw": false,
"showPrivateKey": false
},
"createdAt": "2024-10-23T11:13:40.446Z",
"derivationPath": "m/44'/60'/0'/0/87",
"id": "0a69c48a-6c6f-422c-bd6a-70de3306a3ac",
"isActive": true,
"metadata": {
"user_id": 1
},
"name": "Customer 1",
"network": "testnet",
"type": "INTERNAL",
"updatedAt": "2024-10-23T11:13:40.446Z"
},
"message": "Address generated successfully",
"statusCode": 200
}
"YOUR_WALLET_ID"
200
The response is of type object
.