Skip to main content

Accounts

Endpoint URLs

NetworkURL
Mainnethttps://api.btrscan.com/scan/api
Testnethttps://api-testnet.bitlayer.org/scan/api

Get BTC Balance for a single address

Returns the BTC balance of a given address.

https://api.btrscan.com/scan/api
?module=account
&action=balance
&address=0xe7564c607c663e5784031229570cbd47290dd87f

Try this endpoint in your browser 🔗

Query Parameters

ParameterDescription
addressthe string representing the address to check balance

Get BTC Balance for multiple addresses in a single call

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

https://api.btrscan.com/scan/api
?module=account
&action=balancemulti
&address=0xe7564c607c663e5784031229570cbd47290dd87f,0xe01a40a0894970fc4c2b06f36f5eb94e73ea502d

Try this endpoint in your browser 🔗

Query Parameters

ParameterDescription
addressthe string representing the address to check balance,separated by , up to 20 addresses in a single batch

Get a list of 'Normal' Transactions By Address

Returns the list of transactions performed by an address, with optional pagination. [Optional Parameters] startblock: starting blockNo to retrieve results, endblock: ending blockNo to retrieve results

tip

Returns up to a maximum of the last 10000 transactions only

https://api.btrscan.com/scan/api
?module=account
&action=txlist
&address=0xe7564c607c663e5784031229570cbd47290dd87f
&startblock=0
&endblock=99999999
&sort=asc

Try this endpoint in your browser 🔗

or

tip

To get paginated results use page=<page number> and offset=<max records to return>

https://api.btrscan.com/scan/api
?module=account
&action=txlist
&address=0xe7564c607c663e5784031229570cbd47290dd87f
&startblock=0
&endblock=99999999
&page=1
&offset=10
&sort=asc

Try this endpoint in your browser 🔗

Query Parameters

ParameterDescription
addressthe string representing the address to check balance
startblockthe integer block number to start searching for transactions
endblockthe integer block number to stop searching for transactions
pagethe integer page number, if pagination is enabled
offsetthe number of transactions displayed per page
sortthe sorting preference, use asc to sort by ascending and desc to sort by descending

Get a list of 'Internal' Transactions By Address

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

tip

Returns up to a maximum of the last 10000 transactions only

[Optional Parameters] startblock: starting blockNo to retrieve results, endblock: ending blockNo to retrieve results

https://api.btrscan.com/scan/api
?module=account
&action=txlistinternal
&address=0x039bac1779933ee52abf3eff25188c4d673931ac
&startblock=0
&endblock=2702578
&sort=asc

Try this endpoint in your browser 🔗

or

tip

To get paginated results use page=<page number> and offset=<max records to return>

https://api.btrscan.com/scan/api
?module=account
&action=txlistinternal
&address=0x039bac1779933ee52abf3eff25188c4d673931ac
&startblock=0
&endblock=2702578
&page=1
&offset=10
&sort=asc

Try this endpoint in your browser 🔗

Query Parameters

ParameterDescription
addressthe string representing the address to check balance
startblockthe integer block number to start searching for transactions
endblockthe integer block number to stop searching for transactions
pagethe integer page number, if pagination is enabled
offsetthe number of transactions displayed per page
sortthe sorting preference, use asc to sort by ascending and desc to sort by descending

Get "Internal Transactions" by Transaction Hash

Returns the list of internal transactions performed within a transaction.

tip

Returns up to a maximum of the last 10000 transactions only

https://api.btrscan.com/scan/api
?module=account
&action=txlistinternal
&txhash=0xa8599451628af4914db83b7d73df8784bdda7bc6d541d6931a5855bd54091c04

Try this endpoint in your browser 🔗

Query Parameters

ParameterDescription
txhashthe string representing the transaction hash to check for internal transactions

Get "Internal Transactions" by Block Range

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

tip

Returns up to a maximum of the last 10000 transactions only

https://api.btrscan.com/scan/api
?module=account
&action=txlistinternal
&startblock=0
&endblock=2928944
&page=1
&offset=10
&sort=asc

Try this endpoint in your browser 🔗

Query Parameters

