跳至主要内容

根据指定的路径创建地址

  • 根据指定派生路径创建地址
  • 仅支持“WaaS”业务
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

successful operation


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
POST /v1/waas/mpc/wallet/advance/gen_address_by_path

Authorization

name: BIZ-API-KEYtype: apiKeyin: headerdescription: 您的 WaaS API Key 公钥.
name: BIZ-API-NONCEtype: apiKeyin: headerdescription: 包含在待签名数据中的时间戳.
name: BIZ-API-SIGNATUREtype: apiKeyin: headerdescription: 使用您的 API Key 私钥对请求信息所做的签名。

Request

Base URL
https://api.sinohope.com
BIZ-API-KEY
BIZ-API-NONCE
BIZ-API-SIGNATURE
Body
{
"vaultId": "450632968208222",
"walletId": "413497079388421",
"index": "1",
"algorithmType": 1,
"coinType": 10
}
go / requests