API PRO Endpoints

The following is a complete list of additional API endpoints available under the API PRO subscription.

To upgrade your API plan, kindly visit BaseScan APIs.

Get Historical ETH Balance for a Single Address by BlockNo

Returns the historical ETH balance of an address at a certain block height.

📝 Note : This endpoint is throttled to 2 calls/second regardless of API Pro tier.

https://api.basescan.org/api
   ?module=account
   &action=balancehistory
   &address=0xf977814e90da44bfa03b6295a0616a897441acec
   &blockno=10000000
   &apikey=YourApiKeyToken

Try this endpoint in your browser 🔗

Query Parameters

ParameterDescription

address

the strings representing the addresses to check for balance, separated by , commas

blockno

the integer block number to check balance for eg. 2000000

Get Daily Average Block Size

Returns the daily average block size within a date range.

https://api.basescan.org/api
   ?module=stats
   &action=dailyavgblocksize
   &startdate=2023-08-01
   &enddate=2023-08-02
   &sort=asc
   &apikey=YourApiKeyToken

Try this endpoint in your browser 🔗

Query Parameters

ParameterDescription

startdate

the starting date in yyyy-MM-dd format, eg. 2021-08-01

enddate

the ending date in yyyy-MM-dd format, eg. 2021-08-31

sort

the sorting preference, use asc to sort by ascending and desc to sort by descending

Get Daily Block Count and Rewards

Returns the number of blocks validated daily and the amount of block rewards.

https://api.basescan.org/api
   ?module=stats
   &action=dailyblkcount
   &startdate=2023-08-01
   &enddate=2023-08-02
   &sort=asc
   &apikey=YourApiKeyToken

Try this endpoint in your browser 🔗

Query Parameters

ParameterDescription

startdate

the starting date in yyyy-MM-dd format, eg. 2021-08-01

enddate

the ending date in yyyy-MM-dd format, eg. 2021-08-31

sort

the sorting preference, use asc to sort by ascending and desc to sort by descending

Get Daily Block Rewards

Returns the amount of block rewards distributed to validators daily.

https://api.basescan.org/api
   ?module=stats
   &action=dailyblockrewards
   &startdate=2023-08-01
   &enddate=2023-08-02
   &sort=asc
   &apikey=YourApiKeyToken

Try this endpoint in your browser 🔗

Query Parameters

ParameterDescription

startdate

the starting date in yyyy-MM-dd format, eg. 2021-08-01

enddate

the ending date in yyyy-MM-dd format, eg. 2021-08-31

sort

the sorting preference, use asc to sort by ascending and desc to sort by descending

Get Daily Average Time for A Block to be Included in the Base Chain

Returns the daily average of time needed for a block to be successfully validated.

https://api.basescan.org/api
   ?module=stats
   &action=dailyavgblocktime
   &startdate=2023-08-01
   &enddate=2023-08-02
   &sort=asc
   &apikey=YourApiKeyToken

Try this endpoint in your browser 🔗

Query Parameters

ParameterDescription

startdate

the starting date in yyyy-MM-dd format, eg. 2021-08-01

enddate

the ending date in yyyy-MM-dd format, eg. 2021-08-31

sort

the sorting preference, use asc to sort by ascending and desc to sort by descending

Get Historical ERC-20 Token TotalSupply by ContractAddress & BlockNo

Returns the historical amount of a ERC-20 token in circulation at a certain block height.

📝 Note : This endpoint is throttled to 2 calls/second regardless of API Pro tier.

https://api.basescan.org/api
   ?module=stats
   &action=tokensupplyhistory
   &contractaddress=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
   &blockno=10000000
   &apikey=YourApiKeyToken

Try this endpoint in your browser 🔗

Query Parameters

ParameterDescription

contractaddress

the contract address of the ERC-20 token

blockno

the integer block number to check total supply for eg. 4000000

Get Historical ERC-20 Token Account Balance by ContractAddress & BlockNo

Returns the balance of a ERC-20 token of an address at a certain block height.

