Skip to content

Overview

Defined in: packages/canisters/src/ledger/icp/account_identifier.ts:23

A 32-byte account identifier used to send and receive ICP tokens.

The ICP Ledger uses the concept of an AccountIdentifier to represent accounts. It’s a unique value derived from a principal (the identity controlling the account) and a subaccount. This design allows a single principal to control multiple accounts by using different subaccounts.

toAccountIdentifierHash(): object

Defined in: packages/canisters/src/ledger/icp/account_identifier.ts:127

Returns the raw bytes wrapped in an object under the hash key.

object

{ hash: Uint8Array } where hash is the raw 32-byte Uint8Array.

hash: Uint8Array

toHex(): string

Defined in: packages/canisters/src/ledger/icp/account_identifier.ts:100

Returns the ICP Ledger Account Identifier as a 64-character hexadecimal string. This is the format typically used to display the account identifier in a human-readable way.

string

Hex representation (64-character string).

toNumbers(): number[]

Defined in: packages/canisters/src/ledger/icp/account_identifier.ts:118

Returns the account identifier as an array of numbers.

number[]

An array of byte values.

toUint8Array(): Uint8Array

Defined in: packages/canisters/src/ledger/icp/account_identifier.ts:109

Returns the raw 32-byte Uint8Array of the account identifier.

Uint8Array

The raw bytes of the account identifier.

static fromHex(hex): AccountIdentifier

Defined in: packages/canisters/src/ledger/icp/account_identifier.ts:34

Creates an AccountIdentifier object from a hexadecimal string (e.g. d3e13d4777e22367532053190b6c6ccf57444a61337e996242b1abfb52cf92c8). Validates the checksum in the process.

string

The 64-character hexadecimal representation of the account identifier.

AccountIdentifier

An instance of AccountIdentifier.

If the length is not 32 bytes or if the checksum is invalid.

static fromPrincipal(__namedParameters): AccountIdentifier

Defined in: packages/canisters/src/ledger/icp/account_identifier.ts:68

Creates an AccountIdentifier object from a principal and optional subaccount.

When no subaccount is provided, a 32-byte array of zeros is used by default. You can use any arbitrary 32 bytes as a subaccount identifier to derive a distinct account identifier for the same principal.

Principal

SubAccount = ...

AccountIdentifier

An instance of AccountIdentifier.


Defined in: packages/canisters/src/ledger/icp/errors/ledger.errors.ts:57

new AllowanceChangedError(currentAllowance): AllowanceChangedError

Defined in: packages/canisters/src/ledger/icp/errors/ledger.errors.ts:58

bigint

AllowanceChangedError

ApproveError.constructor

optional cause: unknown

Defined in: node_modules/typescript/lib/lib.es2022.error.d.ts:26

ApproveError.cause

readonly currentAllowance: bigint

Defined in: packages/canisters/src/ledger/icp/errors/ledger.errors.ts:58

message: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1077

ApproveError.message

name: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1076

ApproveError.name

optional stack: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1078

ApproveError.stack

static stackTraceLimit: number

Defined in: node_modules/@types/node/globals.d.ts:67

The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)).

The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed.

If set to a non-number value, or set to a negative number, stack traces will not capture any frames.

ApproveError.stackTraceLimit

static captureStackTrace(targetObject, constructorOpt?): void

Defined in: node_modules/@types/node/globals.d.ts:51

Creates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.

const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack; // Similar to `new Error().stack`

The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.

The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.

The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:

function a() {
b();
}
function b() {
c();
}
function c() {
// Create an error without stack trace to avoid calculating the stack trace twice.
const { stackTraceLimit } = Error;
Error.stackTraceLimit = 0;
const error = new Error();
Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
throw error;
}
a();

object

Function

void

ApproveError.captureStackTrace

static isError(error): error is Error

Defined in: node_modules/typescript/lib/lib.esnext.error.d.ts:23

Indicates whether the argument provided is a built-in Error instance or not.

unknown

error is Error

ApproveError.isError

static prepareStackTrace(err, stackTraces): any

Defined in: node_modules/@types/node/globals.d.ts:55

Error

CallSite[]

any

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

ApproveError.prepareStackTrace


Defined in: packages/canisters/src/ledger/icp/errors/ledger.errors.ts:7

new ApproveError(message?): ApproveError

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1082

string

ApproveError

IcrcError.constructor

new ApproveError(message?, options?): ApproveError

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1082

string

ErrorOptions

ApproveError

IcrcError.constructor

optional cause: unknown

Defined in: node_modules/typescript/lib/lib.es2022.error.d.ts:26

IcrcError.cause

message: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1077

IcrcError.message

name: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1076

IcrcError.name

optional stack: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1078

IcrcError.stack

static stackTraceLimit: number

Defined in: node_modules/@types/node/globals.d.ts:67

The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)).

The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed.

If set to a non-number value, or set to a negative number, stack traces will not capture any frames.

IcrcError.stackTraceLimit

static captureStackTrace(targetObject, constructorOpt?): void

Defined in: node_modules/@types/node/globals.d.ts:51

Creates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.

const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack; // Similar to `new Error().stack`

The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.

The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.

The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:

function a() {
b();
}
function b() {
c();
}
function c() {
// Create an error without stack trace to avoid calculating the stack trace twice.
const { stackTraceLimit } = Error;
Error.stackTraceLimit = 0;
const error = new Error();
Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
throw error;
}
a();

object

Function

void

IcrcError.captureStackTrace

static isError(error): error is Error

Defined in: node_modules/typescript/lib/lib.esnext.error.d.ts:23

Indicates whether the argument provided is a built-in Error instance or not.

unknown

error is Error

IcrcError.isError

static prepareStackTrace(err, stackTraces): any

Defined in: node_modules/@types/node/globals.d.ts:55

Error

CallSite[]

any

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

IcrcError.prepareStackTrace


Defined in: packages/canisters/src/ledger/icp/errors/ledger.errors.ts:34

new BadFeeError(expectedFee): BadFeeError

Defined in: packages/canisters/src/ledger/icp/errors/ledger.errors.ts:35

bigint

BadFeeError

IcrcError.constructor

optional cause: unknown

Defined in: node_modules/typescript/lib/lib.es2022.error.d.ts:26

IcrcError.cause

readonly expectedFee: bigint

Defined in: packages/canisters/src/ledger/icp/errors/ledger.errors.ts:35

