Etherscan v0.1.0 Etherscan

Documentation for Etherscan.

Link to this section Summary

Functions

Get ether balance for a single address. address can be a list of multiple addresses, up to a maximum of 20 addresses

Get a list of blocks mined by address

Get contract ABI for contracts with verified source code, by address

Get ether price

Get total supply of ether

Get a list of ‘Internal Transactions’ by transaction_hash. Returns up to a maximum of the last 10000 transactions only

Get the ERC20 token balance of the address for token at token_address

Get total supply of ERC20 token, by token_address

Get a list of uncles mined by address

Link to this section Functions

Link to this function get_balance(address)

Get ether balance for a single address. address can be a list of multiple addresses, up to a maximum of 20 addresses.

If given an address, returns balance in ether.

If given a list of addresses, returns a list of balances.

Link to this function get_block_and_uncle_rewards(block_number)

BETA

Get block and uncle rewards by block_number.

Returns a map of data:

%{
  "blockMiner" => "0xc8ebccc5f5689fa8659d83713341e5ad19349448",
  "blockNumber" => "4",
  "blockReward" => "5156250000000000000",
  "timeStamp" => "1438270077",
  "uncleInclusionReward" => "156250000000000000",
  "uncles" => [%{
    "blockreward" => "3125000000000000000",
    "miner" => "0x5088d623ba0fcf0131e0897a91734a4d83596aa0",
    "unclePosition" => "0"
  }]
}
Link to this function get_blocks_mined(address, params \\ %{})

Get a list of blocks mined by address.

params = %{
  page: 1, // Page number
  offset: 10 // Max records returned
}
Link to this function get_contract_abi(address)

Get contract ABI for contracts with verified source code, by address.

See - https://etherscan.io/contractsVerified

Link to this function get_contract_execution_status(transaction_hash)

BETA

Check contract execution status (if there was an error during contract execution) by transaction_hash.

Link to this function get_eth_price()

Get ether price.

Link to this function get_eth_supply()

Get total supply of ether.

Link to this function get_internal_transactions(address, params \\ %{})

BETA

Get a list of ‘Internal’ transactions by address. Returns up to a maximum of the last 10000 transactions only.

params = %{
  page: 1, // Page number
  offset: 10, // Max records returned
  sort: "asc", // Sort returned records
  startblock: 0, // Start block number
  endblock: 99999999 // End block number
}
Link to this function get_internal_transactions_by_hash(transaction_hash)

Get a list of ‘Internal Transactions’ by transaction_hash. Returns up to a maximum of the last 10000 transactions only.

Link to this function get_token_balance(address, token_address)

Get the ERC20 token balance of the address for token at token_address.

Link to this function get_token_supply(token_address)

Get total supply of ERC20 token, by token_address.

Link to this function get_transactions(address, params \\ %{})

BETA

Get a list of ‘Normal’ transactions by address. Returns up to a maximum of the last 10000 transactions only.

params = %{
  page: 1, // Page number
  offset: 10, // Max records returned
  sort: "asc", // Sort returned records
  startblock: 0, // Start block number
  endblock: 99999999 // End block number
}
Link to this function get_uncles_mined(address, params \\ %{})

Get a list of uncles mined by address.

params = %{
  page: 1, // Page number
  offset: 10 // Max records returned
}