formatSign

Formats a signature request for signing messages or transactions.

Import

1import { formatSign } from "@account-kit/wallet-client";

Usage

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

Parameters

client

InnerWalletApiClient

  • The wallet API client to use for the request

params

FormatSignParams

  • Parameters for formatting the signature

Returns

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