Etherscan v2.0.2 Etherscan.API.Blocks

Module to wrap Etherscan block endpoints.

Etherscan API Documentation

Link to this section Summary

Functions

Get block and uncle rewards by block_number

Link to this section Functions

Link to this function get_block_and_uncle_rewards(block_number)
get_block_and_uncle_rewards(block_number :: non_neg_integer()) ::
  {:ok, Etherscan.BlockReward.t()} :: {:error, atom()}

Get block and uncle rewards by block_number.

Example

iex> Etherscan.get_block_and_uncle_rewards("2165403")
{:ok, %Etherscan.BlockReward{uncles: [%Etherscan.BlockRewardUncle{}]}}