BlockchainBlockData (for Tezos)

BlockchainBlockData["blockid"]

gives information about the block with the specified block ID on the Tezos blockchain.

BlockchainBlockData[n]

gives information about block n on the Tezos blockchain.

BlockchainBlockData[-n]

gives information about the block n elements from the end of the Tezos blockchain.

BlockchainBlockData[bspec,prop]

gives the specified property of the block.

Details

  • BlockchainBlockData[-1] gives information on the latest Tezos block.
  • Properties include:
  • "BlockHash"hash of this block
    "BlockNumber"number (height) of this block in the Tezos blockchain
    "PreviousBlockHash"hash of the previous block
    "Protocol"protocol of this block
    "NextProtocol"protocol of next block
    "Timestamp"time when this block was baked
    "ValidationPass"number of validation passes
    "OperationsHash"hash of a list of root hashes of Merkle trees of operations
    "Fitness"metric used to compare contexts
    "ContextHash"hash of the state of the context after application of this block
    "Priority"position in the priority list of delegates at which the block was baked
    "Nonce"proof-of-work nonce used when baking this block
    "Signature"signature of the baking delegate of this block
    "ConsumedGas"total gas consumed in this block
    "Proposer"the delegate that proposed this block
    "Baker"the delegate that baked this block
    "BlockReward"reward for baking this block
    "BlockFees"sum of all the fees in this block's operations
    "TotalTransactions"total number of operations in this block
    "TransactionList"list of operation hashes in this block
    "TransactionListDetails"list of operation hashes in this block grouped by operation type
  • Possible options include:
  • BlockchainBase Automaticsets the blockchain and its network
    MaxItems Allthe maximum number of items to return
  • BlockchainBlockData can access the Tezos mainnet (default), testnet and voting process testing period chain fork. To specify these networks, use the BlockchainBase option.
  • The setting for MaxItems specifies the maximum number of operations to include in the result.

Examples

open allclose all

Basic Examples  (6)

Get information about a block from the Tezos blockchain using its height:

Use a block hash to get information about a Tezos block:

Get the latest block of the Tezos testnet blockchain:

Get multiple Tezos blocks by providing a list of heights or hashes:

Get a property from a Tezos block:

Get multiple properties from a Tezos block:

Scope  (21)

Baker  (1)

Get the baker of a Tezos block:

BlockFees  (1)

Get the fees of a Tezos block:

BlockHash  (1)

Get the hash of a Tezos block:

BlockNumber  (1)

Get the height of a Tezos block:

BlockReward  (1)

Get the reward of a Tezos block:

ConsumedGas  (1)

Get the total gas consumed in a Tezos block:

ContextHash  (1)

Get the context hash of a Tezos block:

Fitness  (1)

Get the fitness of a Tezos block:

NextProtocol  (1)

Get the protocol of a subsequent Tezos block:

Nonce  (1)

Get the nonce of a Tezos block:

OperationsHash  (1)

Get the operations hash of a Tezos block:

PreviousBlockHash  (1)

Get the block hash of the preceding Tezos block:

Priority  (1)

Get the priority of a Tezos block:

Proposer  (1)

Get the protocol of a Tezos block:

Protocol  (1)

Get the protocol of a Tezos block:

Signature  (1)

Get the signature of a Tezos block:

Timestamp  (1)

Get the time when a Tezos block was baked:

TotalTransactions  (1)

Get the total number of operations included in a Tezos block:

TransactionList  (1)

Get the list of operations included in a Tezos block:

TransactionListDetails  (1)

Get the list of operations included in a Tezos block grouped b type:

ValidationPass  (1)

Get the validation pass of a Tezos block:

Options  (3)

BlockchainBase  (2)

Mainnet  (1)

Get information from a random Tezos mainnet block:

Testnet  (1)

Get information from a random Tezos testnet block:

MaxItems  (1)

Get the first 5 transactions from a Tezos block:

Applications  (1)

Get the fees included in a Tezos block:

Convert the result to fiat currency:

Possible Issues  (2)

Nonexistent Hashes  (1)

Using a block ID from one blockchain in another blockchain will return a Missing output:

Incorrect Hashes  (1)

Providing an invalid block ID will return a $Failed output:

Neat Examples  (1)

Generate sounds from a Tezos block:

Wolfram Research (2020), BlockchainBlockData, Wolfram Language function, https://reference.wolfram.com/language/ref/blockchain/BlockchainBlockData-Tezos.html.

Text

Wolfram Research (2020), BlockchainBlockData, Wolfram Language function, https://reference.wolfram.com/language/ref/blockchain/BlockchainBlockData-Tezos.html.

CMS

Wolfram Language. 2020. "BlockchainBlockData." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/blockchain/BlockchainBlockData-Tezos.html.

APA

Wolfram Language. (2020). BlockchainBlockData. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/blockchain/BlockchainBlockData-Tezos.html

BibTeX

@misc{reference.wolfram_2024_blockchainblockdata, author="Wolfram Research", title="{BlockchainBlockData}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/blockchain/BlockchainBlockData-Tezos.html}", note=[Accessed: 15-October-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_blockchainblockdata, organization={Wolfram Research}, title={BlockchainBlockData}, year={2020}, url={https://reference.wolfram.com/language/ref/blockchain/BlockchainBlockData-Tezos.html}, note=[Accessed: 15-October-2024 ]}