BlockchainAddressData

BlockchainAddressData["address"]

gives available information connected with the specified address on the default blockchain.

BlockchainAddressData[assoc]

gives available information connected with properties matching the specification in assoc.

BlockchainAddressData[addressSpec, prop]

gives the specified property of the blockchain address.

Details and Options

  • The blockchain address can be specified as follows:
  • "address"address on the default blockchain
    "chain""address"address on the specified public blockchain
    {"chain","network"}"address"address on a specific network for a blockchain
  • The addressSpec input refers to any input, whether it is a String address or an Association assoc.
  • The option BlockchainBase can be used to specify the blockchain to use. The default setting is $BlockchainBase. If $BlockchainBase is Automatic, BlockchainBase is taken to be "Ethereum".
  • In BlockchainAddressData[assoc], the association assoc can have elements with the following keys:
  • "Address"address on the default blockchain
    "TimeInterval"time interval for transactions to be included
    "BlockNumberInterval"blocks whose transactions should be included
  • Available properties include:
  • "Balance"balance of the address in the currency of the blockchain
    "ValueInUSDollars"current value of the balance in US dollars
    "TotalTransactions"total number of transactions involving the address
    "TransactionList"summary list of recent transactions of the address
  • Additional properties in case $BlockchainBase is set to {"Ethereum","Mainnet"} or {"Ethereum","Testnet"}, include:
  • "TransactionCount"number of transactions sent by the address
    "TotalEvents"total number of events emitted by address
    "EventList"summary list of recent events triggered by the address
  • Additional properties in case $BlockchainBase is set to {"Ethereum","Mainnet"}, include:
  • "TotalInternalTransactions"total number of internal transactions involving the address
    "InternalTransactionList"summary list of recent internal transactions of the address
  • Common properties for output lists include:
  • "TransactionID"transaction hash
    "BlockNumber"block number including the transaction
    "Time"time stamp of the block
  • Additional properties for the transaction list include:
  • "Sender"sender of the transaction
    "Receiver"receiver of the transaction
    "Amount"amount of currency sent
  • Additional properties for the internal transaction list include:
  • "CallType"internal transaction type of execution
  • Additional properties for the event list include:
  • "Address"address of the contract that triggered the event
    "Topics"event's parameters indexed in the transaction receipt log
    "Data"event's parameters encoded in the transaction receipt log
  • Possible options include:
  • BlockchainBaseAutomaticsets the blockchain and its network
    MaxItems20number of transactions to return

Examples

open all close all

Basic Examples  (1)

Check an Ethereum address on main network:

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

Scope  (4)

Options  (2)

Introduced in 2019
(12.0)