Skip to content

IcrcIndexNgCanister

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

  • IcrcCanister<IcrcIndexNgService>

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

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

Principal

_SERVICE

_SERVICE

IcrcIndexNgCanister

IcrcCanister<IcrcIndexNgService>.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/ledger-icrc/src/canister.ts:18

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<IcrcIndexNgGetTransactions>

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

Get the transactions of an account.

GetIndexNgAccountTransactionsParams

The parameters to get the transactions of an account.

Promise<IcrcIndexNgGetTransactions>

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


ledgerId(params): Promise<Principal>

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

Returns the ledger canister ID related to the index canister.

QueryParams

Promise<Principal>


listSubaccounts(params): Promise<SubAccount[]>

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

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<IcrcNgStatus>

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

Returns the status of the index canister.

QueryParams

The parameters to get the status of the index canister.

Promise<IcrcNgStatus>

The status of the index canister.


static create(options): IcrcIndexNgCanister

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

IcrcLedgerCanisterOptions<_SERVICE>

IcrcIndexNgCanister