根据指定的路径创建地址
根据指定派生路径创建地址
application/json
Request Body
vaultId string required
金库id
walletId string required
钱包id
index string required
用于区分同一个钱包的同一个cointype 下的不同地址
algorithmType integer required
算法类型(0: "ECDSA:secp256k1", 1: "EdDSA:ed25519")
coinType integer required
参考slip-44 https://github.com/satoshilabs/slips/blob/master/slip-0044.md 中定义的coin type常量,使用none-hardened 的版本。根据业界常规做法,对于所有 eth-like 公链,可共用以太坊的 coin type 60
Responses
- 200
successful operation
application/json
Schema
Example (from schema)
Schema
code integer
msg string
data object
地址信息
id string
地址id
address string
链地址
hdPath string
地址对应的path
encoding integer
链地址 地址类型(1:LEGACY,2:SEGWIT_NATIVE,3:SEGWIT_NESTED,4:TAPROOT 不填默认为1:LEGACY)
pubkey string
公钥
success boolean
{
"code": 200,
"msg": "",
"data": {
"id": "11368",
"address": "0x4b1613e2501b770463a12e397b34d9cac0d9497c",
"hdPath": "m/1/1/60/0",
"encoding": 0,
"pubkey": "021855d461cf75ac6579d32a2af92d0dc26f0f0736ac766f8ad7894407ab360ffb"
},
"success": true
}
Loading...