More resources
Get balance by tick

Get balance by tick#

Get BRC20 balance by tick and address, returns a json object with the BRC20 balance info.

Request address#

GET http://{ip}:{port}/api/v1/brc20/tick/{tick}/address/{address}/balance

Request param#

ParameterTypeDescriptionNotes
tickStringThe BRC20 tick.[default to null]
addressStringThe btc address.[default to null]

Response param#

ParameterTypeDescription
codeIntegerThe response code.
msgStringA message describing the error.
dataObjectIt is a object with the balance info.
> tickStringThe tick name.
> availableBalanceNumberThe tick available balance .
> transferableBalanceNumberThe tick transferable balance.
> overallBalanceNumberThe tick all balance .

Request example#

shell
curl --location --request GET 'http://{ip}:{port}/api/v1/brc20/tick/ordi/address/bc1pxl55h9yhj6v3uuwx7njp3gyqdd8fv0erya8qfj5dnuuy92jdzmmsjjjl6w/balance'

Response example#

200
{
    "code": 0,
    "msg": "ok",
    "data": {
        "tick": "ordi",
        "availableBalance": "275188774454000000000000",
        "transferableBalance": "0",
        "overallBalance": "275188774454000000000000"
    }
}