Accounts

Get BTTC Balance for a Single Address

Returns the BTTC balance of a given address.

https://api-testnet.bttcscan.com/api
   ?module=account
   &action=balance
   &address=0xa352a2476de85ea3bba5606ac61141cf78605b78
   &apikey=YourApiKeyToken

Query Parameters

Get BTTC Balance for Multiple Addresses in a Single Call

Returns the balance of the accounts from a list of addresses.

https://api-testnet.bttcscan.com/api
   ?module=account
   &action=balancemulti
   &address=0x645de796d54ef73c46b859bcdfa194a08fa62566,0x9e1004ffa22fefa228664032048a543b1378d815,0xa352a2476de85ea3bba5606ac61141cf78605b78
   &tag=latest
   &apikey=YourApiKeyToken

Query Parameters

Get a list of 'Normal' Transactions By Address

Returns the list of transactions performed by an address, with optional pagination.

https://api-testnet.bttcscan.com/api
   ?module=account
   &action=txlist
   &address=0x645de796d54ef73c46b859bcdfa194a08fa62566
   &startblock=0
   &endblock=99999999
   &page=1
   &offset=10
   &sort=asc
   &apikey=YourApiKeyToken

Query Parameters

Get a list of 'Internal' Transactions by Address

Returns the list of internal transactions performed by an address, with optional pagination.

https://api-testnet.bttcscan.com/api
   ?module=account
   &action=txlistinternal
   &address=0xa352a2476de85ea3bba5606ac61141cf78605b78
   &startblock=0
   &endblock=99999999
   &page=1
   &offset=10
   &sort=asc
   &apikey=YourApiKeyToken

Query Parameters

Get 'Internal Transactions' by Transaction Hash

Returns the list of internal transactions performed within a transaction.

https://api-testnet.bttcscan.com/api
   ?module=account
   &action=txlistinternal
   &txhash=0x9fff9a2ab393c5c074401d21e925a1654a84b3e69b92ca533f5b5e62be6471b9
   &apikey=YourApiKeyToken

Query Parameters

Get "Internal Transactions" by Block Range

Returns the list of internal transactions performed within a block range, with optional pagination.

https://api-testnet.bttcscan.com/api
   ?module=account
   &action=txlistinternal
   &startblock=6105502
   &endblock=6106502
   &page=1
   &offset=10
   &sort=asc
   &apikey=YourApiKeyToken

Query Parameters

Get a list of 'BRC-20 Token Transfer Events' by Address

Returns the list of BRC-20 tokens transferred by an address, with optional filtering by token contract.

https://api-testnet.bttcscan.com/api
   ?module=account
   &action=tokentx
   &contractaddress=0x0f2b5005e5865ac67599b0777dc5bc4733a97b22
   &address=0x342ef59cdaf8ed9bcd2acb6d2633d15641c07cad
   &page=1
   &offset=5
   &sort=asc
   &apikey=YourApiKeyToken

Usage:

  • BRC-20 transfers from an address, specify the address parameter

  • BRC-20 transfers from a contract address, specify the contract address parameter

  • BRC-20 transfers from an address filtered by a token contract, specify both address and contract address parameters.

Query Parameters

Get a list of 'BRC-721 Token Transfer Events' by Address

Returns the list of BRC-721 ( NFT ) tokens transferred by an address, with optional filtering by token contract.

https://api-testnet.bttcscan.com/api
   ?module=account
   &action=tokennfttx
   &contractaddress=0xc118ea2dea6d83e971476d13cf462b70f317391c
   &address=0x0a0ace57566724a9fb53bae63171c9d4d3f5dd27
   &page=1
   &offset=100
   &sort=asc
   &apikey=YourApiKeyToken

Usage:

  • BRC-721 transfers from an address, specify the address parameter

  • BRC-721 transfers from a contract address, specify the contract address parameter

  • BRC-721 transfers from an address filtered by a token contract, specify both address and contract address parameters.

Query Parameters

Get list of Blocks Validated by Address

Returns the list of blocks validated by an address.

https://api-testnet.bttcscan.com/api
   ?module=account
   &action=getminedblocks
   &address=0xcb670b22515bcaeaa7b3ffb8149d303f00fb026e
   &blocktype=blocks
   &page=1
   &offset=10
   &apikey=YourApiKeyToken

Query Parameters

Last updated