Generate chain address
- /v1/waas/mpc/wallet/generate_chain_addresses DEPRECATED
- Supports "self-custody" and "WaaS" services.
application/json
Request Body
requestId string required
business unique value
vaultId string required
Vault id
walletId string required
wallet id
count integer
How many to create. Default value is 1, maximum value is 50.
chainSymbol string required
Chain name, abbreviation, chain identifier, unique
encoding int
Address type 1:LEGACY,2:SEGWIT_NATIVE,3:SEGWIT_NESTED,4:TAPROOT if left empty, default is 1:LEGACY)
Responses
- 200
successful operation
application/json
Schema
Example (from schema)
Schema
code integer
msg string
data object[]
success boolean
{
"code": 200,
"msg": "",
"data": [
{
"id": "11368",
"address": "0x4b1613e2501b770463a12e397b34d9cac0d9497c",
"hdPath": "m/1/1/60/0",
"encoding": 0,
"pubkey": "021855d461cf75ac6579d32a2af92d0dc26f0f0736ac766f8ad7894407ab360ffb"
}
],
"success": true
}
POST /v1/api/address/generate_chain_addresses
Authorization
name: BIZ-API-KEYtype: apiKeyin: headerdescription: Your API-KEY(public key).
name: BIZ-API-NONCEtype: apiKeyin: headerdescription: A nonce value (timestamp) that is included in the data to be signed.
name: BIZ-API-SIGNATUREtype: apiKeyin: headerdescription: signature of the request information(nonce,path,body) using your api private key.
Request
Request
go / requests
nodejs / axios
java / unirest
python / requests
ruby / RestSharp
csharp / httpclient
php / OkHttp