BlockchainAddressData (for Ethereum)
BlockchainAddressData["address"]
gives available information connected with the specified address on the Ethereum blockchain.
BlockchainAddressData[assoc]
gives available information connected with properties matching the specification in assoc.
BlockchainAddressData[addressSpec,prop]
gives the specified property of the Ethereum blockchain address.
Details
- The blockchain address can be specified as follows:
-
"address" address on the Ethereum blockchain "chain""address" address on the specified public blockchain {"chain","network"}"address" address on a specific network for an Ethereum blockchain - The addressSpec input refers to any input, whether it is a String address or an Association assoc.
- In BlockchainAddressData[assoc], the association assoc can have elements with the following keys:
-
"Address" address on the Ethereum blockchain "TimeInterval" time interval for transactions to be included "BlockNumberInterval" blocks whose transactions should be included "BlockNumber" number associated to a specific height on the blockchain - Properties include:
-
"Address" Ethereum address "Type" type of the address "DeploymentData" summary of the transaction that deployed the contract "Balance" current value of the balance in wei "ValueInUSDollars" current value of the balance in US dollars "TransactionCount" number of transactions sent by the address "TotalTransactions" total number of transactions associated to this address "TotalInternalTransactions" total number of internal transactions associated to this address "TotalEvents" total number of events emitted by this address "TransactionList" summary list of recent transactions of this address "InternalTransactionList" summary list of recent internal transactions of this address "EventList" summary list of recent events triggered by this address - Additional properties when the association assoc contains "BlockNumber", "TimeInterval" or "BlockNumberInterval" elements include:
-
"BlockTransactions" total number of transactions associated with the specified blocks "BlockInternalTransactions" total number of internal transactions associated with the specified blocks "BlockEvents" total number of events associated with the specified blocks - If the association assoc contains "BlockNumber", the "ValueInUSDollars" property will return the value of the balance at the time when the block was added to the blockchain.
- If the association assoc contains "BlockNumberInterval" or "TimeInterval", the output will include only a subset of available properties.
- The "Type" property can be "Contract" or "Externally Owned Account".
- "DeploymentData" gives an association with the following properties as its keys:
-
"BlockNumber" height associated to the contract deployment transaction "Timestamp" time associated to the contract deployment transaction "TransactionID" transaction hash associated to the contract deployment transaction "Sender" sender address associated to the contract deployment transaction - Common properties for output lists include:
-
"TransactionID" transaction hash "BlockNumber" block number including the transaction "Timestamp" timestamp of the block - Additional properties for "TransactionList" include:
-
"Sender" sender of the transaction "Receiver" receiver of the transaction "Amount" amount of currency sent - Additional properties for "InternalTransactionList" include:
-
"CallType" internal transaction type of execution "Sender" sender of the transaction "Receiver" receiver of the transaction "Amount" amount of currency sent - Additional properties for "EventList" 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:
-
BlockchainBase Automatic sets the blockchain and its network MaxItems 20 the maximum number of items to return - BlockchainAddressData can access the Ethereum mainnet (default) and testnet (Sepolia). To specify these networks, use the BlockchainBase option.
- The setting for MaxItems specifies the maximum number of events, internal transactions and transactions to include in the result.
Examples
open allclose allBasic Examples (7)
Check an Ethereum address on main network:
Specify the blockchain in the first argument:
Specify the blockchain and network in the first argument:
Get data of an address when block 1,718,497 was mined:
Filter the events of a specific address by blocks:
Filter the internal transactions of a specific address by time:
Scope (15)
BlockInternalTransactions (1)
InternalTransactionList (1)
TotalInternalTransactions (1)
Options (5)
BlockchainBase (2)
Applications (1)
Properties & Relations (2)
Possible Issues (4)
Nonexistent Addresses (2)
Incorrect Addresses (1)
Providing an invalid address, public key or username will return a $Failed output:
Unavailable Value in US Dollars (1)
When filtering an address by "BlockNumber", the "ValueInUSDollars" property will return the value of the balance in US dollars at the time when the block was mined. If there is no available information about the value associated with that particular time, a Missing output will be returned:
You can still convert the balance from that time to another currency, using the current exchange rate, with CurrencyConvert:
Text
Wolfram Research (2019), BlockchainAddressData, Wolfram Language function, https://reference.wolfram.com/language/ref/blockchain/BlockchainAddressData-Ethereum.html.
CMS
Wolfram Language. 2019. "BlockchainAddressData." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/blockchain/BlockchainAddressData-Ethereum.html.
APA
Wolfram Language. (2019). BlockchainAddressData. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/blockchain/BlockchainAddressData-Ethereum.html