IcrcIndexCanister
Defined in: packages/ledger-icrc/src/index.canister.ts:14
Extends
Section titled “Extends”Canister<IcrcIndexService>
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”
protectednew IcrcIndexCanister(id,service,certifiedService):IcrcIndexCanister
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”IcrcIndexCanister
Inherited from
Section titled “Inherited from”Canister<IcrcIndexService>.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”Canister.caller
certifiedService
Section titled “certifiedService”
protectedreadonlycertifiedService:_SERVICE
Defined in: packages/utils/dist/services/canister.d.ts:6
Inherited from
Section titled “Inherited from”Canister.certifiedService
service
Section titled “service”
protectedreadonlyservice:_SERVICE
Defined in: packages/utils/dist/services/canister.d.ts:5
Inherited from
Section titled “Inherited from”Canister.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”Canister.canisterId
Methods
Section titled “Methods”getTransactions()
Section titled “getTransactions()”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.
Parameters
Section titled “Parameters”params
Section titled “params”Returns
Section titled “Returns”Promise<IcrcGetTransactions>
ledgerId()
Section titled “ledgerId()”ledgerId(
params):Promise<Principal>
Defined in: packages/ledger-icrc/src/index.canister.ts:51
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>
create()
Section titled “create()”
staticcreate(options):IcrcIndexCanister
Defined in: packages/ledger-icrc/src/index.canister.ts:15
Parameters
Section titled “Parameters”options
Section titled “options”IcrcLedgerCanisterOptions<_SERVICE>
Returns
Section titled “Returns”IcrcIndexCanister