BlockchainData

BlockchainData[]

gives information about the blockchain specified by $BlockchainBase.

BlockchainData[property]

gives the value of the specified property of the blockchain.

Details and Options

  • BlockchainData has the option BlockchainBase, with default setting $BlockchainBase.
  • BlockchainData[ ] gives an association that includes a collection of properties of the blockchain.
  • Basic blockchain identification properties include:
  • "Type"type of blockchain ("Bitcoin", "MultiChain", "Ethereum", ...)
    "Name"name of specific blockchain (e.g. "WolframBlockchain", "ETH.main", ...)
    "Core"blockchain implementation core (e.g. "Bitcoin", "Ethereum", ...)
  • Basic blockchain state information properties include:
  • "Blocks"current total number of blocks in the blockchain
    "LatestHash"hash of latest block in the blockchain
  • Additional properties for Bitcoin include:
  • "MinimumFee"minimum average fee per KB to relay a transaction in satoshis
  • Additional properties for Ethereum include:
  • "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

Examples

open all close all

Basic Examples  (3)

Get basic information on the default blockchain:

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

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 the number of blocks in the Bitcoin blockchain:

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

Get the lowest, average and highest gas prices of the last Ethereum block:

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

Scope  (6)

Options  (1)

Introduced in 2018
(11.3)