后端接口
  1. operation
后端接口
  • dotswap
    • swap_liquid
      • operation
        • 发送兑换已签名psbt
          POST
        • 获取psbt方式兑换tx大小
          POST
        • brc20获取兑换待签名psbt
          POST
      • 获取流动池信息
        POST
      • 搜索所有币种
        POST
  1. operation

获取psbt方式兑换tx大小

开发中
POST
/brc20swap/get_swap_psbt_txsize

请求参数

Body 参数application/json

示例
{
    "send_coin_type": "string",
    "send_tick": "string",
    "send_amount": "string",
    "receive_coin_type": "string",
    "receive_tick": "string",
    "receive_amount": "string",
    "address": "string",
    "slipper": "string",
    "fee_rate": 0,
    "ins": [
        "string"
    ],
    "method": "string"
}

请求示例代码

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://test-api-proxy.ddpurse.com/brc20swap/get_swap_psbt_txsize' \
--header 'Content-Type: application/json' \
--data-raw '{
    "send_coin_type": "string",
    "send_tick": "string",
    "send_amount": "string",
    "receive_coin_type": "string",
    "receive_tick": "string",
    "receive_amount": "string",
    "address": "string",
    "slipper": "string",
    "fee_rate": 0,
    "ins": [
        "string"
    ],
    "method": "string"
}'

返回响应

🟢200成功
application/json
Body

示例
{
    "code": 0,
    "msg": "string",
    "data": {
        "tx_size": 0,
        "ins_contain_sats": 0,
        "checksum": "string",
        "vins": [
            "string"
        ],
        "usr_cnt": 0
    }
}
🟢200成功
修改于 2025-06-27 04:03:00
上一页
发送兑换已签名psbt
下一页
brc20获取兑换待签名psbt
Built with