Skip to content
Alchemy Logo

formatSign

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

Defined in: account-kit/wallet-client/src/client/actions/formatSign.ts:42

Formats a signature request for signing messages or transactions.

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

Type ParameterDefault type

TAccount extends undefined | `0x${string}`

undefined | `0x${string}`

ParameterTypeDescription

client

InnerWalletApiClient

The wallet API client to use for the request

params

FormatSignParams<TAccount>

Parameters for formatting the signature

Promise<{ }>

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

Was this page helpful?