直达内容

创建提现地址

POST /addresses

创建一个提现地址

API 端点 URL

 https://api.mixin.one/addresses

授权和其他选项

授权
Authorized
限制No limitation

请求体

{
"asset_id": "资产 ID",
"label": "地址名称",
"destination": "提现地址",
"tag": "提现地址 memo",
"pin_base64": "加密后的 PIN",
}

TIP Pin 结构

"TIP:ADDRESS:ADD:" + asset_id + destination + tag + label

pin_base64 是上面值的 sha256-256 的结果

请求示例

curl -i -X POST -H "Content-Type: application/json" -H "Authorization: Bearer $TOKEN" https://api.mixin.one/addresses --data '{"asset_id":"43d61dcd-e413-450d-80b8-101d5e903357","label":"Jason ETH Address","pin":"nRF5OyFmO4REG6lcPk1jwKDJrENim791uLe+HH0g7EwQHXK9FgCMJl5RDKbeCNDW","destination":"0x86fa049857e0209aa7d9e616f7eb3b3b78ecfdb0", "tag": "", "label": ""}'
Response
{
"data":{
"type": "address",
"address_id": "e1524f3c-2e4f-411f-8a06-b5e1b1601308",
"asset_id": "43d61dcd-e413-450d-80b8-101d5e903357",
"destination":"0x86Fa049857E0209aa7D9e616F7eb3b3B78ECfdb0",
"tag": "",
"label": "Eth Address",
"fee_asset_id": "43d61dcd-e413-450d-80b8-101d5e903357",
"fee": "0.016",
"reserve": "0",
"dust": "0.0001",
"updated_at": "2018-07-10T03:58:17.5559296Z"
}
}