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
    "LatestSlot"slot of the latest block in the Ethereum blockchain
    "CurrentEpoch"current epoch in the Ethereum blockchain
    "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 (Sepolia). To specify these networks, use the BlockchainBase option.

Examples

open allclose all

Basic Examples  (3)

Get basic information on the Ethereum blockchain:

Get the number of blocks in the Ethereum blockchain:

Get multiple properties from the Bitcoin blockchain:

Scope  (10)

AverageGasPrice  (1)

Get the average gas price of the last Ethereum block in gwei:

Blocks  (1)

Get the current total number of blocks in the Ethereum blockchain:

Core  (1)

Get the Ethereum blockchain implementation core:

CurrentEpoch  (1)

Get the current epoch in the Ethereum blockchain:

HighestGasPrice  (1)

Get the highest gas price of the last Ethereum block in gwei:

LatestBlockHash  (1)

Get the hash of the latest block in the Ethereum blockchain:

LatestSlot  (1)

Get the slot of the latest block in the Ethereum blockchain:

LowestGasPrice  (1)

Get the lowest gas price of the last Ethereum block in gwei:

Name  (1)

Get the name of the blockchain:

Type  (1)

Get the type of the blockchain:

Options  (2)

BlockchainBase  (2)

Mainnet  (1)

Get basic information on the Ethereum blockchain mainnet:

Testnet  (1)

Get basic information on the Ethereum blockchain testnet:

Wolfram Research (2019), BlockchainData, Wolfram Language function, https://reference.wolfram.com/language/ref/blockchain/BlockchainData-Ethereum.html.

Text

Wolfram Research (2019), BlockchainData, Wolfram Language function, https://reference.wolfram.com/language/ref/blockchain/BlockchainData-Ethereum.html.

CMS

Wolfram Language. 2019. "BlockchainData." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/blockchain/BlockchainData-Ethereum.html.

APA

Wolfram Language. (2019). BlockchainData. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/blockchain/BlockchainData-Ethereum.html

BibTeX

@misc{reference.wolfram_2024_blockchaindata, author="Wolfram Research", title="{BlockchainData}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/blockchain/BlockchainData-Ethereum.html}", note=[Accessed: 26-December-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_blockchaindata, organization={Wolfram Research}, title={BlockchainData}, year={2019}, url={https://reference.wolfram.com/language/ref/blockchain/BlockchainData-Ethereum.html}, note=[Accessed: 26-December-2024 ]}