WOLFRAM

$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)Summary of the most common use cases

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

Out[1]=1

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

Out[1]=1

Get the latest block of the ARK devnet blockchain:

Out[1]=1

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

Out[1]=1

Get a property from an ARK block:

Out[1]=1

Get multiple properties from an ARK block:

Out[1]=1

Scope  (11)Survey of the scope of standard use cases

BlockID  (1)

Get the ID of an ARK block:

Out[1]=1

BlockNumber  (1)

Get the height of an ARK block:

Out[1]=1

Forged  (1)

Get forging information of an ARK block

Out[1]=1

Generator  (1)

Get information about the delegate who forged an ARK block:

Out[1]=1

Payload  (1)

Get the serialization information of an ARK block:

Out[1]=1

PreviousBlockID  (1)

Get the block ID of the preceding ARK block:

Out[1]=1

Signature  (1)

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

Out[1]=1

Timestamp  (1)

Get the time when an ARK block was forged:

Out[1]=1

TotalTransactions  (1)

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

Out[1]=1

TransactionList  (1)

Get the list of transactions included in an ARK block:

Out[1]//Shallow=1

Version  (1)

Get the version of an ARK block:

Out[1]=1

Options  (3)Common values & functionality for each option

BlockchainBase  (2)

Devnet  (1)

Get information from a random ARK devnet block:

Out[1]=1

Mainnet  (1)

Get information from a random ARK mainnet block:

Out[1]=1

MaxItems  (1)

Get the first 5 transactions from an ARK block:

Out[1]=1

Applications  (1)Sample problems that can be solved with this function

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

Out[1]=1
Out[2]=2

Convert the result to fiat currency:

Out[3]=3

Possible Issues  (2)Common pitfalls and unexpected behavior

Nonexistent Hashes  (1)

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

Out[1]=1
Out[2]=2

Incorrect Hashes  (1)

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

Out[1]=1

Neat Examples  (1)Surprising or curious use cases

Generate sounds from an ARK block:

Out[1]=1
Wolfram Research (2019), BlockchainBlockData, Wolfram Language function, https://reference.wolfram.com/language/ref/blockchain/BlockchainBlockData-ARK.html.
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.

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.

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

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_2025_blockchainblockdata, author="Wolfram Research", title="{BlockchainBlockData}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/blockchain/BlockchainBlockData-ARK.html}", note=[Accessed: 05-May-2025 ]}

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

BibLaTeX

@online{reference.wolfram_2025_blockchainblockdata, organization={Wolfram Research}, title={BlockchainBlockData}, year={2019}, url={https://reference.wolfram.com/language/ref/blockchain/BlockchainBlockData-ARK.html}, note=[Accessed: 05-May-2025 ]}

@online{reference.wolfram_2025_blockchainblockdata, organization={Wolfram Research}, title={BlockchainBlockData}, year={2019}, url={https://reference.wolfram.com/language/ref/blockchain/BlockchainBlockData-ARK.html}, note=[Accessed: 05-May-2025 ]}