Skip to content

SignerOptions

Defined in: src/signer.ts:128

Options for creating a Signer instance.

T extends Transport

optional autoCloseTransportChannel?: boolean

Defined in: src/signer.ts:135

Automatically close the transport channel after a response is received.

true

optional closeTransportChannelAfter?: number

Defined in: src/signer.ts:140

Delay in milliseconds before auto-closing the transport channel.

200

optional crypto?: Pick<Crypto, "randomUUID">

Defined in: src/signer.ts:145

Source of random UUIDs for JSON-RPC request IDs.

globalThis.crypto

optional derivationOrigin?: string

Defined in: src/signer.ts:157

Derivation origin for ICRC-95 identity derivation. When set, all requests include an icrc95DerivationOrigin param.

https://github.com/dfinity/wg-identity-authentication/blob/main/topics/icrc_95_derivationorigin.md


optional transforms?: SignerRequestTransformFn[]

Defined in: src/signer.ts:151

Additional transform functions applied to each outgoing JSON-RPC request, can be used to e.g. add additional params to every request as seen in ICRC-95. Transforms are applied in order; each receives the output of the previous one.


transport: T

Defined in: src/signer.ts:130

The transport used to communicate with the signer.