Narval | Docs
GithubHome
  • Narval Connect
    • Overview
    • Getting Started
  • Security Overview
  • Providers
    • Providers
      • Anchorage
      • BitGo
      • Fireblocks
  • Guide
    • ConnectClient
    • Connect Widget
      • initiateConnect
      • completeConnect
    • Using a Connection
      • listWallets
      • getWalletById
      • listAccounts
      • getAccountById
      • listAddresses
      • getAddressById
      • listKnownDestinations
      • sendTransfer
      • getTransfer
      • EVM Transactions
        • sendTransaction
        • getTransactionById
        • signMessage
        • getSignMessageById
        • signTypedData
        • getTypedDataById
      • Staking
        • Ethereum (ETH)
        • Polygon (POL)
        • Solana (SOL)
        • Sui (SUI)
      • Raw Signing
        • signRaw
        • getRawSignRequest
    • Manage Connections
      • listConnections
      • getConnection
      • revokeConnection
  • API Reference
    • REST API
      • Authorization
      • Connect Widget
      • Networks & Assets
      • Wallets, Accounts, Addresses
      • Known Destinations
      • Transfer
      • Stake
        • Ethereum
        • Polygon
        • Solana
        • Sui
      • Transactions
        • Ethereum (EVM)
      • Raw Signing
      • Transit Encryption Key
      • Manage Connections
Powered by GitBook
On this page
  1. Guide
  2. Using a Connection
  3. EVM Transactions

signMessage

evm.signMessage(params) ⇒

Signs an EVM message using a provider connection.

Kind: static method of evm Returns: Promise with the signed message response Throws:

  • ArmorySdkException If there's an error signing the message

Param
Description

params

Parameters for signing the message

params.connectionId

Unique identifier of the provider connection

params.accessToken

Optional access token for authentication

params.data

Message signing request data

params.data.data

The message to sign, can be a string or an object with 'raw' property

params.data.source

Source of the signing request

params.data.source.type

Type of source ('account' or 'address')

params.data.source.id

Identifier of the source account or address

params.data.idempotenceId

Unique identifier to ensure idempotence

params.data.requestId

Optional request identifier for tracking

Example

const signedMessage = await connectClient.evm.signMessage({
  connectionId: "conn-123",
  data: {
    data: "Hello, Ethereum!",
    source: {
      type: "account",
      id: "acc-456"
    },
    idempotenceId: "idem-789"
  }
});
PreviousgetTransactionByIdNextgetSignMessageById

Last updated 28 days ago