Links

getTokenSupply

Get the total supply for the given ERC20 token contract address (supports snapshotting at a specific block number)

Parameters

  • contractAddress :(string) REQUIRED - The token contract address
  • blockNumber: (string) OPTIONAL - The block height for which the supply is requested

Returns

  • totalSupply: <string> - The total token supply for the specified contract

Example Request and Result for getTokenSupply

Request
curl --location 'https://eth-mainnet.blastapi.io/<project-id>/builder/getTokenSupply?contractAddress=0xF411903cbC70a74d22900a5DE66A2dda66507255'
Result
{
"totalSupply": "100207279129169697046687842654"
}