Skip to main content
function signEvmMessage(options: SignEvmMessageOptions): Promise<SignEvmHashResult>;
Signs an EVM message.

Parameters

ParameterTypeDescription
optionsSignEvmMessageOptionsThe options for the signing.

Returns

Promise<SignEvmHashResult> The result of the signing.

Example

const user = await getCurrentUser();
const evmAccount = user?.evmAccounts[0];

const result = await signEvmMessage({
  evmAccount,
  message: "Hello World" // Message to sign
});