PaytoNpubkey
BTC
post:/custodyAccount/invoice/payUserBtc
{
"npub_key":"testusr10",
"amount": 200
}
```json
{
"success": true,
"error": "",
"code": 200,
"data": {
"success": "success"
}
}
```
Asset
post:/custodyAccount/Asset/sendToUserAsset
{
"npub_key": "testusr10",
"asset_id": "4aa3656c0c496cfee65dacd7291c4be3a96df02ecd72af8fa5ec14bf0cbd15be",
"amount": 200.00
}
```json
{
"success": true,
"error": "",
"code": 200,
"data": {
"success": "success"
}
}
```
PTNS
1.设置可接受资产
/custodyAccount/Asset/ptns/SetReceiveAsset
请求体
{
"asset_id":"dc073ca924754b50257de9569f4f6a0ce7c9026720eb5c52f42afab5aab8ad0e",
"enable": false
}
返回
{
"success": true,
"error": "",
"code": 200,
"data": null
}
2.检查资产是否可接收
custodyAccount/Asset/ptns/CheckReceiveAsset
请求
{
"asset_id":"dc073ca924754b50257de9569f4f6a0ce7c9026720eb5c52f42afab5aab8ad0e"
}
响应
{
"success": true,
"error": "",
"code": 200,
"data": false
}
3.获取接收优先级
/custodyAccount/Asset/ptns/GetReceiveAssetSort
无请求体
响应体
{
"success": true,
"error": "",
"code": 200,
"data": [
"dc073ca924754b50257de9569f4f6a0ce7c9026720eb5c52f42afab5aab8ad0e",
"4aa3656c0c496cfee65dacd7291c4be3a96df02ecd72af8fa5ec14bf0cbd15be"
]
}
data中的顺序即为优先级顺序
4.更新优先级顺序
/custodyAccount/Asset/ptns/UpdateReceiveAssetSort
请求
{
"asset_list":[
"4aa3656c0c496cfee65dacd7291c4be3a96df02ecd72af8fa5ec14bf0cbd15be",
"dc073ca924754b50257de9569f4f6a0ce7c9026720eb5c52f42afab5aab8ad0e"
]
}
请求体中assetId的顺序即为更新后的顺序
响应体
{
"success": true,
"error": "",
"code": 200,
"data": true
}
5.、获取角色信息
/custodyAccount/Asset/ptns/GetCharacter
请求体无
响应体
{
"success": true,
"error": "",
"code": 200,
"data": "merchant"
}
data中数据:customer/merchant 对应用户/商家
6.变更角色信息
/custodyAccount/Asset/ptns/SetCharacter
请求体
{
"character":"merchant"
}
请求内容:customer/merchant 同上
响应体
{
"success": true,
"error": "",
"code": 200,
"data": true
}
Last updated