HandleTonRequestOptions
Defined in: walletconnect-ton/src/types.ts:151
Properties
Section titled “Properties”maxMessages?
Section titled “maxMessages?”
optionalmaxMessages?:number
Defined in: walletconnect-ton/src/types.ts:168
Most messages per request (default and maximum 4: @tonconnect/sdk assumes 4 for WalletConnect wallets).
optionalnow?: () =>number
Defined in: walletconnect-ton/src/types.ts:166
Unix seconds now (tests).
Returns
Section titled “Returns”number
peerDomain?
Section titled “peerDomain?”
optionalpeerDomain?: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
Section titled “review”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.
Parameters
Section titled “Parameters”request
Section titled “request”Returns
Section titled “Returns”boolean | Promise<boolean>
session?
Section titled “session?”
optionalsession?: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.
signal?
Section titled “signal?”
optionalsignal?:AbortSignal
Defined in: walletconnect-ton/src/types.ts:162
Aborts before review or before signing (an expired WalletConnect request, a closed sheet).
withSigner?
Section titled “withSigner?”
optionalwithSigner?:TonWithSigner
Defined in: walletconnect-ton/src/types.ts:164
Opens the signing account after the review (see TonWithSigner); without it account must sign.