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

  • The option BlockchainBase can be used to specify which blockchain to give information about.
  • Possible settings for BlockchainBase include "Wolfram", "Bitcoin" and "Ethereum".
  • The default setting for BlockchainBase is $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 fee to relay a transaction in satoshis
  • Additional properties for Ethereum include:
  • "LowGasPrice"low gas price for a transaction
    "MediumGasPrice"medium gas price for a transaction
    "HighGasPrice"high gas price for a transaction

Examples

open allclose all

Basic Examples  (3)

Get basic information on the default Wolfram blockchain:

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

Get basic information on the Bitcoin blockchain:

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

Get the number of blocks in the (default) "Wolfram" 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 current gas prices (low, medium, high) for the "Ethereum" blockchain:

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

Scope  (4)

Options  (1)

See Also

BlockchainBlockData  BlockchainTransactionData  $BlockchainBase  BlockchainPut  BlockchainGet  CurrencyConvert  Databin

Introduced in 2018
(11.3)