> ## Documentation Index
> Fetch the complete documentation index at: https://docs.rhinestone.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# signMessage

> Sign a message (EIP-191).

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`](/wallets/custom-signer/sdk-reference/rhinestone-sdk/create-account). Requires a managed EVM account; unavailable on receiver-only and standalone Solana accounts.

## Usage

```ts theme={null}
const signature = await account.signMessage('Hello', base, undefined)
```

## Parameters

<ParamField path="message" type="SignableMessage" required>
  Message to sign
</ParamField>

<ParamField path="chain" type="Chain" required>
  Chain to sign the message for
</ParamField>

<ParamField path="signers" type="SignerSet | undefined" required>
  Signers to use, or `undefined` for the account default
</ParamField>

## Returns

<ResponseField name="signature" type="`0x${string}`">
  The signature
</ResponseField>

## See also

* [signTypedData](/wallets/custom-signer/sdk-reference/account/signing/sign-typed-data) to sign EIP-712 typed data


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.