Skip to main content
The example uses the viem base chain and configured account signers; the required third argument must be explicit undefined for defaults. Method on an account instance returned by createAccount. Requires a managed EVM account; unavailable on receiver-only and standalone Solana accounts.

Usage

Parameters

SignableMessage
required
Message to sign
Chain
required
Chain to sign the message for
SignerSet | undefined
required
Signers to use, or undefined for the account default

Returns

`0x${string}`
The signature

See also