📝 Note : This endpoint is throttled to 2 calls/second regardless of API Pro tier.

https://api.basescan.org/api
   ?module=account
   &action=tokenbalancehistory
   &contractaddress=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
   &address=0x1d147c866182f072c821eb1fa9817e87b9547861
   &blockno=11801569
   &apikey=YourApiKeyToken
ParameterDescription

contractaddress

the contract address of the ERC-20 token

blockno

the integer block number to check total supply for eg. 4000000

Address

Target address

Get Address ERC-20 Token Holdings

Return the current ERC20 token holders and number of tokens held.

https://api.basescan.org/api
    ?module=account
    &action=addresstokenbalance
    &address=0xFd92F4e91d54B9EF91cc3f97C011a6aF0C2a7eDa
    &page=1
    &offset=2
    &apikey=YourApikeyToken

Try this endpoint in your browser 🔗

Query Parameters

Parameter

Description

address

the string representing the address to check for Token Holdings

page

the integer page number, if pagination is enabled

offset

the number of transactions displayed per page

Get Address ERC-721 Token Holding

Return the current ERC20 token holders and number of tokens held.

https://api.basescan.org/api
    ?module=account
    &action=addresstokennftbalance
    &address=0x64baeb02876aa58078aa25c1c43b7a5492873559
    &page=1
    &offset=2
    &apikey=YourApiKeyToken

Try this endpoint in your browser 🔗

Query Parameters

Parameter

Description

address

the string representing the address to check for Token Holdings

page

the integer page number, if pagination is enabled

offset

the number of transactions displayed per page

Get Address ERC721 Token Inventory By Contract Address

https://api.basescan.org/api
    ?module=account
    &action=addresstokennftinventory
    &address=0x64baeb02876aa58078aa25c1c43b7a5492873559
    &contractaddress=0x85e7df5708902be39891d59abef8e21ede91e8bf
    &page=1
    &offset=20
    &apikey=YourApiKeyToken

Try this endpoint in your browser 🔗

Query Parameters

Parameter

Description

address

the string representing the address to check for inventory

contractaddress

the contract address of the ERC-721 token

page

the integer page number, if pagination is enabled

offset

the number of transactions displayed per page

Get Token Holder List by Contract Address

Return the current ERC20 token holders and number of tokens held.

https://api.basescan.org/api
   ?module=token
   &action=tokenholderlist
   &contractaddress=0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb&
   &page=1
   &offset=10
   &apikey=YourApiKeyToken 

Try this endpoint in your browser 🔗

Query Parameters

Parameter

Description

contractaddress

the contract address of the ERC-20 token

page

the integer page number, if pagination is enabled

offset

the number of transactions displayed per page

Get Token Info by ContractAddress

Returns project information and social media links of an ERC-20/ERC-721 token.

📝 Note : This endpoint is throttled to 2 calls/second regardless of API Pro tier.

https://api.basescan.org/api
   ?module=token
   &action=tokeninfo
   &contractaddress=0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb
   &apikey=YourApiKeyToken

Try this endpoint in your browser 🔗

Query Parameters

ParameterDescription

contractaddress

the contract address of the ERC-20/ERC-721 token to retrieve token info

Get Daily Average Gas Limit

Returns the historical daily average gas limit of the Base network.

 https://api.basescan.org/api
    ?module=stats
    &action=dailyavggaslimit
    &startdate=2023-08-01
    &enddate=2023-08-02
    &sort=asc
    &apikey=YourApiKeyToken 

Try this endpoint in your browser 🔗

Query Parameters

ParameterDescription

startdate

the starting date in yyyy-MM-dd format, eg. 2019-01-31

enddate

the ending date in yyyy-MM-dd format, eg. 2019-02-28

sort

the sorting preference, use asc to sort by ascending and desc to sort by descending

Get Base Daily Total Gas Used

Returns the total amount of gas used daily for transactions on the Base network.

 https://api.basescan.org/api
    ?module=stats
    &action=dailygasused
    &startdate=2023-08-01
    &enddate=2023-08-02
    &sort=asc
    &apikey=YourApiKeyToken 

