Account
Generate Addresses
This endpoint generates new addresses for a given chain code and returns a list of the generated addresses. The number of addresses to generate is specified in the 'count' parameter of the POST request. The maximum number of addresses that can be generated in one request is 200. The endpoint also checks if the organization has permission to add addresses and if the number of addresses being added exceeds the minutely limit. The response contains a list of the generated addresses along with their IDs, HD paths, and encodings.
POST
/
v1
/
custody
/
mpc
/
generate_addresses
/
Authorization
Body
request(
"POST",
"/v1/custody/mpc/generate_addresses/",
{
"chain_code": "ETH",
"count": 2
},
api_key, api_secret, host
)
{
"success": true,
"result": {
"addresses": [
{
"id": 721935051680543203,
"address": "0xd80e19dddb11e9a91f7aa644306564538e4b8586",
"hd_path": "m/44/60/1/0/82",
"encoding": 0
},
{
"id": 721935051680543204,
"address": "0x4cc90d4cfa5765bcdcde6aaada434eba30a5c949",
"hd_path": "m/44/60/1/0/83",
"encoding": 0
}
]
}
}
Request
chain_code
String
requiredThe chain code for which the addresses are to be generated.
count
Int
requiredThe number of addresses to generate.
Response
success
bool
request successful or failed
result
object
request(
"POST",
"/v1/custody/mpc/generate_addresses/",
{
"chain_code": "ETH",
"count": 2
},
api_key, api_secret, host
)
{
"success": true,
"result": {
"addresses": [
{
"id": 721935051680543203,
"address": "0xd80e19dddb11e9a91f7aa644306564538e4b8586",
"hd_path": "m/44/60/1/0/82",
"encoding": 0
},
{
"id": 721935051680543204,
"address": "0x4cc90d4cfa5765bcdcde6aaada434eba30a5c949",
"hd_path": "m/44/60/1/0/83",
"encoding": 0
}
]
}
}