Skip to content
Alchemy Logo

signSignatureRequest

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: { ... }
  }
});

ParameterTypeDescription

signer

SmartWalletSigner

The signer to use for signing the request

params

SignSignatureRequestParams

The signature request parameters

Promise< | { } | { }>

A Promise that resolves to the signature result

Was this page helpful?