Query a list of transferable BRC-20 UTXO
POST https://www.okx.com/api/v5/waas/transaction/get-utxo-brc20
Parameter | Type | Required | Description |
---|---|---|---|
chainId | Int | Yes | Unique identifier of the chain |
utxoRequests | Array | Yes | UTXO request |
>address | String | Yes | Address |
>tick | String | Yes | coin name |
>page | String | No | Witch page, the first page is 1, default 1 |
>pageSize | String | No | Page size, default 10 |
Parameter | Type | Description |
---|---|---|
address | string | Address |
txHash | string | Transaction hash |
vout | int | output sequence |
coinAmount | int | UTXO coin amount, unit is "satoshi" |
status | int | status ,1:confirmed utxo 0:pending utxo |
tick | String | Coin name |
inscriptionId | String | Inscription Id |
nftLocationVOs | Array | NFT info |
>nftId | String | Unique identifier of the NFT |
>nftLocation | String | nft location txhash:index:offset |
curl --location --request POST 'https://www.okx.com/api/v5/waas/transaction/get-utxo-brc20' \
--header 'Content-Type: application/json' \
--header 'OK-ACCESS-PROJECT: 86af********d1bc' \
--header 'OK-ACCESS-KEY: 37c541a1-****-****-****-10fe7a038418' \
--header 'OK-ACCESS-SIGN: leaV********3uw=' \
--header 'OK-ACCESS-PASSPHRASE: 1****6' \
--header 'OK-ACCESS-TIMESTAMP: 2023-10-18T12:21:41.274Z' \
--data-raw '{
"chainId":0,
"utxoRequests":[{
"address":"bc1psnr548clz3f4fz6jmpnw5eqzj2v2musk082wp8fvq5ac3p5ete6qg05u8u",
"tick":"tokb",
"page": 1,
"pageSize": 10
}]
}'
{
"code": 0,
"msg": "success",
"data": [{
"address": "bc1psnr548clz3f4fz6jmpnw5eqzj2v2musk082wp8fvq5ac3p5ete6qg05u8u",
"utxoList": [{
"txHash": "a1a41ccfe62ba715a085059ee455f164f649b5321ebb361ef6a4d65b24b047a0",
"vout": 0,
"coinAmount": 546,
"status": 1,
"inscriptionId": "#46039932",
"tick": "tokb",
"tokenAmount": "1000000000000000000",
"nftLocaltionVOs": [{
"nftId": "a1a41ccfe62ba715a085059ee455f164f649b5321ebb361ef6a4d65b24b047a0i0",
"nftLocation": "a1a41ccfe62ba715a085059ee455f164f649b5321ebb361ef6a4d65b24b047a0:0:0"
}]
}]
}]
}