function prepareSign(client, params): Promise<{}>;Defined in: packages/wallet-apis/src/actions/prepareSign.ts:44
Prepares a signature request for signing messages or transactions.
// Prepare a message to be signed
const result = await client.prepareSign({
account: "0x1234...",
type: "personal_sign",
data: "Hello, world!",
});| Parameter | Type | Description |
|---|---|---|
|
| The wallet API client to use for the request |
| Parameters for preparing the signature request |
Promise<{
}>
A Promise that resolves to the prepare sign result containing a signature request