Skip to content

SignerOptions

Defined in: src/signer.ts:231

Options for creating a Signer instance.

T extends Transport

optional autoCloseTransportChannel?: boolean

Defined in: src/signer.ts:238

Automatically close the transport channel after a response is received.

true

optional closeTransportChannelAfter?: number

Defined in: src/signer.ts:243

Delay in milliseconds before auto-closing the transport channel.

200

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

Defined in: src/signer.ts:248

Source of random UUIDs for JSON-RPC request IDs.

globalThis.crypto

optional derivationOrigin?: string

Defined in: src/signer.ts:260

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:254

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:233

The transport used to communicate with the signer.