Wallet Actions
signMessage
Function to sign messages using the connected Abstract Global Wallet.
The AbstractClient
includes a signMessage
method that can be used to sign a message using the connected Abstract Global Wallet.
The method follows the EIP-1271 standard for contract signature verification.
View Example Repository
View an example implementation of signing and verifying messages with AGW in a Next.js app.
Usage
Parameters
The message to sign. Can be a string or a hex value.
The account to sign the message with. Use the account
from the
AbstractClient to
use the Abstract Global Wallet.
Returns
Returns a Promise<Hex>
containing the signature of the message.
Verification
To verify a signature created by an Abstract Global Wallet, use the verifyMessage
function from a public client:
Was this page helpful?