接入API

POST /api/v1/sub_address_withdrawal/info

请求

请求参数

名称类型是否必须描述
pidinteger(int64)项目编号
cidinteger(int64)系统流水号,子地址出款请求响应data中的cid
noncestring6位随机字符串
timestampinteger(int64)时间戳,单位毫秒
signstring签名
请求示例
{
  "pid": 1382528827416576,
  "cid": 1382626461605888,
  "nonce": "sw7kv5",
  "timestamp": 1687853722065,
  "sign": "af825ddb839e6796d62977caf18d3394"
}

返回

返回数据

名称类型描述
codestring返回码
msgstring返回信息
dataobject返回数据

返回数据 data 对象

名称类型描述
pidinteger(int64)项目编号
chain_idstring链编号
token_idstring代币编号
currencystring币种标识
from_addressstring发送方地址
to_addressstring接收方地址
amountstring金额
statusinteger(int32)状态
third_party_idstring调用方业务编号
remarkstring备注
memostringmemo、tag等上链信息,仅Ton、Xrp支持
txidstring交易hash
block_heightstring区块高度
block_timeinteger(int64)区块时间

返回数据 status 类型

状态(status)描述
0待审批
4审批驳回
5待签名
1签名通过
2签名驳回
6交易成功
7交易失败
返回示例
{
  "code": "00000",
  "msg": "ok",
  "data": {
    "pid": 1382528827416576,
    "from_address": "rqkVSVbsatX3mXAc64g9wTihrmoLwpiuB",
    "to_address": "rn5Jyu5J6PG64543KdGvS25rQBYFQo7GLc",
    "chain_id": "144",
    "token_id": "144",
    "currency": "XRP",
    "amount": "1.1",
    "third_party_id": "1e0fb3a0a9454ad8928d26b592e8b3c7",
    "remark": "payout",
     "memo": "123",
    "status": 0,
    "txid": "6dd05b0972075542219a3fcc116c58feaf9480f1f698cc46c4367ded83955cfd",
    "block_height": "34527604",
    "block_time": 1686814482000
  }
}