Wolfram Language

Visualize Relative Block Size

Blockchains typically feature one main network and secondary test networks. The Wolfram Language supports reading and writing to both networks.

This example demonstrates how to use BlockchainBlockData to extract the size of the latest block in the Ethereum mainnet and testnet. A visual representation of the size of the blocks is generated to better understand the amount of data in both networks.

BlockchainBlockData provides a summary of relevant information about a block.

Extract the size in bytes of the last Ethereum mainnet and testnet blocks.

Create a Graphics3D using Cuboid with volume proportional to the block size. The red cube corresponds to the size of the testnet block. The black one represents mainnet.

Related Examples

de es fr ja pt-br zh