• Core
  • Actions
  • signMessage

signMessage

Action for signing messages with connected account.

This is a wrapper around viem's signMessage.

import { signMessage } from '@wagmi/core'

Usage

The following examples use the message: gm wagmi frens.

import { signMessage } from '@wagmi/core'
 
const signature = await signMessage({
  message: 'gm wagmi frens',
})

Return Value

string

Configuration

message

Message to sign with wallet.

import { signMessage } from '@wagmi/core'
 
const signature = await signMessage({
  message: 'gm wagmi frens',
})