Skip to content
Alchemy Logo

formatSign

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

Defined in: packages/wallet-apis/src/actions/formatSign.ts:46

Formats a signature request for signing messages or transactions.

// Formats a signature
const result = await client.formatSign({
  account: "0x1234...",
  signature: {
    type: "ecdsa",
    data: "0xabcd...",
  },
});

ParameterTypeDescription

client

InnerWalletApiClient

The wallet API client to use for the request

params

Object

Parameters for formatting the signature

Promise<{ }>

A Promise that resolves to the formatSign result containing the formatted signature.

Was this page helpful?