message: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1077

IcrcError.message

name: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1076

IcrcError.name

optional stack: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1078

IcrcError.stack

static stackTraceLimit: number

Defined in: node_modules/@types/node/globals.d.ts:67

The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)).

The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed.

If set to a non-number value, or set to a negative number, stack traces will not capture any frames.

IcrcError.stackTraceLimit

static captureStackTrace(targetObject, constructorOpt?): void

Defined in: node_modules/@types/node/globals.d.ts:51

Creates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.

const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack; // Similar to `new Error().stack`

The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.

The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.

The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:

function a() {
b();
}
function b() {
c();
}
function c() {
// Create an error without stack trace to avoid calculating the stack trace twice.
const { stackTraceLimit } = Error;
Error.stackTraceLimit = 0;
const error = new Error();
Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
throw error;
}
a();

object

Function

void

IcrcError.captureStackTrace

static isError(error): error is Error

Defined in: node_modules/typescript/lib/lib.esnext.error.d.ts:23

Indicates whether the argument provided is a built-in Error instance or not.

unknown

error is Error

IcrcError.isError

static prepareStackTrace(err, stackTraces): any

Defined in: node_modules/@types/node/globals.d.ts:55

Error

CallSite[]

any

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

IcrcError.prepareStackTrace


Defined in: packages/canisters/src/ledger/icp/errors/ledger.errors.ts:8

new ConsentMessageError(message?): ConsentMessageError

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1082

string

ConsentMessageError

IcrcError.constructor

new ConsentMessageError(message?, options?): ConsentMessageError

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1082

string

ErrorOptions

ConsentMessageError

IcrcError.constructor

optional cause: unknown

Defined in: node_modules/typescript/lib/lib.es2022.error.d.ts:26

IcrcError.cause

message: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1077

IcrcError.message

name: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1076

IcrcError.name

optional stack: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1078

IcrcError.stack

static stackTraceLimit: number

Defined in: node_modules/@types/node/globals.d.ts:67

The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)).

The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed.

If set to a non-number value, or set to a negative number, stack traces will not capture any frames.

IcrcError.stackTraceLimit

static captureStackTrace(targetObject, constructorOpt?): void

Defined in: node_modules/@types/node/globals.d.ts:51

Creates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.

const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack; // Similar to `new Error().stack`

The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.

The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.

The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:

function a() {
b();
}
function b() {
c();
}
function c() {
// Create an error without stack trace to avoid calculating the stack trace twice.
const { stackTraceLimit } = Error;
Error.stackTraceLimit = 0;
const error = new Error();
Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
throw error;
}
a();

object

Function

void

IcrcError.captureStackTrace

static isError(error): error is Error

Defined in: node_modules/typescript/lib/lib.esnext.error.d.ts:23

Indicates whether the argument provided is a built-in Error instance or not.

unknown

error is Error

IcrcError.isError

static prepareStackTrace(err, stackTraces): any

Defined in: node_modules/@types/node/globals.d.ts:55

Error

CallSite[]

any

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

IcrcError.prepareStackTrace


Defined in: packages/canisters/src/ledger/icp/errors/ledger.errors.ts:74

new ConsentMessageUnavailableError(message?): ConsentMessageUnavailableError

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1082

string

ConsentMessageUnavailableError

ConsentMessageError.constructor

new ConsentMessageUnavailableError(message?, options?): ConsentMessageUnavailableError

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1082

string

ErrorOptions

ConsentMessageUnavailableError

ConsentMessageError.constructor

optional cause: unknown

Defined in: node_modules/typescript/lib/lib.es2022.error.d.ts:26

ConsentMessageError.cause

message: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1077

ConsentMessageError.message

name: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1076

ConsentMessageError.name

optional stack: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1078

ConsentMessageError.stack

static stackTraceLimit: number

Defined in: node_modules/@types/node/globals.d.ts:67

The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)).

The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed.

If set to a non-number value, or set to a negative number, stack traces will not capture any frames.

ConsentMessageError.stackTraceLimit

static captureStackTrace(targetObject, constructorOpt?): void

Defined in: node_modules/@types/node/globals.d.ts:51

Creates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.

const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack; // Similar to `new Error().stack`

The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.

The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.

The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:

function a() {
b();
}
function b() {
c();
}
function c() {
// Create an error without stack trace to avoid calculating the stack trace twice.
const { stackTraceLimit } = Error;
Error.stackTraceLimit = 0;
const error = new Error();
Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
throw error;
}
a();

object

Function

void

ConsentMessageError.captureStackTrace

static isError(error): error is Error

Defined in: node_modules/typescript/lib/lib.esnext.error.d.ts:23

Indicates whether the argument provided is a built-in Error instance or not.

unknown

error is Error

ConsentMessageError.isError

static prepareStackTrace(err, stackTraces): any

Defined in: node_modules/@types/node/globals.d.ts:55

Error

CallSite[]

any

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

ConsentMessageError.prepareStackTrace


Defined in: packages/canisters/src/ledger/icp/errors/ledger.errors.ts:63

new CreatedInFutureError(message?): CreatedInFutureError

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1082

string

CreatedInFutureError

ApproveError.constructor

new CreatedInFutureError(message?, options?): CreatedInFutureError

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1082

string

ErrorOptions

CreatedInFutureError

ApproveError.constructor

optional cause: unknown

Defined in: node_modules/typescript/lib/lib.es2022.error.d.ts:26

ApproveError.cause

message: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1077

ApproveError.message

name: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1076

ApproveError.name

optional stack: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1078

ApproveError.stack

static stackTraceLimit: number

Defined in: node_modules/@types/node/globals.d.ts:67

The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)).

The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed.

If set to a non-number value, or set to a negative number, stack traces will not capture any frames.

ApproveError.stackTraceLimit

static captureStackTrace(targetObject, constructorOpt?): void

Defined in: node_modules/@types/node/globals.d.ts:51

Creates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.

const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack; // Similar to `new Error().stack`

The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.

The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.

The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:

function a() {
b();
}
function b() {
c();
}
function c() {
// Create an error without stack trace to avoid calculating the stack trace twice.
const { stackTraceLimit } = Error;
Error.stackTraceLimit = 0;
const error = new Error();
Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
throw error;
}
a();

object

Function

void

ApproveError.captureStackTrace

static isError(error): error is Error

