Account
Get Addresses List
This endpoint returns a JSON response containing a list of wallet addresses and their associated information. The endpoint takes in a chain code and optional parameters for pagination and sorting. The response includes the total count of addresses and a list of addresses with their respective ID, address, encoding, and HD path.
GET
/
v1
/
custody
/
mpc
/
list_addresses
/
Authorization
Query
request(
"GET",
"/v1/custody/mpc/list_addresses/",
{
"chain_code": "ETH",
"start_id": "721887227156373678",
"end_id": "",
"limit": 2,
"sort": 0
},
api_key, api_secret, host
)
{
"success": true,
"result": {
"total": 2,
"addresses": [
{
"id": 721941011752862138,
"address": "0x297db9241bfe5665641951bcf166feebd003870c",
"encoding": 0,
"hd_path": "m/44/60/1/0/85",
"description":""
},
{
"id": 721941011752862137,
"address": "0x14cf9de0d8062ca53af5c92dcc574c8f3acb6da5",
"encoding": 0,
"hd_path": "m/44/60/1/0/84",
"description":""
}
]
}
}
Request
chain_code
String
requiredChain code of the wallet addresses.
start_id
String
ID of an address to start with; the latest address information will be returned if neither the start ID nor the end ID is specified
end_id
String
ID of an address to end with; the latest address information will be returned if neither the start ID nor the end ID is specified
limit
Int
number of entries per page; max: 50; default: 50
sort
Int
address sorting method; 1: based on creation time, from earliest to latest; other value: based on creation time, from latest to earliest (default)
Response
success
bool
request successful or failed
result
object
request(
"GET",
"/v1/custody/mpc/list_addresses/",
{
"chain_code": "ETH",
"start_id": "721887227156373678",
"end_id": "",
"limit": 2,
"sort": 0
},
api_key, api_secret, host
)
{
"success": true,
"result": {
"total": 2,
"addresses": [
{
"id": 721941011752862138,
"address": "0x297db9241bfe5665641951bcf166feebd003870c",
"encoding": 0,
"hd_path": "m/44/60/1/0/85",
"description":""
},
{
"id": 721941011752862137,
"address": "0x14cf9de0d8062ca53af5c92dcc574c8f3acb6da5",
"encoding": 0,
"hd_path": "m/44/60/1/0/84",
"description":""
}
]
}
}