Class: TokenIdEndpoint
Allows fetching tokenId confirmedTxs, unconfirmedTxs, history, and UTXOs.
Constructors
constructor
• new TokenIdEndpoint(proxyInterface
, tokenId
): TokenIdEndpoint
Parameters
Name | Type |
---|---|
proxyInterface | FailoverProxy |
tokenId | string |
Returns
Defined in
Methods
confirmedTxs
▸ confirmedTxs(page?
, pageSize?
): Promise
<TxHistoryPage_InNode
>
Fetches the confirmed tx history of this tokenId, in anti-chronological order.
Parameters
Name | Type | Default value | Description |
---|---|---|---|
page | number | 0 | Page index of the tx history. |
pageSize | number | 25 | Number of txs per page. |
Returns
Promise
<TxHistoryPage_InNode
>
Defined in
history
▸ history(page?
, pageSize?
): Promise
<TxHistoryPage_InNode
>
Fetches the tx history of this tokenId, in anti-chronological order.
Parameters
Name | Type | Default value | Description |
---|---|---|---|
page | number | 0 | Page index of the tx history. |
pageSize | number | 25 | Number of txs per page. |
Returns
Promise
<TxHistoryPage_InNode
>
Defined in
unconfirmedTxs
▸ unconfirmedTxs(page?
, pageSize?
): Promise
<TxHistoryPage_InNode
>
Fetches the unconfirmed tx history of this tokenId, in anti-chronological order.
Parameters
Name | Type | Default value | Description |
---|---|---|---|
page | number | 0 | Page index of the tx history. |
pageSize | number | 25 | Number of txs per page. |
Returns
Promise
<TxHistoryPage_InNode
>
Defined in
utxos
▸ utxos(): Promise
<TokenIdUtxos
>
Fetches the current UTXO set for this tokenId.
Returns
Promise
<TokenIdUtxos
>