Skip to content
Alchemy Logo

prepareSign

function prepareSign(client, params): Promise<{}>;

Defined in: packages/wallet-apis/src/actions/prepareSign.ts:44

Prepares a signature request for signing messages or transactions.

// Prepare a message to be signed
const result = await client.prepareSign({
  account: "0x1234...",
  type: "personal_sign",
  data: "Hello, world!",
});

ParameterTypeDescription

client

InnerWalletApiClient

The wallet API client to use for the request

params

PrepareSignParams

Parameters for preparing the signature request

Promise<{ }>

A Promise that resolves to the prepare sign result containing a signature request

Was this page helpful?