Split
Header parameters
AuthorizationstringOptional
token
User-IdstringOptional
Body
tickstringRequired
tickName + colon + tokenId
is_ofc_tokenbooleanRequired
Whether it's an official token (individuals should default to false, otherwise contact the official for whitelisting)
is_average_splitbooleanRequired
Whether to split evenly to the original address
split_numintegerRequired
Split Amount
user_addrstringRequired
Current User Address
user_pubkeystringRequired
Current User Public Key
cat_20_output_to_splitstringRequired
txid + colon + vout
token_addrstringRequired
Required if selecting an official token
fee_rateintegerRequired
Responses
200
Success
application/json
codeintegerRequired
msgstringRequired
x-200:Success
Success
application/json
post/brc20swap/get_split_cat20_psbts
POST /brc20swap/get_split_cat20_psbts HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 220
{
"tick": "text",
"is_ofc_token": true,
"is_average_split": true,
"split_num": 1,
"toinfos": [
{
"to_addr": "text",
"to_amt": 1
}
],
"user_addr": "text",
"user_pubkey": "text",
"cat_20_output_to_split": "text",
"token_addr": "text",
"fee_rate": 1
}{
"code": 1,
"msg": "text",
"data": null
}Split Users' CAT20
Split Official CAT20

Header parameters
AuthorizationstringOptional
token
User-IdstringOptional
Body
psbtsstring[]Required
Other parameters are the same as those for get_psbt endpoint.stringRequired
Responses
200
Success
application/json
codeintegerRequired
msgstringRequired
x-200:Success
Success
application/json
post/brc20swap/save_split_cat20_psbts
POST /brc20swap/save_split_cat20_psbts HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 89
{
"psbts": [
"text"
],
"Other parameters are the same as those for get_psbt endpoint.": "text"
}{
"code": 1,
"msg": "text",
"data": {
"tx_id": "text"
}
}Last updated
