BlockchainAddressData (for Cardano)
BlockchainAddressData["address"]
gives available information connected with the specified address on the Cardano blockchain.
BlockchainAddressData[addressSpec,prop]
gives the specified property of the Cardano blockchain address.
Details
- The blockchain address can be specified as follows:
-
"address" address on the Cardano mainnet blockchain "chain""address" address on the specified public blockchain {"chain","network"}"address" address on a specific network for a Cardano blockchain - For payment addresses, properties include:
-
"Address" Cardano address "Balance" current value of the balance in lovelace "ValueInUSDollars" current value of the balance in US dollars "AssetBalances" summary list of assets owned by the address "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 - For stake addresses, properties include:
-
"Address" Cardano address "TotalWithdrawn" total value of withdrawn rewards in lovelace "ValueInUSDollars" total value of withdrawn rewards in US dollars "WithdrawalList" summary list of recent withdrawal transactions of the address - "AssetBalances" gives a list of associations with the following properties as their keys:
-
"AssetID" asset ID of the token (policy ID concatenated with asset name) "AssetName" asset name of the token "PolicyID" token policy ID "Fingerprint" encoded token asset ID "Quantity" token amount owned by the address - Possible options include:
-
BlockchainBase $BlockchainBase sets the blockchain and its network MaxItems 20 the maximum number of items to return - BlockchainAddressData can access the Cardano mainnet (default) and testnet "preprod", which is a new network for testing purposes. To specify these networks, use the BlockchainBase option.
- The setting for MaxItems specifies the maximum number of operations to include in the result.
Examples
open all close allBasic Examples (4)
Get information about a non-staking address from the Cardano blockchain:
BlockchainAddressData["addr1q9z402ku7wxyskdesghykhx6rg6pq094p58mrnz6wljpplp3n0hl2vj3ym76928gs57lg4sfhlymtvd76a7xys4vdfjqcemy4k", BlockchainBase -> "Cardano"]//DatasetGet information about a stake address from the Cardano blockchain:
BlockchainAddressData["stake1uyqkmda5cspcknq60hzkk0xprtnwx27gaxppan0tr90j9ssql6ess", BlockchainBase -> "Cardano"]//DatasetGet a property from a Cardano address:
BlockchainAddressData["addr1v94xluc70dxdn07ppd9aukkejqq2zht4ezpmsk0v3g2vcaqsyta07", "Balance", BlockchainBase -> "Cardano"]Get multiple properties from a Cardano address:
BlockchainAddressData["addr1q9z402ku7wxyskdesghykhx6rg6pq094p58mrnz6wljpplp3n0hl2vj3ym76928gs57lg4sfhlymtvd76a7xys4vdfjqcemy4k", {"Balance", "TotalUTXO"}, BlockchainBase -> "Cardano"]Scope (11)
Address (1)
Get the address that matches the provided one:
addresses = {"Alice" -> "addr1v94xluc70dxdn07ppd9aukkejqq2zht4ezpmsk0v3g2vcaqsyta07", "Bob" -> "addr1v800jtvhk7gcz994587vjvjv7rvnw3q0caewddt08nzkujquvscvq" };BlockchainAddressData["Alice" /. addresses, "Address", BlockchainBase -> "Cardano"]AssetBalances (1)
Balance (1)
TotalTransactions (1)
TotalUTXO (1)
TotalWithdrawals (1)
TotalWithdrawn (1)
TransactionList (1)
UTXOList (1)
ValueInUSDollars (1)
Options (3)
BlockchainBase (2)
Mainnet (1)
Applications (1)
Create a simple gallery of NFTs owned by an address:
assets = BlockchainAddressData["addr1qx9wpgszhgg56n5wh8u2dmt5qxe47hvlcwnm27qjsshnp8vln7wc84w9kzz0mv4juty0k3k0fp9ust99hapyuj6qlvdss9nyan", "AssetBalances", BlockchainBase -> "Cardano"];fingerprintsAndNames = Take[Lookup[assets, {"Fingerprint", "AssetName"}], 6];cids = Function[u, StringDrop[Last[Values[BlockchainTransactionData[BlockchainTokenData[u[[1]], BlockchainBase -> "Cardano"][[1]]["TokenMints"][[-1]]["TransactionID"], "Metadata", BlockchainBase -> "Cardano"]["721"]]][FromCharacterCode[FromDigits[#, 16]& /@ StringPartition[u[[2]], 2]]]["image"], 7]] /@ fingerprintsAndNamesimages = Import /@ (ExternalStorageDownload[#, ExternalStorageBase -> "IPFS"]& /@ cids);ImageCollage[images]Properties & Relations (1)
The value returned by the "Address" property is the same as the provided address:
address = "addr1q9z402ku7wxyskdesghykhx6rg6pq094p58mrnz6wljpplp3n0hl2vj3ym76928gs57lg4sfhlymtvd76a7xys4vdfjqcemy4k";BlockchainAddressData[address, "Address", BlockchainBase -> "Cardano"] === addressPossible Issues (2)
Nonexistent Addresses (1)
Using an address from one network in another network will return a Missing output:
address = "addr1q9z402ku7wxyskdesghykhx6rg6pq094p58mrnz6wljpplp3n0hl2vj3ym76928gs57lg4sfhlymtvd76a7xys4vdfjqcemy4k";BlockchainAddressData[address, BlockchainBase -> {"Cardano", "Mainnet"}]//DatasetBlockchainAddressData[address, BlockchainBase -> {"Cardano", "Testnet"}]Incorrect Addresses (1)
Providing an invalid address, public key or username will return a $Failed output:
BlockchainAddressData["x!=#%", BlockchainBase -> "Cardano"]Related Guides
History
Introduced in 2021 (13.0)
Text
Wolfram Research (2021), BlockchainAddressData, Wolfram Language function, https://reference.wolfram.com/language/ref/blockchain/BlockchainAddressData-Cardano.html.
CMS
Wolfram Language. 2021. "BlockchainAddressData." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/blockchain/BlockchainAddressData-Cardano.html.
APA
Wolfram Language. (2021). BlockchainAddressData. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/blockchain/BlockchainAddressData-Cardano.html
BibTeX
@misc{reference.wolfram_2026_blockchainaddressdata, author="Wolfram Research", title="{BlockchainAddressData}", year="2021", howpublished="\url{https://reference.wolfram.com/language/ref/blockchain/BlockchainAddressData-Cardano.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_blockchainaddressdata, organization={Wolfram Research}, title={BlockchainAddressData}, year={2021}, url={https://reference.wolfram.com/language/ref/blockchain/BlockchainAddressData-Cardano.html}, note=[Accessed: 13-June-2026]}