Interface to implement communication between this library, and a Browser Wallet. In order to request the signature from the User.
Sign data using the secret key stored on Browser Wallet It creates a popup window, presenting the human readable form of request
request
the address used to sign the request
the request to sign by the User in the form of EIP712 typed data.
Throws an error if User rejected signature
async signTypedData<T>(from: string, request: TypedData<T>): Promise<unknown> { return await browserWallet.request({ method: 'eth_signTypedData_v4', params: [from, JSON.stringify(request)], });} Copy
async signTypedData<T>(from: string, request: TypedData<T>): Promise<unknown> { return await browserWallet.request({ method: 'eth_signTypedData_v4', params: [from, JSON.stringify(request)], });}
Interface to implement communication between this library, and a Browser Wallet. In order to request the signature from the User.