Skip to content

IcrcIndexCanister

Defined in: packages/ledger-icrc/src/index.canister.ts:14

  • Canister<IcrcIndexService>

protected new IcrcIndexCanister(id, service, certifiedService): IcrcIndexCanister

Defined in: packages/utils/dist/services/canister.d.ts:7

Principal

_SERVICE

_SERVICE

IcrcIndexCanister

Canister<IcrcIndexService>.constructor

protected caller: (__namedParameters) => _SERVICE

Defined in: packages/utils/dist/services/canister.d.ts:9

QueryParams

_SERVICE

Canister.caller


protected readonly certifiedService: _SERVICE

Defined in: packages/utils/dist/services/canister.d.ts:6

Canister.certifiedService


protected readonly service: _SERVICE

Defined in: packages/utils/dist/services/canister.d.ts:5

Canister.service

get canisterId(): Principal

Defined in: packages/utils/dist/services/canister.d.ts:8

Principal

Canister.canisterId

getTransactions(params): Promise<IcrcGetTransactions>

Defined in: packages/ledger-icrc/src/index.canister.ts:34

Get the transactions of an account

Always certified. get_account_transactions needs to be called with an update because the index canisters makes a call to the ledger canister to get the transaction data. Index Canister only holds the transactions ids in state, not the whole transaction data.

GetAccountTransactionsParams

Promise<IcrcGetTransactions>


ledgerId(params): Promise<Principal>

Defined in: packages/ledger-icrc/src/index.canister.ts:51

Returns the ledger canister ID related to the index canister.

QueryParams

Promise<Principal>


static create(options): IcrcIndexCanister

Defined in: packages/ledger-icrc/src/index.canister.ts:15

IcrcLedgerCanisterOptions<_SERVICE>

IcrcIndexCanister