function signSignatureRequest(signer, params): Promise<{} | {}>;Defined in: account-kit/wallet-client/src/client/actions/signSignatureRequest.ts:55
Signs a signature request using the provided signer. This method handles different types of signature requests including personal_sign, eth_signTypedData_v4, and authorization.
// Sign a personal message
const result = await client.signSignatureRequest({
type: 'personal_sign',
data: 'Hello, world!'
});
// Sign typed data (EIP-712)
const result = await client.signSignatureRequest({
type: 'eth_signTypedData_v4',
data: {
domain: { ... },
types: { ... },
primaryType: '...',
message: { ... }
}
});| Parameter | Type | Description |
|---|---|---|
|
| The signer to use for signing the request |
| The signature request parameters |
Promise<
| {
}
| {
}>
A Promise that resolves to the signature result