prepareSign

Prepares a signature request for signing messages or transactions.

Import

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

Usage

1// Prepare a message to be signed
2const result = await client.prepareSign({
3 from: "0x1234...",
4 type: "personal_sign",
5 data: "Hello, world!",
6});

Parameters

client

InnerWalletApiClient

  • The wallet API client to use for the request

params

PrepareSignParams

  • Parameters for preparing the signature request

Returns

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