BlockchainData(for Bitcoin)

$BlockchainBase = "Bitcoin"

BlockchainData[]

gives information about the Bitcoin blockchain.

BlockchainData[property]

gives the value of the specified property of the Bitcoin 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 Bitcoin blockchain
    "LatestBlockHash"hash of latest block in the Bitcoin blockchain
    "MinimumFee"minimum average fee per KB to relay a transaction in satoshis
  • BlockchainData can access the Bitcoin 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 Bitcoin blockchain:

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

Get the number of blocks in the Bitcoin 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  (6)

Options  (2)

Introduced in 2019
(12.0)