BlockchainTokenData (for bloxberg)
BlockchainTokenData["name"]
gives general information about the use of tokens with the specified name on the bloxberg blockchain.
BlockchainTokenData["sym"]
gives general information about tokens with symbol sym.
BlockchainTokenData["address"]
gives general information about tokens associated with the specified address.
BlockchainTokenData[assoc]
gives general information about tokens with properties matching the specification in assoc.
BlockchainTokenData[tokenspec,prop]
gives the specified property of token usage.
Details
- BlockchainTokenData gives a list of associations, with each association giving the results for a single token.
- In BlockchainTokenData["name"], name can either be the name assigned to a specific token (e.g. "Ethernity Token") or the standard for a class of tokens (e.g. "ERC721").
- The tokenspec input refers to any input, whether it is a String name, symbol, address or an Association assoc.
- In BlockchainTokenData[assoc], the association assoc can have elements with the following keys:
-
"Name" name of the token (e.g. "Tronix") "Symbol" symbol for the token (e.g. "CK") "TokenAddress" address associated with the token "TokenStandard" standard defining the token (e.g. "ERC20") "TimeInterval" time interval for transactions to be included "BlockNumberInterval" blocks whose transactions should be included "Addresses" sender or receiver addresses for transfers "SenderAddresses" sender addresses for transfers "ReceiverAddresses" receiver addresses for transfers "HolderAddresses" addresses of current token holders - Any key that is omitted in the input association is assumed to allow any value. This is equivalent to specifying the key and value as "key"->All.
- The "TimeInterval" can be given as a single DateObject with a specified granularity or as a list of start-and-end-date objects.
- Possible options for BlockchainTokenData include:
-
BlockchainBase "Ethereum" the blockchain and network to use MaxItems 20 the maximum number of items to return - The setting for MaxItems specifies the maximum number of holders, transfers, sender addresses and receiver addresses to include in each result.
- BlockchainTokenData[tokenspec] gives general information about tokens in associations that include the following elements:
-
"Name" name of the token "Symbol" symbol for the token "TokenAddress" address associated with the token "TokenStandard" standard defining the token "TotalSupply" total existing supply of the token "TransferPrecision" number of precision digits of the token (only for "ERC20") "HoldersCount" total current holders of the token "AddressesCount" total addresses that have received the token "TransfersCount" total transfers that have been made of the token - Additionally, BlockchainTokenData[assoc] returns the following properties when the element "HolderAddresses" is given in the input association assoc:
-
"Name" name of the token "Symbol" symbol for the token "TokenAddress" address associated with the token "TokenStandard" standard defining the token "TransfersCount" total transfers that have been made of the token by the given holders "Balance" balance of the holder "HolderTokenIDs" list of token IDs held by current holders (only for "ERC721") "BalanceFraction" fraction of the total supply held by the holder - BlockchainTokenData[assoc] returns the following properties when the elements "TimeInterval", "BlockNumberInterval", "Addresses", "SenderAddresses" or "ReceiverAddresses" are given in the input association assoc:
-
"Name" name of the token "TokenStandard" standard defining the token "TransactionID" transaction hash, which includes the token transfer "BlockNumber" block number including the transaction "Time" timestamp of the block "Sender" sender of the token "Receiver" receiver of the token "Amount" amount of tokens sent (only for "ERC20") "TokenID" ID of token sent (only for "ERC721") - BlockchainTokenData[tokenspec,prop] also supports the following additional properties:
-
"HolderList" current token holders, with the largest holders first "TransferList" transfers of the token, with the most recent first "SenderAddressList" addresses of all senders of the token "ReceiverAddressList" addresses of all receivers of the token - These properties are not available when the elements "TimeInterval", "BlockNumberInterval", "Addresses", "SenderAddresses" or "ReceiverAddresses" are given in the input association tokenspec.
- The property "HolderList" is not available when the element "HolderAddresses" is given in the input association tokenspec.
- The value for "HolderList" is a list of associations with the following keys:
-
"HolderAddress" address of the holder "Balance" balance of the holder "BalanceFraction" fraction of the total supply held by the holder - The value for "TransferList" is a list of associations with the following keys:
-
"TransactionID" transaction hash, which includes the token transfer "BlockNumber" block number including the transaction "Time" timestamp of the block "Sender" sender of the token "Receiver" receiver of the token "Amount" amount of tokens sent (only for "ERC20") "TokenID" ID of token sent (only for "ERC721") - BlockchainTokenData[tokenspec,{prop1,prop2,…}] includes the propi in each association.
Examples
open allclose allBasic Examples (13)
Check specific token information by name:
Check specific token information by symbol:
Check specific token information by token address:
Get total existing supply of the X token:
Get multiple properties from the X token:
Filter token transfers by block:
Filter token transfers by time:
Filter token transfers by a sender address:
Filter token transfers by a receiver address:
Filter all "ERC20" token transfers by an address, whether it is the sender or the receiver:
Scope (51)
Amount (5)
BlockNumber (5)
Receiver (5)
Sender (5)
Time (5)
Get the block timestamp associated to a token filtered by a time interval:
Get the block timestamp associated to a token filtered by sender address:
Get the block timestamp associated to a token filtered by receiver address:
Get the block timestamp associated to a token filtered by a block interval:
TokenID (5)
TransactionID (5)
Get the transaction hash including the token transfer filtered by a time interval:
Get the transaction hash including the token transfer filtered by sender address:
Get the transaction hash including the token transfer filtered by receiver address:
Get the transaction hash including the token transfer filtered by a block interval:
Options (2)
Text
Wolfram Research (2020), BlockchainTokenData, Wolfram Language function, https://reference.wolfram.com/language/ref/blockchain/BlockchainTokenData-bloxberg.html.
CMS
Wolfram Language. 2020. "BlockchainTokenData." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/blockchain/BlockchainTokenData-bloxberg.html.
APA
Wolfram Language. (2020). BlockchainTokenData. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/blockchain/BlockchainTokenData-bloxberg.html