Defined in: node_modules/typescript/lib/lib.esnext.error.d.ts:23

Indicates whether the argument provided is a built-in Error instance or not.

unknown

error is Error

ApproveError.isError

static prepareStackTrace(err, stackTraces): any

Defined in: node_modules/@types/node/globals.d.ts:55

Error

CallSite[]

any

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

ApproveError.prepareStackTrace


Defined in: packages/canisters/src/ledger/icp/errors/ledger.errors.ts:51

new DuplicateError(duplicateOf): DuplicateError

Defined in: packages/canisters/src/ledger/icp/errors/ledger.errors.ts:52

bigint

DuplicateError

ApproveError.constructor

optional cause: unknown

Defined in: node_modules/typescript/lib/lib.es2022.error.d.ts:26

ApproveError.cause

readonly duplicateOf: bigint

Defined in: packages/canisters/src/ledger/icp/errors/ledger.errors.ts:52

message: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1077

ApproveError.message

name: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1076

ApproveError.name

optional stack: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1078

ApproveError.stack

static stackTraceLimit: number

Defined in: node_modules/@types/node/globals.d.ts:67

The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)).

The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed.

If set to a non-number value, or set to a negative number, stack traces will not capture any frames.

ApproveError.stackTraceLimit

static captureStackTrace(targetObject, constructorOpt?): void

Defined in: node_modules/@types/node/globals.d.ts:51

Creates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.

const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack; // Similar to `new Error().stack`

The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.

The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.

The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:

function a() {
b();
}
function b() {
c();
}
function c() {
// Create an error without stack trace to avoid calculating the stack trace twice.
const { stackTraceLimit } = Error;
Error.stackTraceLimit = 0;
const error = new Error();
Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
throw error;
}
a();

object

Function

void

ApproveError.captureStackTrace

static isError(error): error is Error

Defined in: node_modules/typescript/lib/lib.esnext.error.d.ts:23

Indicates whether the argument provided is a built-in Error instance or not.

unknown

error is Error

ApproveError.isError

static prepareStackTrace(err, stackTraces): any

Defined in: node_modules/@types/node/globals.d.ts:55

Error

CallSite[]

any

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

ApproveError.prepareStackTrace


Defined in: packages/canisters/src/ledger/icp/errors/ledger.errors.ts:66

new ExpiredError(ledgerTime): ExpiredError

Defined in: packages/canisters/src/ledger/icp/errors/ledger.errors.ts:67

bigint

ExpiredError

ApproveError.constructor

optional cause: unknown

Defined in: node_modules/typescript/lib/lib.es2022.error.d.ts:26

ApproveError.cause

readonly ledgerTime: bigint

Defined in: packages/canisters/src/ledger/icp/errors/ledger.errors.ts:67

message: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1077

ApproveError.message

name: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1076

ApproveError.name

optional stack: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1078

ApproveError.stack

static stackTraceLimit: number

Defined in: node_modules/@types/node/globals.d.ts:67

The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)).

The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed.

If set to a non-number value, or set to a negative number, stack traces will not capture any frames.

ApproveError.stackTraceLimit

static captureStackTrace(targetObject, constructorOpt?): void

Defined in: node_modules/@types/node/globals.d.ts:51

Creates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.

const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack; // Similar to `new Error().stack`

The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.

The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.

The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:

function a() {
b();
}
function b() {
c();
}
function c() {
// Create an error without stack trace to avoid calculating the stack trace twice.
const { stackTraceLimit } = Error;
Error.stackTraceLimit = 0;
const error = new Error();
Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
throw error;
}
a();

object

Function

void

ApproveError.captureStackTrace

static isError(error): error is Error

Defined in: node_modules/typescript/lib/lib.esnext.error.d.ts:23

Indicates whether the argument provided is a built-in Error instance or not.

unknown

error is Error

ApproveError.isError

static prepareStackTrace(err, stackTraces): any

Defined in: node_modules/@types/node/globals.d.ts:55

Error

CallSite[]

any

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

ApproveError.prepareStackTrace


Defined in: packages/canisters/src/ledger/icp/errors/ledger.errors.ts:40

new GenericError(message, error_code): GenericError

Defined in: packages/canisters/src/ledger/icp/errors/ledger.errors.ts:41

string

bigint

GenericError

ApproveError.constructor

optional cause: unknown

Defined in: node_modules/typescript/lib/lib.es2022.error.d.ts:26

ApproveError.cause

readonly error_code: bigint

Defined in: packages/canisters/src/ledger/icp/errors/ledger.errors.ts:43

readonly message: string

Defined in: packages/canisters/src/ledger/icp/errors/ledger.errors.ts:42

ApproveError.message

name: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1076

ApproveError.name

optional stack: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1078

ApproveError.stack

static stackTraceLimit: number

Defined in: node_modules/@types/node/globals.d.ts:67

The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)).

The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed.

If set to a non-number value, or set to a negative number, stack traces will not capture any frames.

ApproveError.stackTraceLimit

static captureStackTrace(targetObject, constructorOpt?): void

Defined in: node_modules/@types/node/globals.d.ts:51

Creates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.

const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack; // Similar to `new Error().stack`

The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.

The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.

The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:

function a() {
b();
}
function b() {
c();
}
function c() {
// Create an error without stack trace to avoid calculating the stack trace twice.
const { stackTraceLimit } = Error;
Error.stackTraceLimit = 0;
const error = new Error();
Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
throw error;
}
a();

object

Function

void

ApproveError.captureStackTrace

static isError(error): error is Error

Defined in: node_modules/typescript/lib/lib.esnext.error.d.ts:23

Indicates whether the argument provided is a built-in Error instance or not.

unknown

error is Error

ApproveError.isError

static prepareStackTrace(err, stackTraces): any

Defined in: node_modules/@types/node/globals.d.ts:55

Error

CallSite[]

any

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

ApproveError.prepareStackTrace


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

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

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

Principal

_SERVICE

_SERVICE

IcpIndexCanister

Canister<IcpIndexService>.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/canisters/src/ledger/icp/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/canisters/src/ledger/icp/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): IcpIndexCanister

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

CanisterOptions<_SERVICE>

IcpIndexCanister


Defined in: packages/canisters/src/ledger/icp/ledger.canister.ts:33

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

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

Principal

_SERVICE

_SERVICE

IcpLedgerCanister

