BSV-21 protocol was originally called BSV-20 v2 but was renamed for clarity.
Here is a brief intro from the :
"This iteration of the BSV-20 protocol introduces a new tickerless mode functionality. Tickerless mode forgoes the first is first nature of BRC20-BTC, and allows the capabilities to have a smart contract, or an administrator, control distribution. Additionally, every transaction of a tickerless mode token forms part of a single on-chain DAG (Directed Acyclic Graph), such that the transaction can easily be tracked back to that token's genesis mint. "
Get Address Balance
This endpoint retrieves the amount of tokens that were not spent.
HTTP Request
GET https://api.whatsonchain.com/v1/bsv/<network>/token/bsv21/<address>/balance
cURL
curl --location --request GET "https://api.whatsonchain.com/v1/bsv/main/token/bsv21/1MMRcQnACaByFV6gYPoSzd9VPjemLeT57q/balance"
This endpoint retrieves transfers inscribed by the provided address and where they are spent.
HTTP Request
GET https://api.whatsonchain.com/v1/bsv/<network>/token/bsv21/<address>/id/<id>/depth
cURL
curl --location --request GET "https://api.whatsonchain.com/v1/bsv/main/token/bsv21/1s2YXTRJce8k8VybXz4EmUnxC6jLyWPes/id/e6d40ba206340aa94ed40fe1a8adcd722c08c9438b2c1dd16b4527d561e848a2_0/depth"
This endpoint retrieves the token details given the token's identifier.
HTTP Request
GET https://api.whatsonchain.com/v1/bsv/<network>/token/bsv21/id/<id>
cURL
curl --location --request GET "https://api.whatsonchain.com/v1/bsv/main/token/bsv21/id/942fa8659a65cbcfaf979c4abef28a8f9c1454836cc3a9b42662f2bf784d92ba_0"
This endpoint retrieves the token's transfer details given the inscription's outpoint.
HTTP Request
GET https://api.whatsonchain.com/v1/bsv/<network>/token/bsv21/outpoint/<outpoint>
cURL
curl --location --request GET "https://api.whatsonchain.com/v1/bsv/main/token/bsv21/outpoint/6dc1a50dd6f18f5c55d60fa8532043e19cd91e9d2d9fbceee8166868e0263e65_1"
This endpoint retrieves transfers history given the address and token's identifier.
HTTP Request
GET https://api.whatsonchain.com/v1/bsv/<network>/token/bsv21/<address>/id/<id>
cURL
curl --location --request GET "1s2YXTRJce8k8VybXz4EmUnxC6jLyWPes/id/e6d40ba206340aa94ed40fe1a8adcd722c08c9438b2c1dd16b4527d561e848a2_0/history?skip=3&limit=2"
This endpoint retrieves spent inscriptions given the transaction's identifier.
HTTP Request
GET https://api.whatsonchain.com/v1/bsv/<network>/token/bsv21/txid/<txid>/spent
cURL
curl --location --request GET "https://api.whatsonchain.com/v1/bsv/main/token/bsv21/txid/22d79dd02b1b1c85b1119f800b5626b7f12645599098e2557b79ecb551e02b2a/spent"
This endpoint retrieves tokens that a given transaction contains.
HTTP Request
GET https://api.whatsonchain.com/v1/bsv/<network>/token/bsv21/txid/<txid>
cURL
curl --location --request GET "https://api.whatsonchain.com/v1/bsv/main/token/bsv21/txid/942fa8659a65cbcfaf979c4abef28a8f9c1454836cc3a9b42662f2bf784d92ba"
This endpoint retrieves addresses that own a token or transfer(s) of the inscription.
HTTP Request
GET https://api.whatsonchain.com/v1/bsv/<network>/token/bsv21/id/<id>/owners
cURL
curl --location --request GET "https://api.whatsonchain.com/v1/bsv/main/token/bsv21/id/cc7a38cfd087b9411b8533e6c5d30590a9e50ea9adc5ca3e3d947bb201a15ebd_0/owners"
If you want to make a request for an additional API endpoint that would help with your use case, please reach out to us using our . Please provide as much detail on what you're trying to achieve as possible.