Get BRC20 balance by tick and address, returns a json object with the BRC20 balance info.
GET http://{ip}:{port}/api/v1/brc20/tick/{tick}/address/{address}/balance
Parameter | Type | Description | Notes |
---|---|---|---|
tick | String | The BRC20 tick. | [default to null] |
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 balance info. |
> tick | String | The tick name. |
> availableBalance | Number | The tick available balance . |
> transferableBalance | Number | The tick transferable balance. |
> overallBalance | Number | The tick all balance . |
curl --location --request GET 'http://{ip}:{port}/api/v1/brc20/tick/ordi/address/bc1pxl55h9yhj6v3uuwx7njp3gyqdd8fv0erya8qfj5dnuuy92jdzmmsjjjl6w/balance'
{
"code": 0,
"msg": "ok",
"data": {
"tick": "ordi",
"availableBalance": "275188774454000000000000",
"transferableBalance": "0",
"overallBalance": "275188774454000000000000"
}
}