Tokens
Access tokens using Chronik.
note
This page only lists token-specific endpoints. All other APIs (tx, history, utxos, etc.) also contain token data where applicable.
token(tokenId)
Return token info for the given tokenId
See token API docs.
Live Editor
function DemoToken() { return <Json fn={async () => { // CRD token return await chronik .token("cdcdcdcdcdc9dda4c92bb1145aa84945c024346ea66fd4b699e344e45df2e145"); }} />; }
Result
Loading...
tokenId(tokenId)
Return an object that can be used to fetch token data from Chronik in a fluent interface.
See tokenId API docs.
Live Editor
function DemoTokenId() { return <Json fn={async () => { // CRD Genesis is first return await chronik .tokenId("cdcdcdcdcdc9dda4c92bb1145aa84945c024346ea66fd4b699e344e45df2e145") .confirmedTxs(0, 1); }} />; }
Result
Loading...
history(pageOffset, pageSize)
Fetch the tx history of a Token ID, from latest to earliest.
See history API docs.
Live Editor
function DemoTokenIdHistory() { return <Json fn={async () => { // The latest CRD tx return await chronik .tokenId("cdcdcdcdcdc9dda4c92bb1145aa84945c024346ea66fd4b699e344e45df2e145") .history(0, 1); }} />; }
Result
Loading...
confirmedTxs(pageOffset, pageSize)
Fetch the confirmed txs of a Token ID, from first to last.
See confirmedTxs API docs.
Live Editor
function DemoTokenIdConfirmedTxs() { return <Json fn={async () => { // CRD GENESIS return await chronik .tokenId("cdcdcdcdcdc9dda4c92bb1145aa84945c024346ea66fd4b699e344e45df2e145") .confirmedTxs(0, 1); }} />; }
Result
Loading...
unconfirmedTxs()
Fetch the unconfirmed txs of a Token ID.
See unconfirmedTxs API docs.
Live Editor
function DemoTokenIdUnconfirmedTxs() { return <Json fn={async () => { // Grumpy token txs in mempool return await chronik .tokenId("fb4233e8a568993976ed38a81c2671587c5ad09552dedefa78760deed6ff87aa") .unconfirmedTxs(); }} />; }
Result
Loading...
utxos()
Fetch the utxos of a Token ID.
See utxos API docs.
Live Editor
function DemoTokenIdUtxos() { return <Json fn={async () => { // Some CRD UTXO return (await chronik .tokenId("cdcdcdcdcdc9dda4c92bb1145aa84945c024346ea66fd4b699e344e45df2e145") .utxos()).utxos[0]; }} />; }
Result
Loading...