Co-Signer回调
提现回调
POST
/
{custom-url}
curl -X POST \
--url 'https://custom-url/example-callback' \
--data '{
"amount": "0.3",
"from": "n2jRrmPLqmaDfcwsSEKfbx9bFs7FgZM2HY",
"memo": "",
"pending_round": false,
"request_id": "c70d1eebb7c687ec8d56bead73f104",
"symbol": "BTC",
"to": "32BfKjhByDSxx3BM5vUkQ3NQq9csZR6nt8",
"txid": "",
"type": "sign_start",
"withdraw_id": "",
"outputs": "[{\"address_to\":\"32BfKjhByDSxx3BM5vUkQ3NQq9csZR6nt8 \",\"amount\":\"0.1\"},{\"address_to\":\"32BfKjhByDSxx3BM5vUkQ3NQq9csZR6nt7 \",\"amount\":\"0.1\"},{\"address_to\":\"0x5EDc9177997Bf6B4db559A5C184051858B3B3709\",\"amount\":\"0.1\"}]"
}'
Co-Signer签名前回调客户系统确认提现是否正常。
Content-Type application/json;charset=UTF-8
回调参数格式
| Param | 类型 | 是否必须 | 说明 |
|---|---|---|---|
| type | String | 是 | 回调类型,sign_start签名开始,sign_success签名成功 |
| withdraw_id | Integer | 是 | 交易ID |
| request_id | String | 是 | 发起交易唯一标识 |
| pending_round | Boolean | 是 | 加速状态,true是,false否(普通交易) |
| from | String | 是 | 交易出币地址 |
| to | String | 是 | 交易到账地址 |
| memo | String | 否 | 交易到账memo |
| amount | Decimal | 是 | 交易金额 |
| symbol | String | 是 | 交易币种唯一标识 |
| txid | String | 否 | 交易hash,签名成功返回txid |
| outputs | String | 否 | UTXO 往多个地址提现明细 ,JSON格式 |
curl -X POST \
--url 'https://custom-url/example-callback' \
--data '{
"amount": "0.3",
"from": "n2jRrmPLqmaDfcwsSEKfbx9bFs7FgZM2HY",
"memo": "",
"pending_round": false,
"request_id": "c70d1eebb7c687ec8d56bead73f104",
"symbol": "BTC",
"to": "32BfKjhByDSxx3BM5vUkQ3NQq9csZR6nt8",
"txid": "",
"type": "sign_start",
"withdraw_id": "",
"outputs": "[{\"address_to\":\"32BfKjhByDSxx3BM5vUkQ3NQq9csZR6nt8 \",\"amount\":\"0.1\"},{\"address_to\":\"32BfKjhByDSxx3BM5vUkQ3NQq9csZR6nt7 \",\"amount\":\"0.1\"},{\"address_to\":\"0x5EDc9177997Bf6B4db559A5C184051858B3B3709\",\"amount\":\"0.1\"}]"
}'
回调响应参数格式
返回字符串:
SUCCESS表示成功: Co-Signer对交易进行签名;FAILURE表示失败: Co-Signer将忽略交易不进行签名。
curl -X POST \
--url 'https://custom-url/example-callback' \
--data '{
"amount": "0.3",
"from": "n2jRrmPLqmaDfcwsSEKfbx9bFs7FgZM2HY",
"memo": "",
"pending_round": false,
"request_id": "c70d1eebb7c687ec8d56bead73f104",
"symbol": "BTC",
"to": "32BfKjhByDSxx3BM5vUkQ3NQq9csZR6nt8",
"txid": "",
"type": "sign_start",
"withdraw_id": "",
"outputs": "[{\"address_to\":\"32BfKjhByDSxx3BM5vUkQ3NQq9csZR6nt8 \",\"amount\":\"0.1\"},{\"address_to\":\"32BfKjhByDSxx3BM5vUkQ3NQq9csZR6nt7 \",\"amount\":\"0.1\"},{\"address_to\":\"0x5EDc9177997Bf6B4db559A5C184051858B3B3709\",\"amount\":\"0.1\"}]"
}'