Try this endpoint in your browser 🔗

Query Parameters

ParameterDescription

startdate

the starting date in yyyy-MM-dd format, eg. 2019-01-31

enddate

the ending date in yyyy-MM-dd format, eg. 2019-02-28

sort

the sorting preference, use asc to sort by ascending and desc to sort by descending

Get Daily Average Gas Price

Returns the daily average gas price used on the Base network.

 https://api.basescan.org/api
    ?module=stats
    &action=dailyavggasprice
    &startdate=2023-08-01
    &enddate=2023-08-02
    &sort=asc
    &apikey=YourApiKeyToken 

Try this endpoint in your browser 🔗

Query Parameters

ParameterDescription

startdate

the starting date in yyyy-MM-dd format, eg. 2019-01-31

enddate

the ending date in yyyy-MM-dd format, eg. 2019-02-28

sort

the sorting preference, use asc to sort by ascending and desc to sort by descending

Get ETH Historical Price

Returns the historical price of 1 ETH.

https://api.basescan.org/api
   ?module=stats
   &action=ethdailyprice
   &startdate=2023-08-01
   &enddate=2023-08-02
   &sort=asc
   &apikey=YourApiKeyToken

Try this endpoint in your browser 🔗

Query Parameters

ParameterDescription

startdate

the starting date in yyyy-MM-dd format, eg. 2021-08-01

enddate

the ending date in yyyy-MM-dd format, eg. 2021-08-28

sort

the sorting preference, use asc to sort by ascending and desc to sort by descending

Get Daily Network Transaction Fee

Returns the historical amount of transaction fees paid to validators per day.

https://api.basescan.org/api?
   module=stats
   &action=dailytxnfee
   &startdate=2023-08-01
   &enddate=2023-08-02
   &sort=asc
   &apikey=YourApiKeyToken 

Try this endpoint in your browser 🔗

Query Parameters

ParameterDescription

startdate

the starting date in yyyy-MM-dd format, eg. 2020-10-01

enddate

the ending date in yyyy-MM-dd format, eg. 2020-10-31

sort

the sorting preference, use asc to sort by ascending and desc to sort by descending

Get Daily New Address Count

Returns the historical number of new Base Chain addresses created per day.

https://api.basescan.org/api
   ?module=stats
   &action=dailynewaddress
   &startdate=2023-08-01
   &enddate=2023-08-02
   &sort=asc
   &apikey=YourApiKeyToken

Try this endpoint in your browser 🔗

Query Parameters

ParameterDescription

startdate

the starting date in yyyy-MM-dd format, eg. 2020-10-01

enddate

the ending date in yyyy-MM-dd format, eg. 2020-10-31

sort

the sorting preference, use asc to sort by ascending and desc to sort by descending

Get Daily Network Utilization

Returns the daily average gas used over gas limit percentage.

https://api.basescan.org/api
   ?module=stats
   &action=dailynetutilization
   &startdate=2023-08-01
   &enddate=2023-08-02
   &sort=asc
   &apikey=YourApiKeyToken

Try this endpoint in your browser 🔗

Query Parameters

ParameterDescription

startdate

the starting date in yyyy-MM-dd format, eg. 2021-07-01

enddate

the ending date in yyyy-MM-dd format, eg. 2021-07-28

sort

the sorting preference, use asc to sort by ascending and desc to sort by descending

Returns the number of transactions performed on the Base Chain per day.

https://api.basescan.org/api
   ?module=stats
   &action=dailytx
   &startdate=2023-08-01
   &enddate=2023-08-02
   &sort=asc
   &apikey=YourApiKeyToken

Try this endpoint in your browser 🔗

Query Parameters

ParameterDescription

startdate

the starting date in yyyy-MM-dd format, eg. 2021-07-01

enddate

the ending date in yyyy-MM-dd format, eg. 2021-07-28

sort

the sorting preference, use asc to sort by ascending and desc to sort by descending

Last updated