BlockchainData(for Ethereum)

$BlockchainBase = "Ethereum"

BlockchainData[]

gives information about the Ethereum blockchain.

BlockchainData[property]

gives the value of the specified property of the Ethereum blockchain.

Details

  • BlockchainData[] gives an association that includes a collection of properties of the blockchain.
  • Properties include:
  • "Type"type of blockchain
    "Name"name of specific blockchain
    "Core"blockchain implementation core
    "Blocks"current total number of blocks in the Ethereum blockchain
    "LatestBlockHash"hash of latest block in the Ethereum blockchain
    "LowestGasPrice"lowest gas price of last block in gwei
    "AverageGasPrice"average gas price of last block in gwei
    "HighestGasPrice"highest gas price of last block in gwei
  • BlockchainData can access the Ethereum mainnet (default) and testnet. To specify these networks, use the BlockchainBase option.

Examples

open all close all

Basic Examples  (3)

Get basic information on the Ethereum blockchain:

In[1]:=
Click for copyable input
Out[1]=

Get the number of blocks in the Ethereum blockchain:

In[1]:=
Click for copyable input
Out[1]=

Get multiple properties from the Bitcoin blockchain:

In[1]:=
Click for copyable input
Out[1]=

Scope  (8)

Options  (2)

Introduced in 2019
(12.0)