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 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
  • BlockchainBlockData can access the ARK mainnet (default) and devnet. To specify these networks, use the BlockchainBase option.

Examples

open allclose all

Basic Examples  (5)

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 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 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  (2)

BlockchainBase  (2)

Devnet  (1)

Get information from a random ARK devnet block:

Mainnet  (1)

Get information from a random ARK mainnet 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["NotAvailable"] output:

Incorrect Hashes  (1)

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

Neat Examples  (1)

Generate sounds from an ARK block:

Introduced in 2019
 (12.0)