ParameterDescription
startblockthe integer block number to start searching for transactions
endblockthe integer block number to stop searching for transactions
pagethe integer page number, if pagination is enabled
offsetthe number of transactions displayed per page
sortthe sorting preference, use asc to sort by ascending and desc to sort by descending

Get a list of "ERC-20 - Token Transfer Events" by Address

Returns the list of ERC-20 tokens transferred by an address, with optional filtering by token contract. [Optional Parameters] startblock: starting blockNo to retrieve results, endblock: ending blockNo to retrieve results

https://api.btrscan.com/scan/api
?module=account
&action=tokentx
&address=0x718e5b4f5b007bceb7ad6ce8c2629cea767fc4ec
&startblock=0
&endblock=999999999
&sort=asc

Try this endpoint in your browser 🔗

or

https://api.btrscan.com/scan/api
?module=account
&action=tokentx
&contractaddress=0xfe9f969faf8ad72a83b761138bf25de87eff9dd2
&page=1
&offset=100
&sort=asc

Try this endpoint in your browser 🔗

or

https://api.btrscan.com/scan/api
?module=account
&action=tokentx
&contractaddress=0xfe9f969faf8ad72a83b761138bf25de87eff9dd2
&address=0x718e5b4f5b007bceb7ad6ce8c2629cea767fc4ec
&page=1
&offset=100
&sort=asc

Try this endpoint in your browser 🔗

Usage:

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

Query Parameters

ParameterDescription
addressthe string representing the address to check balance
contractaddressthe string representing the token contract address to check for balance
startblockthe integer block number to start searching for transactions
endblockthe integer block number to stop searching for transactions
pagethe integer page number, if pagination is enabled
offsetthe number of transactions displayed per page
sortthe sorting preference, use asc to sort by ascending and desc to sort by descending

Get a list of "ERC-721 - Token Transfer Events" by Address

Returns the list of ERC-721 ( NFT ) tokens transferred by an address, with optional filtering by token contract. [Optional Parameters] startblock: starting blockNo to retrieve results, endblock: ending blockNo to retrieve results

https://api.btrscan.com/scan/api
?module=account
&action=tokennfttx
&address=0xfec8a6cfacbf3da3e0c9988d59542eb6a5d49184
&startblock=0
&endblock=999999999
&sort=asc

Try this endpoint in your browser 🔗

or

https://api.btrscan.com/scan/api
?module=account
&action=tokennfttx
&contractaddress=0x963c039406f8b10d3a0691328b4d2ae90fa43230
&page=1
&offset=100
&sort=asc

Try this endpoint in your browser 🔗

or

https://api.btrscan.com/scan/api
?module=account
&action=tokennfttx
&contractaddress=0x963c039406f8b10d3a0691328b4d2ae90fa43230
&address=0xfec8a6cfacbf3da3e0c9988d59542eb6a5d49184
&page=1
&offset=100
&sort=asc

Try this endpoint in your browser 🔗

Usage:

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

Query Parameters

ParameterDescription
addressthe string representing the address to check balance
contractaddressthe string representing the token contract address to check for balance
startblockthe integer block number to start searching for transactions
endblockthe integer block number to stop searching for transactions
pagethe integer page number, if pagination is enabled
offsetthe number of transactions displayed per page
sortthe sorting preference, use asc to sort by ascending and desc to sort by descending

Get list of Blocks Validated by Address

Returns the list of blocks validated by an address.

https://api.btrscan.com/scan/api
?module=account
&action=getminedblocks
&blocktype=blocks
&address=0x0fac0285011992215edb080f14a2cc6ab629360b

Try this endpoint in your browser 🔗

or

tip

To get paginated results use page=<page number> and offset=<max records to return>

https://api.btrscan.com/scan/api
?module=account
&action=getminedblocks
&blocktype=blocks
&page=1
&offset=100

Try this endpoint in your browser 🔗

Query Parameters

ParameterDescription
blocktypethe string pre-defined block type, either blocks for canonical blocks or uncles for uncle blocks only
pagethe integer page number, if pagination is enabled
offsetthe number of transactions displayed per page