formatSign

1function formatSign<TAccount>(
2 client,
3 params,
4): Promise<{
5 signature: `0x${string}`;
6}>;

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

Formats a signature request for signing messages or transactions.

Example

1// Formats a signature
2const result = await client.formatSign({
3 from: "0x1234...",
4 signature: {
5 type: "ecdsa",
6 data: "0xabcd...",
7 },
8});

Type Parameters

Type ParameterDefault type

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

undefined | `0x${string}`

Parameters

ParameterTypeDescription

client

InnerWalletApiClient

The wallet API client to use for the request

params

FormatSignParams<TAccount>

Parameters for formatting the signature

Returns

Promise<{ signature: `0x${string}`; }>

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