Skip to content

IndexCanister

Defined in: packages/ledger-icp/src/index.canister.ts:19

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

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

Principal

_SERVICE

_SERVICE

IndexCanister

Canister<IndexService>.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

accountBalance(params): Promise<bigint>

Defined in: packages/ledger-icp/src/index.canister.ts:45

Returns the balance of the specified account identifier.

AccountBalanceParams

The parameters to get the balance of an account.

Promise<bigint>

The balance of the given account.


getTransactions(params): Promise<GetAccountIdentifierTransactionsResponse>

Defined in: packages/ledger-icp/src/index.canister.ts:64

Returns the transactions and balance of an ICP account.

GetTransactionsParams

The parameters to get the transactions.

Promise<GetAccountIdentifierTransactionsResponse>

The transactions, balance and the transaction id of the oldest transaction the account has.

IndexError


static create(__namedParameters): IndexCanister

Defined in: packages/ledger-icp/src/index.canister.ts:20

CanisterOptions<_SERVICE>

IndexCanister