signMessage
Signs a message using the smart account. This method requests the account associated with the signer and uses it to sign the message.
Import
Usage
Parameters
client
InnerWalletApiClient
- The wallet API client to use for the request
signer
SmartAccountSigner
- The signer of the smart account
params
SignMessageParams
- Parameters for signing the message
params.message
SignableMessage
- The message to sign using EIP-191. Can be a string, or object with raw bytes.
params.account
Address
- Optional account address to use for signing. If not provided, uses the client’s current account.
Returns
Promise<SignMessageResult>
A Promise that resolves to the signed message as a hex string