Canister<IcpLedgerService>.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/canisters/src/ledger/icp/ledger.canister.ts:62

Returns the balance of the specified account identifier.

If certified is true, the request is fetched as an update call, otherwise it is fetched using a query call.

AccountBalanceParams

The parameters to get the balance of an account.

Promise<bigint>

The balance of the given account.

Error

icrc1Transfer(request): Promise<bigint>

Defined in: packages/canisters/src/ledger/icp/ledger.canister.ts:132

Transfer ICP from the caller to the destination Account. Returns the index of the block containing the tx if it was successful.

Icrc1TransferRequest

Promise<bigint>

TransferError

icrc21ConsentMessage(params): Promise<icrc21_consent_info>

Defined in: packages/canisters/src/ledger/icp/ledger.canister.ts:179

Fetches the consent message for a specified canister call, intended to provide a human-readable message that helps users make informed decisions.

@link: https://github.com/dfinity/wg-identity-authentication/blob/main/topics/ICRC-21/icrc_21_consent_msg.md

Icrc21ConsentMessageRequest

The request parameters containing the method name, arguments, and consent preferences (e.g., language).

Promise<icrc21_consent_info>

  • A promise that resolves to the consent message response, which includes the consent message in the specified language and other related information.
  • This error is reserved for future use, in case payment extensions are introduced. For example, if consent messages, which are currently free, begin to require payments.
  • If the specified canister call is not supported.
  • If there is no consent message available.
  • For any other generic errors.

icrc2Approve(params): Promise<bigint>

Defined in: packages/canisters/src/ledger/icp/ledger.canister.ts:152

This method entitles the spender to transfer token amount on behalf of the caller from account { owner = caller; subaccount = from_subaccount }.

Reference: https://github.com/dfinity/ICRC-1/blob/main/standards/ICRC-2/index.md#icrc2_approve

Icrc2ApproveRequest

The parameters to approve.

Promise<bigint>

The block index of the approved transaction.

If the approval fails.

metadata(params): Promise<[string, Value][]>

Defined in: packages/canisters/src/ledger/icp/ledger.canister.ts:81

Fetches the ledger metadata.

QueryParams

The parameters used to fetch the metadata, notably query or certified call.

Promise<[string, Value][]>

The metadata of the ICP ledger. A promise that resolves to an array of metadata entries, where each entry is a tuple consisting of a string and a value.

transactionFee(params?): Promise<bigint>

Defined in: packages/canisters/src/ledger/icp/ledger.canister.ts:94

Returns the transaction fee of the ICP ledger canister.

QueryParams = ...

Optional query parameters for the request, defaulting to { certified: false } for backwards compatibility reason.

Promise<bigint>

A promise that resolves to the transaction fee as a bigint.

transfer(request): Promise<bigint>

Defined in: packages/canisters/src/ledger/icp/ledger.canister.ts:112

Transfer ICP from the caller to the destination accountIdentifier. Returns the index of the block containing the tx if it was successful.

TransferRequest

Promise<bigint>

TransferError

static create(options): IcpLedgerCanister

Defined in: packages/canisters/src/ledger/icp/ledger.canister.ts:34

IcpLedgerCanisterOptions = {}

IcpLedgerCanister


Defined in: packages/canisters/src/ledger/icp/errors/ledger.errors.ts:4

  • Error

new IcrcError(message?): IcrcError

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1082

string

IcrcError

Error.constructor

new IcrcError(message?, options?): IcrcError

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1082

string

ErrorOptions

IcrcError

Error.constructor

optional cause: unknown

Defined in: node_modules/typescript/lib/lib.es2022.error.d.ts:26

Error.cause

message: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1077

Error.message

name: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1076

Error.name

optional stack: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1078

Error.stack

static stackTraceLimit: number

Defined in: node_modules/@types/node/globals.d.ts:67

The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)).

The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed.

If set to a non-number value, or set to a negative number, stack traces will not capture any frames.

Error.stackTraceLimit

static captureStackTrace(targetObject, constructorOpt?): void

Defined in: node_modules/@types/node/globals.d.ts:51

Creates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.

const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack; // Similar to `new Error().stack`

The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.

The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.

The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:

function a() {
b();
}
function b() {
c();
}
function c() {
// Create an error without stack trace to avoid calculating the stack trace twice.
const { stackTraceLimit } = Error;
Error.stackTraceLimit = 0;
const error = new Error();
Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
throw error;
}
a();

object

Function

void

Error.captureStackTrace

static isError(error): error is Error

Defined in: node_modules/typescript/lib/lib.esnext.error.d.ts:23

Indicates whether the argument provided is a built-in Error instance or not.

unknown

error is Error

Error.isError

static prepareStackTrace(err, stackTraces): any

Defined in: node_modules/@types/node/globals.d.ts:55

Error

CallSite[]

any

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

Error.prepareStackTrace


Defined in: packages/canisters/src/ledger/icp/errors/ledger.errors.ts:14

new InsufficientFundsError(balance): InsufficientFundsError

Defined in: packages/canisters/src/ledger/icp/errors/ledger.errors.ts:15

bigint

InsufficientFundsError

TransferError.constructor

readonly balance: bigint

Defined in: packages/canisters/src/ledger/icp/errors/ledger.errors.ts:15

optional cause: unknown

Defined in: node_modules/typescript/lib/lib.es2022.error.d.ts:26

TransferError.cause

message: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1077

TransferError.message

name: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1076

TransferError.name

optional stack: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1078

TransferError.stack

static stackTraceLimit: number

Defined in: node_modules/@types/node/globals.d.ts:67

The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)).

The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed.

If set to a non-number value, or set to a negative number, stack traces will not capture any frames.

TransferError.stackTraceLimit

static captureStackTrace(targetObject, constructorOpt?): void

Defined in: node_modules/@types/node/globals.d.ts:51

Creates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.

const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack; // Similar to `new Error().stack`

The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.

The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.

The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:

function a() {
b();
}
function b() {
c();
}
function c() {
// Create an error without stack trace to avoid calculating the stack trace twice.
const { stackTraceLimit } = Error;
Error.stackTraceLimit = 0;
const error = new Error();
Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
throw error;
}
a();

object

Function

void

TransferError.captureStackTrace

static isError(error): error is Error

Defined in: node_modules/typescript/lib/lib.esnext.error.d.ts:23

