Skip to main content

Class: TokenIdEndpoint

Allows fetching tokenId confirmedTxs, unconfirmedTxs, history, and UTXOs.

Constructors

constructor

new TokenIdEndpoint(proxyInterface, tokenId): TokenIdEndpoint

Parameters

NameType
proxyInterfaceFailoverProxy
tokenIdstring

Returns

TokenIdEndpoint

Defined in

src/ChronikClientNode.ts:248

Methods

confirmedTxs

confirmedTxs(page?, pageSize?): Promise<TxHistoryPage_InNode>

Fetches the confirmed tx history of this tokenId, in anti-chronological order.

Parameters

NameTypeDefault valueDescription
pagenumber0Page index of the tx history.
pageSizenumber25Number of txs per page.

Returns

Promise<TxHistoryPage_InNode>

Defined in

src/ChronikClientNode.ts:278


history

history(page?, pageSize?): Promise<TxHistoryPage_InNode>

Fetches the tx history of this tokenId, in anti-chronological order.

Parameters

NameTypeDefault valueDescription
pagenumber0Page index of the tx history.
pageSizenumber25Number of txs per page.

Returns

Promise<TxHistoryPage_InNode>

Defined in

src/ChronikClientNode.ts:258


unconfirmedTxs

unconfirmedTxs(page?, pageSize?): Promise<TxHistoryPage_InNode>

Fetches the unconfirmed tx history of this tokenId, in anti-chronological order.

Parameters

NameTypeDefault valueDescription
pagenumber0Page index of the tx history.
pageSizenumber25Number of txs per page.

Returns

Promise<TxHistoryPage_InNode>

Defined in

src/ChronikClientNode.ts:298


utxos

utxos(): Promise<TokenIdUtxos>

Fetches the current UTXO set for this tokenId.

Returns

Promise<TokenIdUtxos>

Defined in

src/ChronikClientNode.ts:316