获取psbt方式兑换tx大小
开发中
POST
/brc20swap/get_swap_psbt_txsize
请求参数
Header 参数
Authorization
string
token
默认值:
Xverse-j21jurgoi9aeu9no
User-Id
string
可选
Body 参数application/json
send_coin_type
string
发送的币种
send_tick
string
发送的tick
send_amount
string
发送的数量
receive_coin_type
string
接收的币种
receive_tick
string
接收的tick
receive_amount
string
接收的数量
address
string
地址
slipper
string
滑点
fee_rate
integer
费率
ins
array[string]
铭文id
method
string
必需
示例
{
"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 'Authorization: Xverse-j21jurgoi9aeu9no' \
--header 'User-Id;' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200成功
application/json
Body
code
integer
必需
msg
string
必需
data
object | null
必需
tx_size
integer
psbt tx大小
ins_contain_sats
integer
可选
checksum
string
可选
vins
array[string]
必需
usr_cnt
integer
必需
示例
{
"code": 0,
"msg": "string",
"data": {
"tx_size": 0,
"ins_contain_sats": 0,
"checksum": "string",
"vins": [
"string"
],
"usr_cnt": 0
}
}
🟢200成功
修改于 2025-02-07 09:09:18