BlockchainBlockData (for bloxberg)

BlockchainBlockData["hash"]

gives information about the block with the specified hash on the bloxberg blockchain.

BlockchainBlockData[n]

gives information about block n on the bloxberg blockchain.

BlockchainBlockData[-n]

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

BlockchainBlockData[bspec,prop]

gives the specified property of the block.

Details

  • BlockchainBlockData[-1] gives information on the latest bloxberg block.
  • Properties include:
  • "BlockHash"hash of this block
    "BlockNumber"number (height) of this block in the bloxberg blockchain
    "Timestamp"time when this block was validated
    "ValidatorAddress"validator address
    "ValidatorName"validator name
    "ByteCount"byte count for this block
    "Confirmations"number of confirmations
    "GasUsed"total used gas by all transactions in this block
    "GasLimit"maximum gas allowed in this block
    "PreviousBlockHash"hash of the previous block
    "MerkleRoot"Merkle root hash of the transactions
    "TotalTransactions"total number of transactions in this block
    "TransactionList"list of transaction IDs in this block
  • Possible options include:
  • BlockchainBaseAutomaticsets the blockchain and its network
    MaxItemsAllthe maximum number of items to return
  • BlockchainBlockData can access the bloxberg blockchain. To specify this network, use the BlockchainBase option.
  • The setting for MaxItems specifies the maximum number of transactions to include in the result.

Examples

open allclose all

Basic Examples  (5)

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

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

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

Get a property from an bloxberg block:

Get multiple properties from a bloxberg block:

Scope  (13)

BlockHash  (1)

Get the block hash of a bloxberg block:

BlockNumber  (1)

Get the height hash of a bloxberg block:

ByteCount  (1)

Get the number of bytes of a bloxberg block:

Confirmations  (1)

Get the number of confirmations of a bloxberg block:

GasLimit  (1)

Get the gas limit of a bloxberg block:

GasUsed  (1)

Get the gas used of a bloxberg block:

MerkleRoot  (1)

Get the Merkle root of a bloxberg block:

PreviousBlockHash  (1)

Get the block hash of the preceding bloxberg block:

Timestamp  (1)

Get the time a bloxberg block was mined:

TotalTransactions  (1)

Get the total number of transactions included in a bloxberg block:

TransactionList  (1)

Get the list of transactions included in a bloxberg block:

ValidatorAddress  (1)

Get the version of a bloxberg block:

ValidatorName  (1)

Get the version of a bloxberg block:

Options  (2)

BlockchainBase  (1)

Bloxberg  (1)

Get information from a random bloxberg block:

MaxItems  (1)

Get the first 5 transactions from the latest bloxberg block:

Applications  (2)

Get the size of the latest bloxberg block in megabytes:

Get a random transaction included in a bloxberg block:

Possible Issues  (2)

Nonexistent Hashes  (1)

Using a block hash that does not exist in the blockchain will return a Missing output:

Incorrect Hashes  (1)

Providing a block hash that is not a hex number will return a $Failed output:

Neat Examples  (1)

Generate sounds from a bloxberg block:

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

Text

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

BibTeX

@misc{reference.wolfram_2021_blockchainblockdata, author="Wolfram Research", title="{BlockchainBlockData}", year="2020", howpublished="\url{https://reference.wolfram.com/language/ref/blockchain/BlockchainBlockData-bloxberg.html}", note=[Accessed: 21-September-2021 ]}

BibLaTeX

@online{reference.wolfram_2021_blockchainblockdata, organization={Wolfram Research}, title={BlockchainBlockData}, year={2020}, url={https://reference.wolfram.com/language/ref/blockchain/BlockchainBlockData-bloxberg.html}, note=[Accessed: 21-September-2021 ]}

CMS

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

APA

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