Indicates whether the argument provided is a built-in Error instance or not.

unknown

error is Error

TransferError.isError

static prepareStackTrace(err, stackTraces): any

Defined in: node_modules/@types/node/globals.d.ts:55

Error

CallSite[]

any

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

TransferError.prepareStackTrace


Defined in: packages/canisters/src/ledger/icp/errors/ledger.errors.ts:72

new InsufficientPaymentError(message?): InsufficientPaymentError

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1082

string

InsufficientPaymentError

ConsentMessageError.constructor

new InsufficientPaymentError(message?, options?): InsufficientPaymentError

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1082

string

ErrorOptions

InsufficientPaymentError

ConsentMessageError.constructor

optional cause: unknown

Defined in: node_modules/typescript/lib/lib.es2022.error.d.ts:26

ConsentMessageError.cause

message: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1077

ConsentMessageError.message

name: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1076

ConsentMessageError.name

optional stack: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1078

ConsentMessageError.stack

static stackTraceLimit: number

Defined in: node_modules/@types/node/globals.d.ts:67

The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)).

The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed.

If set to a non-number value, or set to a negative number, stack traces will not capture any frames.

ConsentMessageError.stackTraceLimit

static captureStackTrace(targetObject, constructorOpt?): void

Defined in: node_modules/@types/node/globals.d.ts:51

Creates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.

const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack; // Similar to `new Error().stack`

The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.

The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.

The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:

function a() {
b();
}
function b() {
c();
}
function c() {
// Create an error without stack trace to avoid calculating the stack trace twice.
const { stackTraceLimit } = Error;
Error.stackTraceLimit = 0;
const error = new Error();
Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
throw error;
}
a();

object

Function

void

ConsentMessageError.captureStackTrace

static isError(error): error is Error

Defined in: node_modules/typescript/lib/lib.esnext.error.d.ts:23

Indicates whether the argument provided is a built-in Error instance or not.

unknown

error is Error

ConsentMessageError.isError

static prepareStackTrace(err, stackTraces): any

Defined in: node_modules/@types/node/globals.d.ts:55

Error

CallSite[]

any

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

ConsentMessageError.prepareStackTrace


Defined in: packages/canisters/src/ledger/icp/errors/ledger.errors.ts:12

  • Error

new InvalidAccountIDError(message?): InvalidAccountIDError

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1082

string

InvalidAccountIDError

Error.constructor

new InvalidAccountIDError(message?, options?): InvalidAccountIDError

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1082

string

ErrorOptions

InvalidAccountIDError

Error.constructor

optional cause: unknown

Defined in: node_modules/typescript/lib/lib.es2022.error.d.ts:26

Error.cause

message: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1077

Error.message

name: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1076

Error.name

optional stack: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1078

Error.stack

static stackTraceLimit: number

Defined in: node_modules/@types/node/globals.d.ts:67

The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)).

The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed.

If set to a non-number value, or set to a negative number, stack traces will not capture any frames.

Error.stackTraceLimit

static captureStackTrace(targetObject, constructorOpt?): void

Defined in: node_modules/@types/node/globals.d.ts:51

Creates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.

const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack; // Similar to `new Error().stack`

The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.

The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.

The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:

function a() {
b();
}
function b() {
c();
}
function c() {
// Create an error without stack trace to avoid calculating the stack trace twice.
const { stackTraceLimit } = Error;
Error.stackTraceLimit = 0;
const error = new Error();
Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
throw error;
}
a();

object

Function

void

Error.captureStackTrace

static isError(error): error is Error

Defined in: node_modules/typescript/lib/lib.esnext.error.d.ts:23

Indicates whether the argument provided is a built-in Error instance or not.

unknown

error is Error

Error.isError

static prepareStackTrace(err, stackTraces): any

Defined in: node_modules/@types/node/globals.d.ts:55

Error

CallSite[]

any

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

Error.prepareStackTrace


Defined in: packages/canisters/src/ledger/icp/errors/ledger.errors.ts:10

new InvalidSenderError(message?): InvalidSenderError

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1082

string

InvalidSenderError

TransferError.constructor

new InvalidSenderError(message?, options?): InvalidSenderError

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1082

string

ErrorOptions

InvalidSenderError

TransferError.constructor

optional cause: unknown

Defined in: node_modules/typescript/lib/lib.es2022.error.d.ts:26

TransferError.cause

message: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1077

TransferError.message

name: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1076

TransferError.name

optional stack: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1078

TransferError.stack

static stackTraceLimit: number

Defined in: node_modules/@types/node/globals.d.ts:67

The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)).

The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed.

If set to a non-number value, or set to a negative number, stack traces will not capture any frames.

TransferError.stackTraceLimit

static captureStackTrace(targetObject, constructorOpt?): void

Defined in: node_modules/@types/node/globals.d.ts:51

Creates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.

const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack; // Similar to `new Error().stack`

The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.

The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.

The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:

function a() {
b();
}
function b() {
c();
}
function c() {
// Create an error without stack trace to avoid calculating the stack trace twice.
const { stackTraceLimit } = Error;
Error.stackTraceLimit = 0;
const error = new Error();
Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
throw error;
}
a();

object

Function

void

TransferError.captureStackTrace

static isError(error): error is Error

Defined in: node_modules/typescript/lib/lib.esnext.error.d.ts:23

Indicates whether the argument provided is a built-in Error instance or not.

unknown

error is Error

TransferError.isError

static prepareStackTrace(err, stackTraces): any

Defined in: node_modules/@types/node/globals.d.ts:55

Error

CallSite[]

any

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

TransferError.prepareStackTrace


Defined in: packages/canisters/src/ledger/icp/account_identifier.ts:140

A subaccount in the ICP ledger is a 32-byte identifier that allows a principal (user or canister) to control multiple independent accounts under the same principal.

https://internetcomputer.org/docs/references/ledger#_accounts

toUint8Array(): Uint8Array

Defined in: packages/canisters/src/ledger/icp/account_identifier.ts:218

Returns the raw 32-byte Uint8Array representing this subaccount.

Uint8Array

A 32-byte array.

static fromBytes(bytes): SubAccount

Defined in: packages/canisters/src/ledger/icp/account_identifier.ts:150

Creates a SubAccount from a 32‑byte array.

Uint8Array

A Uint8Array of exactly 32 bytes.

SubAccount

A SubAccount instance.

