BlockchainTransactionData

BlockchainTransactionData[txid]

gives information about the blockchain transaction with ID txid on the blockchain specified by $BlockchainBase.

BlockchainTransactionData[txid,prop]

gives the specified property of the transaction.

Details and Options

  • The option BlockchainBase can be used to specify which blockchain to give information about.
  • Possible settings for BlockchainBase include "Wolfram", "Bitcoin" and "Ethereum".
  • The default setting for BlockchainBase is $BlockchainBase.
  • Available properties include:
  • "TransactionID"transaction ID
    "Inputs"transaction input data
    "Outputs"transaction output data
  • Additional properties for Bitcoin and Ethereum include:
  • "ByteCount"transaction size in bytes
    "Confirmations"blocks confirming this block
    "Fee"fee paid for this transaction
    "Time"time stamp for the transaction
    "BlockHash"hash of the block containing the transaction
  • Additional properties for Ethereum include:
  • "TotalWei"total number of wei exchanged in this transaction
    "GasUsed"amount of gas used by this transaction
    "GasPrice"price of gas in this transaction in wei
  • Additional properties for Bitcoin include:
  • "TotalBitcoins"total number of bitcoins exchanged in this transaction
  • The value of "Inputs" is a list of associations with typical elements including:
  • "Addresses"public hashes for source addresses
    "SequenceNumber"sequence number of this transaction
  • Additional values of "Inputs" for Bitcoin and Wolfram include:
  • "ScriptByteArray"the script for the transaction as a byte array
    "ScriptString"the script as a string
  • For Bitcoin, the following additional elements are included:
  • "SourceTransaction"the ID of the transaction from which this input came
    "SourceConfirmations"number of confirmations of the transaction generating this input
    "SourceTransactionIndex"the index of this input within the source transaction
  • The value of "Outputs" is a list of associations with elements including:
  • "Amount"the amount of the transaction
    "ScriptByteArray"the script for the transaction as a byte array
  • For Bitcoin, the following additional elements are included:
  • "DestinationTransaction"the ID of the transaction that spent this output
  • For Bitcoin and Ethereum, the following additional element is included:
  • "Addresses"public hashes for destination addresses

Examples

open allclose all

Basic Examples  (3)

Get information about a transaction from the (default) "Wolfram" blockchain:

In[1]:=
Click for copyable input
Out[1]=

Get information about a transaction from the "Bitcoin" blockchain:

In[1]:=
Click for copyable input
Out[1]=

Get information about a transaction from the "Ethereum" blockchain:

In[1]:=
Click for copyable input
Out[1]=

Applications  (1)

Neat Examples  (1)

See Also

$BlockchainBase  BlockchainPut  BlockchainGet  BlockchainData  BlockchainBlockData  CurrencyConvert

Introduced in 2018
(11.3)