signSignatureRequest
Signs a signature request using the provided signer. This method handles different types of signature requests including personal_sign, eth_signTypedData_v4, and authorization.
Import
Usage
Parameters
signer
SmartAccountSigner
- The signer to use for signing the request
params
SignSignatureRequestParams
- The signature request parameters
params.type
string
- The type of signature request (‘personal_sign’, ‘eth_signTypedData_v4’, or ‘signature_with_authorization’)
params.data
SignSignatureRequestParams["data"]
- The data to sign, format depends on the signature type
Returns
Promise<SignSignatureRequestResult>
A Promise that resolves to the signature result