BlockchainAddressData (for Bitcoin)
BlockchainAddressData["address"]
gives available information connected with the specified address on the Bitcoin blockchain.
BlockchainAddressData[assoc]
gives available information connected with properties matching the specification in assoc.
BlockchainAddressData[addressSpec,prop]
gives the specified property of the Bitcoin blockchain address.
Details
- The blockchain address can be specified as follows:
-
"address" address on the Bitcoin blockchain "chain""address" address on the specified public blockchain {"chain","network"}"address" address on a specific network for a Bitcoin 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 Bitcoin blockchain "TimeInterval" time interval for transactions to be included "BlockNumberInterval" blocks interval for transactions to be included "BlockNumber" number associated to a specific height on the blockchain - Properties include:
-
"Address" Bitcoin address "Balance" current value of the balance in bitcoins "ValueInUSDollars" current value of the balance in US dollars "TotalUTXO" total number of unspent transaction outputs associated to this address "UTXOList" summary list of unspent transaction outputs of this address "TotalTransactions" total number of transactions associated to this address "TransactionList" summary list of recent transactions of the address - If the association assoc contains "BlockNumber", "BlockNumberInterval" or "TimeInterval", the output will include only a subset of available properties.
- "TransactionList" gives an association with the following properties as its keys:
-
"TransactionID" transaction hash "BlockNumber" block number including the transaction "Timestamp" timestamp of the block "Inputs" inputs of the transaction "Outputs" outputs of the transaction - Possible options include:
-
BlockchainBase Automatic sets the blockchain and its network MaxItems 20 the maximum number of items to return - BlockchainAddressData can access the Bitcoin mainnet (default) and testnet networks. To specify these networks, use the BlockchainBase option.
- The setting for MaxItems specifies the maximum number of transactions to include in the result.
Examples
open allclose allBasic Examples (8)
Check a Bitcoin 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 up to the block height 170,000:
Filter the list of transactions of a specific address by blocks:
Filter the list of transactions of a specific address by time:
Scope (7)
Options (3)
Applications (1)
Properties & Relations (4)
A Bitcoin address can be specified in three different forms:
The value returned by the "Address" property is the same as the provided address:
When filtering an address by "BlockNumber", "BlockNumberInterval" or "TimeInterval", the output will not include all available properties, but only a subset:
Filtering an address using "BlockNumber" to specify a block is equivalent to using "BlockNumberInterval" with an interval from block 0 to the specified block:
Possible Issues (3)
Nonexistent Addresses (2)
Incorrect Addresses (1)
Providing an invalid address, public key or username will return a $Failed output:
Text
Wolfram Research (2019), BlockchainAddressData, Wolfram Language function, https://reference.wolfram.com/language/ref/blockchain/BlockchainAddressData-Bitcoin.html.
CMS
Wolfram Language. 2019. "BlockchainAddressData." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/blockchain/BlockchainAddressData-Bitcoin.html.
APA
Wolfram Language. (2019). BlockchainAddressData. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/blockchain/BlockchainAddressData-Bitcoin.html