Skip to main content

UserWallet.sign() method

Sign any message with the connected wallet private key

Example

// This is the message to be signed
const message = "Sign this message...";

// Now we can sign the message with the connected wallet
const signature = await sdk.wallet.sign(message);

Signature:

sign(message: string): Promise<string>;

Parameters

ParameterTypeDescription
messagestringthe message to sign

Returns:

Promise<string>

the signed message