IcrcIndexNgCanister
Defined in: packages/ledger-icrc/src/index-ng.canister.ts:23
Extends
Section titled “Extends”IcrcCanister<IcrcIndexNgService>
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”
protectednew IcrcIndexNgCanister(id,service,certifiedService):IcrcIndexNgCanister
Defined in: packages/utils/dist/services/canister.d.ts:7
Parameters
Section titled “Parameters”Principal
service
Section titled “service”_SERVICE
certifiedService
Section titled “certifiedService”_SERVICE
Returns
Section titled “Returns”IcrcIndexNgCanister
Inherited from
Section titled “Inherited from”IcrcCanister<IcrcIndexNgService>.constructor
Properties
Section titled “Properties”caller()
Section titled “caller()”
protectedcaller: (__namedParameters) =>_SERVICE
Defined in: packages/utils/dist/services/canister.d.ts:9
Parameters
Section titled “Parameters”__namedParameters
Section titled “__namedParameters”QueryParams
Returns
Section titled “Returns”_SERVICE
Inherited from
Section titled “Inherited from”IcrcCanister.caller
certifiedService
Section titled “certifiedService”
protectedreadonlycertifiedService:_SERVICE
Defined in: packages/utils/dist/services/canister.d.ts:6
Inherited from
Section titled “Inherited from”IcrcCanister.certifiedService
service
Section titled “service”
protectedreadonlyservice:_SERVICE
Defined in: packages/utils/dist/services/canister.d.ts:5
Inherited from
Section titled “Inherited from”IcrcCanister.service
Accessors
Section titled “Accessors”canisterId
Section titled “canisterId”Get Signature
Section titled “Get Signature”get canisterId():
Principal
Defined in: packages/utils/dist/services/canister.d.ts:8
Returns
Section titled “Returns”Principal
Inherited from
Section titled “Inherited from”IcrcCanister.canisterId
Methods
Section titled “Methods”balance()
Section titled “balance()”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.
Parameters
Section titled “Parameters”params
Section titled “params”The parameters to get the balance of an account.
Returns
Section titled “Returns”Promise<bigint>
The balance of the given account.
Inherited from
Section titled “Inherited from”IcrcCanister.balance
getTransactions()
Section titled “getTransactions()”getTransactions(
params):Promise<IcrcIndexNgGetTransactions>
Defined in: packages/ledger-icrc/src/index-ng.canister.ts:49
Get the transactions of an account.
Parameters
Section titled “Parameters”params
Section titled “params”GetIndexNgAccountTransactionsParams
The parameters to get the transactions of an account.
Returns
Section titled “Returns”Promise<IcrcIndexNgGetTransactions>
The list of transactions and further related information of the given account.
ledgerId()
Section titled “ledgerId()”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.
Parameters
Section titled “Parameters”params
Section titled “params”QueryParams
Returns
Section titled “Returns”Promise<Principal>
listSubaccounts()
Section titled “listSubaccounts()”listSubaccounts(
params):Promise<SubAccount[]>
Defined in: packages/ledger-icrc/src/index-ng.canister.ts:87
Returns the list of subaccounts for a given owner.
Parameters
Section titled “Parameters”params
Section titled “params”The parameters to get the list of subaccounts.
Returns
Section titled “Returns”Promise<SubAccount[]>
The list of subaccounts.
status()
Section titled “status()”status(
params):Promise<IcrcNgStatus>
Defined in: packages/ledger-icrc/src/index-ng.canister.ts:78
Returns the status of the index canister.
Parameters
Section titled “Parameters”params
Section titled “params”QueryParams
The parameters to get the status of the index canister.
Returns
Section titled “Returns”Promise<IcrcNgStatus>
The status of the index canister.
create()
Section titled “create()”
staticcreate(options):IcrcIndexNgCanister
Defined in: packages/ledger-icrc/src/index-ng.canister.ts:24
Parameters
Section titled “Parameters”options
Section titled “options”IcrcLedgerCanisterOptions<_SERVICE>
Returns
Section titled “Returns”IcrcIndexNgCanister