If the byte array length is not 32.

static fromID(id): SubAccount

Defined in: packages/canisters/src/ledger/icp/account_identifier.ts:189

Generates a SubAccount from a non‑negative number.

The number is encoded into the last 8 bytes of the 32‑byte array. This is a common pattern when using numbered subaccounts like 0, 1, 2…

number

A non-negative integer.

SubAccount

A SubAccount instance.

If the number is negative or exceeds Number.MAX_SAFE_INTEGER.

static fromPrincipal(principal): SubAccount

Defined in: packages/canisters/src/ledger/icp/account_identifier.ts:166

Generates a SubAccount from a principal.

The principal is embedded into the beginning of a 32‑byte array.

Principal

A principal to encode into the subaccount.

SubAccount

A SubAccount instance.


Defined in: packages/canisters/src/ledger/icp/errors/ledger.errors.ts:49

new TemporarilyUnavailableError(message?): TemporarilyUnavailableError

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1082

string

TemporarilyUnavailableError

ApproveError.constructor

new TemporarilyUnavailableError(message?, options?): TemporarilyUnavailableError

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1082

string

ErrorOptions

TemporarilyUnavailableError

ApproveError.constructor

optional cause: unknown

Defined in: node_modules/typescript/lib/lib.es2022.error.d.ts:26

ApproveError.cause

message: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1077

ApproveError.message

name: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1076

ApproveError.name

optional stack: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1078

ApproveError.stack

static stackTraceLimit: number

Defined in: node_modules/@types/node/globals.d.ts:67

The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)).

The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed.

If set to a non-number value, or set to a negative number, stack traces will not capture any frames.

ApproveError.stackTraceLimit

static captureStackTrace(targetObject, constructorOpt?): void

Defined in: node_modules/@types/node/globals.d.ts:51

Creates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.

const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack; // Similar to `new Error().stack`

The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.

The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.

The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:

function a() {
b();
}
function b() {
c();
}
function c() {
// Create an error without stack trace to avoid calculating the stack trace twice.
const { stackTraceLimit } = Error;
Error.stackTraceLimit = 0;
const error = new Error();
Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
throw error;
}
a();

object

Function

void

ApproveError.captureStackTrace

static isError(error): error is Error

Defined in: node_modules/typescript/lib/lib.esnext.error.d.ts:23

Indicates whether the argument provided is a built-in Error instance or not.

unknown

error is Error

ApproveError.isError

static prepareStackTrace(err, stackTraces): any

Defined in: node_modules/@types/node/globals.d.ts:55

Error

CallSite[]

any

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

ApproveError.prepareStackTrace


Defined in: packages/canisters/src/ledger/icp/errors/ledger.errors.ts:64

new TooOldError(message?): TooOldError

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1082

string

TooOldError

ApproveError.constructor

new TooOldError(message?, options?): TooOldError

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1082

string

ErrorOptions

TooOldError

ApproveError.constructor

optional cause: unknown

Defined in: node_modules/typescript/lib/lib.es2022.error.d.ts:26

ApproveError.cause

message: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1077

ApproveError.message

name: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1076

ApproveError.name

optional stack: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1078

ApproveError.stack

static stackTraceLimit: number

Defined in: node_modules/@types/node/globals.d.ts:67

The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)).

The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed.

If set to a non-number value, or set to a negative number, stack traces will not capture any frames.

ApproveError.stackTraceLimit

static captureStackTrace(targetObject, constructorOpt?): void

Defined in: node_modules/@types/node/globals.d.ts:51

Creates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.

const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack; // Similar to `new Error().stack`

The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.

The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.

The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:

function a() {
b();
}
function b() {
c();
}
function c() {
// Create an error without stack trace to avoid calculating the stack trace twice.
const { stackTraceLimit } = Error;
Error.stackTraceLimit = 0;
const error = new Error();
Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
throw error;
}
a();

object

Function

void

ApproveError.captureStackTrace

static isError(error): error is Error

Defined in: node_modules/typescript/lib/lib.esnext.error.d.ts:23

Indicates whether the argument provided is a built-in Error instance or not.

unknown

error is Error

ApproveError.isError

static prepareStackTrace(err, stackTraces): any

Defined in: node_modules/@types/node/globals.d.ts:55

Error

CallSite[]

any

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

ApproveError.prepareStackTrace


Defined in: packages/canisters/src/ledger/icp/errors/ledger.errors.ts:6

new TransferError(message?): TransferError

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1082

string

TransferError

IcrcError.constructor

new TransferError(message?, options?): TransferError

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1082

string

ErrorOptions

TransferError

IcrcError.constructor

optional cause: unknown

Defined in: node_modules/typescript/lib/lib.es2022.error.d.ts:26

IcrcError.cause

message: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1077

IcrcError.message

name: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1076

IcrcError.name

optional stack: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1078

IcrcError.stack

static stackTraceLimit: number

Defined in: node_modules/@types/node/globals.d.ts:67

The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)).

The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed.

If set to a non-number value, or set to a negative number, stack traces will not capture any frames.

IcrcError.stackTraceLimit

static captureStackTrace(targetObject, constructorOpt?): void

Defined in: node_modules/@types/node/globals.d.ts:51

Creates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.

const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack; // Similar to `new Error().stack`

The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.

The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.

The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:

function a() {
b();
}
function b() {
c();
}
function c() {
// Create an error without stack trace to avoid calculating the stack trace twice.
const { stackTraceLimit } = Error;
Error.stackTraceLimit = 0;
const error = new Error();
Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
throw error;
}
a();

object

Function

void

IcrcError.captureStackTrace

static isError(error): error is Error

Defined in: node_modules/typescript/lib/lib.esnext.error.d.ts:23

Indicates whether the argument provided is a built-in Error instance or not.

unknown

error is Error

IcrcError.isError

static prepareStackTrace(err, stackTraces): any

Defined in: node_modules/@types/node/globals.d.ts:55

Error

CallSite[]

any

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

IcrcError.prepareStackTrace


Defined in: packages/canisters/src/ledger/icp/errors/ledger.errors.ts:26

new TxCreatedInFutureError(message?): TxCreatedInFutureError

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1082

string

TxCreatedInFutureError

TransferError.constructor

new TxCreatedInFutureError(message?, options?): TxCreatedInFutureError

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1082

string

ErrorOptions

TxCreatedInFutureError

