BlockchainBlockData (for Bitcoin)
gives information about the block with the specified hash on the Bitcoin blockchain.
gives information about block n on the Bitcoin blockchain.
gives information about the block n elements from the end of the Bitcoin blockchain.
gives the specified property of the block.
- BlockchainBlockData[-1] gives information on the latest Bitcoin block.
- Properties include:
"BlockHash" hash of this block "BlockNumber" number (height) of this block in the Bitcoin blockchain "Timestamp" time when this block was mined "Amounts" amount information for this block "ByteCount" byte count for this block "Nonce" nonce used in the hash for this block "Version" version of the block "Confirmations" number of confirmations "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
- "Amounts" gives an association with the following properties as its keys:
"BlockReward" reward for mining this block "TotalFee" sum of all the fees in this block's transactions "TotalInput" sum of all the input amounts in this block's transactions "TotalOutput" sum of all the output amounts in this block's transactions
- Possible options include:
BlockchainBase Automatic sets the blockchain and its network MaxItems All the maximum number of items to return
- BlockchainBlockData can access the Bitcoin mainnet (default) and testnet. To specify these networks, use the BlockchainBase option.
- The setting for MaxItems specifies the maximum number of transactions to include in the result.
Examplesopen allclose all
Basic Examples (6)
Possible Issues (2)
Wolfram Research (2019), BlockchainBlockData, Wolfram Language function, https://reference.wolfram.com/language/ref/blockchain/BlockchainBlockData-Bitcoin.html.
Wolfram Language. 2019. "BlockchainBlockData." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/blockchain/BlockchainBlockData-Bitcoin.html.
Wolfram Language. (2019). BlockchainBlockData. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/blockchain/BlockchainBlockData-Bitcoin.html