Apply New Address
For both segregated warm wallet and segregated cold wallet.
Request
POST https://custody-example-url/custody/v1/api/projects/{b_id}/wallets/{wallet_code}/addresses/apply
Parameters
Field | Type | Description |
---|---|---|
b_id | String | Business line ID |
wallet_code | String | Wallet ID |
coin_name Optional |
String | coin_name |
address_num | Integer | Number of addresses applied, max 50 |
address_type | Enum | Address type (NORMAL_ADDRESS) Allowed values: "NORMAL_ADDRESS" |
address_idOptional |
String | Pass same ID will return same result to avoid duplication, max length is 50 |
[!TIP|style:flat] For Ethereum multi-sign and Tron multi-sign cold wallet, will only create 1 address regardless the value of address_num, and will not return address in the response, need to query address list API to get the new address
Response
Field | Type | Description |
---|---|---|
code | Integer | Response code |
message | String | Response message |
successful | Boolean | If the request is successful |
data | Object | Address list |
Response Example
{
"code": 0,
"message": "",
"data":["mkAbCEHS1d8QZfYveiU6YEhDbCGp2Cky9v","mn4FFTQqs6VxE1ADCBg7jZS6t6J6sLRhKQ"],
"successful": true
}