Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.cloud.coinbase.com/llms.txt

Use this file to discover all available pages before exploring further.

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?.evmAccountObjects[0]?.address;

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