Light Client API
Streamlined interfaces for querying balances, verifying transactions, and accessing brc-20 data efficiently.
Get the latest balance of the wallet on its latest pkscript.
Query parameters
tickstringOptional
Token name of BRC-20,example: btcs
walletstringOptional
Address of tick
Body
objectOptional
Responses
200
Success
application/json
500
Failed
application/json
get
GET /v1/brc20_verifiable/light/current_balance_of_wallet HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 2
{}
{
"error": null,
"result": {
"availableBalance": "text",
"overallBalance": "text",
"pkscript": "text"
},
"proof": "text"
}
Get the latest balance of the wallet on its latest pkscript.
Query parameters
tickstringOptional
Token name
pkscriptstringOptional
the pkscript of tick
Body
objectOptional
Responses
200
Success
application/json
500
Failed
application/json
get
GET /v1/brc20_verifiable/light/current_balance_of_pkscript HTTP/1.1
Host:
Content-Type: application/json
Accept: */*
Content-Length: 2
{}
{
"error": null,
"result": {
"availableBalance": "text",
"overallBalance": "text"
},
"proof": "text"
}
Responses
200
Success
application/json
500
Failed
application/json
get
GET /v1/brc20_verifiable/light/last_checkpoint HTTP/1.1
Host:
Accept: */*
{
"checkPoint": {
"url": "text",
"name": "text",
"version": "text",
"metaProtocol": "text",
"height": "text",
"hash": "text",
"commitment": "text"
},
"sourceS3": {
"region": "text",
"bucket": "text",
"name": "text"
},
"sourceDa": {
"network": "text",
"namespaceID": "text",
"name": "text"
}
}
Last updated