Skip to content

IcrcIndexCanister

Defined in: packages/canisters/src/ledger/icrc/index.canister.ts:21

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

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

Principal

_SERVICE

_SERVICE

IcrcIndexCanister

IcrcCanister<IcrcIndexService>.constructor

protected caller: (__namedParameters) => _SERVICE

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

QueryParams

_SERVICE

IcrcCanister.caller


protected readonly certifiedService: _SERVICE

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

IcrcCanister.certifiedService


protected readonly service: _SERVICE

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

IcrcCanister.service

get canisterId(): Principal

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

Principal

IcrcCanister.canisterId

balance(params): Promise<bigint>

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

Returns the balance for a given account provided as owner and with optional subaccount.

BalanceParams

The parameters to get the balance of an account.

Promise<bigint>

The balance of the given account.

IcrcCanister.balance


getTransactions(params): Promise<GetTransactions>

Defined in: packages/canisters/src/ledger/icrc/index.canister.ts:47

Get the transactions of an account.

GetIndexAccountTransactionsParams

The parameters to get the transactions of an account.

Promise<GetTransactions>

The list of transactions and further related information of the given account.


ledgerId(params): Promise<Principal>

Defined in: packages/canisters/src/ledger/icrc/index.canister.ts:65

Returns the ledger canister ID related to the index canister.

QueryParams

Promise<Principal>


listSubaccounts(params): Promise<SubAccount[]>

Defined in: packages/canisters/src/ledger/icrc/index.canister.ts:85

Returns the list of subaccounts for a given owner.

ListSubaccountsParams

The parameters to get the list of subaccounts.

Promise<SubAccount[]>

The list of subaccounts.


status(params): Promise<Status>

Defined in: packages/canisters/src/ledger/icrc/index.canister.ts:76

Returns the status of the index canister.

QueryParams

The parameters to get the status of the index canister.

Promise<Status>

The status of the index canister.


static create(options): IcrcIndexCanister

Defined in: packages/canisters/src/ledger/icrc/index.canister.ts:22

IcrcLedgerCanisterOptions<_SERVICE>

IcrcIndexCanister