Get BRC20 transferable by btc address, returns a json object with the BRC20 transferable info.
GET http://{ip}:{port}/api/v1/brc20/address/{address}/transferable
Parameter | Type | Description | Notes |
---|---|---|---|
address | String | The btc address. | [default to null] |
Parameter | Type | Description |
---|---|---|
code | Integer | The response code. |
msg | String | A message describing the error. |
data | Object | It is a object with the inscription info. |
> inscriptions | Array | The inscriptions info list. |
>> inscriptionId | String | The inscription id. |
>> inscriptionNumber | Number | The inscription number. |
>> amount | Number | The transferable balance. |
>> tick | String | The tick name. |
>> owner | String | The inscription owner. |
curl --location --request GET 'http://{ip}:{port}/api/v1/brc20/address/16G1xYBbiNG78LSuZdMqp6tux5xvVp9Wxh/transferable'
{
{
"code": 0,
"msg": "ok",
"data": {
"inscriptions": [
{
"inscriptionId": "d4d1a208cdd969b75321dd1ec32f59a55fc879c9aed27e2e484fa764ddae46bbi0",
"inscriptionNumber": 10507309,
"amount": "100585000000000000000000",
"tick": "$BSV",
"owner": "16G1xYBbiNG78LSuZdMqp6tux5xvVp9Wxh"
},
{
"inscriptionId": "9ad32024f3d1a879d9b5aabc73f813287327cfd75d4409206b9224432be5f3f0i0",
"inscriptionNumber": 7967081,
"amount": "146807000000000000000000",
"tick": "bank",
"owner": "16G1xYBbiNG78LSuZdMqp6tux5xvVp9Wxh"
},
{
"inscriptionId": "3b29bd4f725f1bc27aff60d15f8f1690b152b44d63837eeb931a821a24d57929i0",
"inscriptionNumber": 8840135,
"amount": "594196000000000000000000",
"tick": "bank",
"owner": "16G1xYBbiNG78LSuZdMqp6tux5xvVp9Wxh"
}
]
}
}
}