TransferError.constructor

optional cause: unknown

Defined in: node_modules/typescript/lib/lib.es2022.error.d.ts:26

TransferError.cause

message: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1077

TransferError.message

name: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1076

TransferError.name

optional stack: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1078

TransferError.stack

static stackTraceLimit: number

Defined in: node_modules/@types/node/globals.d.ts:67

The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)).

The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed.

If set to a non-number value, or set to a negative number, stack traces will not capture any frames.

TransferError.stackTraceLimit

static captureStackTrace(targetObject, constructorOpt?): void

Defined in: node_modules/@types/node/globals.d.ts:51

Creates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.

const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack; // Similar to `new Error().stack`

The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.

The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.

The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:

function a() {
b();
}
function b() {
c();
}
function c() {
// Create an error without stack trace to avoid calculating the stack trace twice.
const { stackTraceLimit } = Error;
Error.stackTraceLimit = 0;
const error = new Error();
Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
throw error;
}
a();

object

Function

void

TransferError.captureStackTrace

static isError(error): error is Error

Defined in: node_modules/typescript/lib/lib.esnext.error.d.ts:23

Indicates whether the argument provided is a built-in Error instance or not.

unknown

error is Error

TransferError.isError

static prepareStackTrace(err, stackTraces): any

Defined in: node_modules/@types/node/globals.d.ts:55

Error

CallSite[]

any

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

TransferError.prepareStackTrace


Defined in: packages/canisters/src/ledger/icp/errors/ledger.errors.ts:28

new TxDuplicateError(duplicateOf): TxDuplicateError

Defined in: packages/canisters/src/ledger/icp/errors/ledger.errors.ts:29

bigint

TxDuplicateError

TransferError.constructor

optional cause: unknown

Defined in: node_modules/typescript/lib/lib.es2022.error.d.ts:26

TransferError.cause

readonly duplicateOf: bigint

Defined in: packages/canisters/src/ledger/icp/errors/ledger.errors.ts:29

message: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1077

TransferError.message

name: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1076

TransferError.name

optional stack: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1078

TransferError.stack

static stackTraceLimit: number

Defined in: node_modules/@types/node/globals.d.ts:67

The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)).

The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed.

If set to a non-number value, or set to a negative number, stack traces will not capture any frames.

TransferError.stackTraceLimit

static captureStackTrace(targetObject, constructorOpt?): void

Defined in: node_modules/@types/node/globals.d.ts:51

Creates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.

const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack; // Similar to `new Error().stack`

The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.

The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.

The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:

function a() {
b();
}
function b() {
c();
}
function c() {
// Create an error without stack trace to avoid calculating the stack trace twice.
const { stackTraceLimit } = Error;
Error.stackTraceLimit = 0;
const error = new Error();
Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
throw error;
}
a();

object

Function

void

TransferError.captureStackTrace

static isError(error): error is Error

Defined in: node_modules/typescript/lib/lib.esnext.error.d.ts:23

Indicates whether the argument provided is a built-in Error instance or not.

unknown

error is Error

TransferError.isError

static prepareStackTrace(err, stackTraces): any

Defined in: node_modules/@types/node/globals.d.ts:55

Error

CallSite[]

any

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

TransferError.prepareStackTrace


Defined in: packages/canisters/src/ledger/icp/errors/ledger.errors.ts:20

new TxTooOldError(allowed_window_secs?): TxTooOldError

Defined in: packages/canisters/src/ledger/icp/errors/ledger.errors.ts:21

number

TxTooOldError

TransferError.constructor

readonly optional allowed_window_secs: number

Defined in: packages/canisters/src/ledger/icp/errors/ledger.errors.ts:21

optional cause: unknown

Defined in: node_modules/typescript/lib/lib.es2022.error.d.ts:26

TransferError.cause

message: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1077

TransferError.message

name: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1076

TransferError.name

optional stack: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1078

TransferError.stack

static stackTraceLimit: number

Defined in: node_modules/@types/node/globals.d.ts:67

The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)).

The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed.

If set to a non-number value, or set to a negative number, stack traces will not capture any frames.

TransferError.stackTraceLimit

static captureStackTrace(targetObject, constructorOpt?): void

Defined in: node_modules/@types/node/globals.d.ts:51

Creates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.

const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack; // Similar to `new Error().stack`

The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.

The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.

The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:

function a() {
b();
}
function b() {
c();
}
function c() {
// Create an error without stack trace to avoid calculating the stack trace twice.
const { stackTraceLimit } = Error;
Error.stackTraceLimit = 0;
const error = new Error();
Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
throw error;
}
a();

object

Function

void

TransferError.captureStackTrace

static isError(error): error is Error

Defined in: node_modules/typescript/lib/lib.esnext.error.d.ts:23

Indicates whether the argument provided is a built-in Error instance or not.

unknown

error is Error

TransferError.isError

static prepareStackTrace(err, stackTraces): any

Defined in: node_modules/@types/node/globals.d.ts:55

Error

CallSite[]

any

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

TransferError.prepareStackTrace


Defined in: packages/canisters/src/ledger/icp/errors/ledger.errors.ts:73

new UnsupportedCanisterCallError(message?): UnsupportedCanisterCallError

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1082

string

UnsupportedCanisterCallError

ConsentMessageError.constructor

new UnsupportedCanisterCallError(message?, options?): UnsupportedCanisterCallError

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1082

string

ErrorOptions

UnsupportedCanisterCallError

ConsentMessageError.constructor

optional cause: unknown

Defined in: node_modules/typescript/lib/lib.es2022.error.d.ts:26

ConsentMessageError.cause

message: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1077

ConsentMessageError.message

name: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1076

ConsentMessageError.name

optional stack: string

Defined in: node_modules/typescript/lib/lib.es5.d.ts:1078

ConsentMessageError.stack

static stackTraceLimit: number

Defined in: node_modules/@types/node/globals.d.ts:67

The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)).

The default value is 10 but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed.

If set to a non-number value, or set to a negative number, stack traces will not capture any frames.

ConsentMessageError.stackTraceLimit

static captureStackTrace(targetObject, constructorOpt?): void

Defined in: node_modules/@types/node/globals.d.ts:51

Creates a .stack property on targetObject, which when accessed returns a string representing the location in the code at which Error.captureStackTrace() was called.

