Skip to content
docs

tonProofAuthentication

tonProofAuthentication(account, proposal, options?): Promise<TonCacao[] | undefined>

Defined in: walletconnect-ton/src/session.ts:123

Answer a proposal’s ton_proof (call it once the user approved the session, then pass the result as proposalRequestsResponses: { authentication } to approveSession). Returns undefined when the proposal asks for no proof. The proof binds to peerDomain, or to the host of the proposer’s metadata URL, never to the domain written in the request; the timestamp is the wallet’s clock.

TonWcAccount | TonWcSigningAccount

WcProposalLike

() => number

string

TonWithSigner

Promise<TonCacao[] | undefined>