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.
Parameters
Section titled “Parameters”account
Section titled “account”TonWcAccount | TonWcSigningAccount
proposal
Section titled “proposal”options?
Section titled “options?”() => number
peerDomain?
Section titled “peerDomain?”string
withSigner?
Section titled “withSigner?”Returns
Section titled “Returns”Promise<TonCacao[] | undefined>