const myObject = {};
Error.captureStackTrace(myObject);
myObject.stack; // Similar to `new Error().stack`

The first line of the trace will be prefixed with ${myObject.name}: ${myObject.message}.

The optional constructorOpt argument accepts a function. If given, all frames above constructorOpt, including constructorOpt, will be omitted from the generated stack trace.

The constructorOpt argument is useful for hiding implementation details of error generation from the user. For instance:

function a() {
b();
}
function b() {
c();
}
function c() {
// Create an error without stack trace to avoid calculating the stack trace twice.
const { stackTraceLimit } = Error;
Error.stackTraceLimit = 0;
const error = new Error();
Error.stackTraceLimit = stackTraceLimit;
// Capture the stack trace above function b
Error.captureStackTrace(error, b); // Neither function c, nor b is included in the stack trace
throw error;
}
a();

object

Function

void

ConsentMessageError.captureStackTrace

static isError(error): error is Error

Defined in: node_modules/typescript/lib/lib.esnext.error.d.ts:23

Indicates whether the argument provided is a built-in Error instance or not.

unknown

error is Error

ConsentMessageError.isError

static prepareStackTrace(err, stackTraces): any

Defined in: node_modules/@types/node/globals.d.ts:55

Error

CallSite[]

any

https://v8.dev/docs/stack-trace-api#customizing-stack-traces

ConsentMessageError.prepareStackTrace

Defined in: packages/canisters/src/ledger/icp/types/ledger_converters.ts:23

amount: bigint

Defined in: packages/canisters/src/ledger/icp/types/ledger_converters.ts:25

optional createdAt: bigint

Defined in: packages/canisters/src/ledger/icp/types/ledger_converters.ts:32

optional fee: bigint

Defined in: packages/canisters/src/ledger/icp/types/ledger_converters.ts:27

optional fromSubAccount: SubAccount

Defined in: packages/canisters/src/ledger/icp/types/ledger_converters.ts:28

optional icrc1Memo: Uint8Array<ArrayBufferLike>

Defined in: packages/canisters/src/ledger/icp/types/ledger_converters.ts:26

to: Account

Defined in: packages/canisters/src/ledger/icp/types/ledger_converters.ts:24


Defined in: packages/canisters/src/ledger/icp/types/ledger_converters.ts:5

amount: bigint

Defined in: packages/canisters/src/ledger/icp/types/ledger_converters.ts:7

optional createdAt: bigint

Defined in: packages/canisters/src/ledger/icp/types/ledger_converters.ts:15

optional fee: bigint

Defined in: packages/canisters/src/ledger/icp/types/ledger_converters.ts:9

optional fromSubAccount: number[]

Defined in: packages/canisters/src/ledger/icp/types/ledger_converters.ts:11

optional memo: bigint

Defined in: packages/canisters/src/ledger/icp/types/ledger_converters.ts:8

to: AccountIdentifier

Defined in: packages/canisters/src/ledger/icp/types/ledger_converters.ts:6

AccountIdentifierHex = string

Defined in: packages/canisters/src/ledger/icp/types/common.ts:1


BlockHeight = bigint

Defined in: packages/canisters/src/ledger/icp/types/common.ts:2


E8s = bigint

Defined in: packages/canisters/src/ledger/icp/types/common.ts:3


IcpLedgerCanisterOptions = CanisterOptions<_SERVICE>

Defined in: packages/canisters/src/ledger/icp/types/ledger.options.ts:4


Icrc2ApproveRequest = Omit<Icrc1TransferRequest, "to"> & object

Defined in: packages/canisters/src/ledger/icp/types/ledger_converters.ts:47

Params for an icrc2_approve.

optional expected_allowance: Icrc1Tokens

optional expires_at: Icrc1Timestamp

spender: Account

The account of the spender.

The amount of tokens to approve.

The subaccount to transfer tokens from.

Approve memo.

nanoseconds since unix epoc to trigger deduplication and avoid other issues

The fee of the transfer when it’s not the default fee.

The optional allowance expected. If the expected_allowance field is set, the ledger MUST ensure that the current allowance for the spender from the caller’s account is equal to the given value and return the AllowanceChanged error otherwise.

When the approval expires. If the field is set, it’s greater than the current ledger time.

checkAccountId(accountId): void

Defined in: packages/canisters/src/ledger/icp/utils/accounts.utils.ts:15

Checks account id check sum

string

void

InvalidAccountIDError


isIcpAccountIdentifier(address): boolean

Defined in: packages/canisters/src/ledger/icp/utils/accounts.utils.ts:41

Checks if a given string (or undefined) is a valid ICP account identifier.

It uses the checkAccountId function to validate the checksum, but it does not throw an error.

The putative ICP account identifier.

string | undefined

boolean


mapIcrc1TransferError(rawTransferError): TransferError

Defined in: packages/canisters/src/ledger/icp/errors/ledger.errors.ts:104

Icrc1TransferError

TransferError


mapIcrc21ConsentMessageError(rawError): ConsentMessageError

Defined in: packages/canisters/src/ledger/icp/errors/ledger.errors.ts:187

icrc21_error

ConsentMessageError


mapIcrc2ApproveError(rawApproveError): ApproveError

Defined in: packages/canisters/src/ledger/icp/errors/ledger.errors.ts:130

ApproveError

ApproveError


mapTransferError(rawTransferError): TransferError

Defined in: packages/canisters/src/ledger/icp/errors/ledger.errors.ts:76

TransferError

TransferError


toIcrc1TransferRawRequest(__namedParameters): TransferArg

Defined in: packages/canisters/src/ledger/icp/canisters/ledger/ledger.request.converts.ts:43

Icrc1TransferRequest

TransferArg


toIcrc21ConsentMessageRawRequest(__namedParameters): icrc21_consent_message_request

Defined in: packages/canisters/src/ledger/icp/canisters/ledger/ledger.request.converts.ts:79

Icrc21ConsentMessageRequest

icrc21_consent_message_request


toIcrc2ApproveRawRequest(__namedParameters): ApproveArgs

Defined in: packages/canisters/src/ledger/icp/canisters/ledger/ledger.request.converts.ts:59

Icrc2ApproveRequest

ApproveArgs


toTransferRawRequest(__namedParameters): TransferArgs

Defined in: packages/canisters/src/ledger/icp/canisters/ledger/ledger.request.converts.ts:17

TransferRequest

TransferArgs