Skip to content
docs

HandleTonRequestOptions

Defined in: walletconnect-ton/src/types.ts:151

optional maxMessages?: number

Defined in: walletconnect-ton/src/types.ts:168

Most messages per request (default and maximum 4: @tonconnect/sdk assumes 4 for WalletConnect wallets).


optional now?: () => number

Defined in: walletconnect-ton/src/types.ts:166

Unix seconds now (tests).

number


optional peerDomain?: string

Defined in: walletconnect-ton/src/types.ts:158

The dApp’s host, overriding the session’s peer metadata — pass WalletKit’s verified origin (verifyContext.verified.origin, host part) when its validation is VALID.


review: (request) => boolean | Promise<boolean>

Defined in: walletconnect-ton/src/types.ts:160

Show the request to the user; true signs, false declines (300). Nothing is signed before it resolves true.

TonRequestReview

boolean | Promise<boolean>


optional session?: WcSessionLike

Defined in: walletconnect-ton/src/types.ts:153

The session the request came on: its peer metadata gives the domain, its ton accounts and chains must hold this account.


optional signal?: AbortSignal

Defined in: walletconnect-ton/src/types.ts:162

Aborts before review or before signing (an expired WalletConnect request, a closed sheet).


optional withSigner?: TonWithSigner

Defined in: walletconnect-ton/src/types.ts:164

Opens the signing account after the review (see TonWithSigner); without it account must sign.