BlockchainBlockData(for ARK)

$BlockchainBase = "ARK"

BlockchainBlockData["blockid"]

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

BlockchainBlockData[n]

gives information about block n on the ARK blockchain.

BlockchainBlockData[-n]

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

BlockchainBlockData[bspec,prop]

gives the specified property of the block.

Details

  • BlockchainBlockData[-1] gives information on the latest ARK block.
  • Properties include:
  • "BlockID"ID of this block
    "BlockNumber"number (height) of this block in the ARK blockchain
    "Timestamp"time when this block was forged
    "Forged"forging information
    "Payload"metadata on the block's transactions (hash, length)
    "Generator"the delegate that forged this block
    "Signature"signature of the forging delegate of this block
    "Version"version of this block
    "PreviousBlockID"ID of the previous block
    "TotalTransactions"total number of transactions in this block
    "TransactionList"list of transaction IDs in this block
  • "Forged" gives an association with the following properties as its keys:
  • "Reward"reward for forging this block
    "Fee"sum of all the fees in this block's transactions
    "Total"total (reward plus fees) that goes to the delegate
    "Amount"sum of all the amounts in this block's transactions
  • "Payload" gives an association with the following properties as its keys:
  • "Hash"hash of the serialized data of this block
    "Length"number of bytes of all transaction IDs of this block
  • "Generator" gives an association with the following properties as its keys:
  • "Username"username of the delegate that forged this block
    "Address"address of the delegate that forged this block
    "PublicKey"public key of the delegate that forged this block
  • Possible options include:
  • BlockchainBase Automaticsets the blockchain and its network
    MaxItems Allthe maximum number of items to return
  • BlockchainBlockData can access the ARK mainnet (default) and devnet. To specify these networks, 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  (6)

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

Use a block ID to get information about an ARK block:

Get the latest block of the ARK devnet blockchain:

Get multiple ARK blocks by providing a list of heights or block IDs:

Get a property from an ARK block:

Get multiple properties from an ARK block:

Scope  (11)

BlockID  (1)

Get the ID of an ARK block:

BlockNumber  (1)

Get the height of an ARK block:

Forged  (1)

Get forging information of an ARK block

Generator  (1)

Get information about the delegate who forged an ARK block:

Payload  (1)

Get the serialization information of an ARK block:

PreviousBlockID  (1)

Get the block ID of the preceding ARK block:

Signature  (1)

Get the signature of the forging delegate of an ARK block:

Timestamp  (1)

Get the time when an ARK block was forged:

TotalTransactions  (1)

Get the total number of transactions included in an ARK block:

TransactionList  (1)

Get the list of transactions included in an ARK block:

Version  (1)

Get the version of an ARK block:

Options  (3)

BlockchainBase  (2)

Devnet  (1)

Get information from a random ARK devnet block:

Mainnet  (1)

Get information from a random ARK mainnet block:

MaxItems  (1)

Get the first 5 transactions from an ARK block:

Applications  (1)

Get the address of a block's generator and inspect its balance:

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 an ARK block:

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

Text

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

CMS

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

APA

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

BibTeX

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

BibLaTeX

@online{reference.wolfram_2024_blockchainblockdata, organization={Wolfram Research}, title={BlockchainBlockData}, year={2019}, url={https://reference.wolfram.com/language/ref/blockchain/BlockchainBlockData-ARK.html}, note=[Accessed: 22-December-2024 ]}