Skip to main content
POST
/
sdk
/
{environmentId}
/
waas
/
{walletId}
/
signMessage
Sign a message with a waas account
curl --request POST \
  --url https://app.dynamicauth.com/api/v0/sdk/{environmentId}/waas/{walletId}/signMessage \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "message": "<string>",
  "isFormatted": true,
  "roomId": "<string>",
  "context": {
    "evmTransaction": {
      "to": "<string>",
      "chainId": 123,
      "data": "<string>",
      "gas": "<string>",
      "gasPrice": "<string>",
      "maxFeePerGas": "<string>",
      "maxPriorityFeePerGas": "<string>",
      "nonce": 123,
      "value": "<string>"
    },
    "evmUserOperation": {
      "chainId": 123,
      "entryPoint": "<string>",
      "operation": {
        "authorization": {
          "address": "<string>",
          "chainId": 123,
          "nonce": 123,
          "r": "<string>",
          "s": "<string>",
          "v": "<string>",
          "yParity": 123
        },
        "callData": "<string>",
        "callGasLimit": "<string>",
        "factory": "<string>",
        "factoryData": "<string>",
        "maxFeePerGas": "<string>",
        "maxPriorityFeePerGas": "<string>",
        "nonce": "<string>",
        "paymaster": "<string>",
        "paymasterData": "<string>",
        "paymasterPostOpGasLimit": "<string>",
        "paymasterVerificationGasLimit": "<string>",
        "preVerificationGas": "<string>",
        "sender": "<string>",
        "signature": "<string>",
        "verificationGasLimit": "<string>"
      }
    },
    "svmTransaction": {
      "chainId": "<string>",
      "method": "<string>",
      "serializedTransactions": [
        "<string>"
      ]
    },
    "suiTransaction": {
      "chainId": "An example name",
      "serializedTransaction": "<string>"
    },
    "eip7702Auth": {
      "address": "<string>",
      "chainId": 123,
      "nonce": 123
    },
    "evmMessage": "<string>",
    "svmMessage": "<string>",
    "suiMessage": "<string>",
    "evmTypedData": {
      "domain": {
        "name": "<string>",
        "version": "<string>",
        "chainId": 123,
        "verifyingContract": "0xbF394748301603f18d953C90F0b087CBEC0E1834"
      },
      "message": {},
      "primaryType": "<string>",
      "types": {}
    },
    "domain": "https://app.xyz.com"
  }
}
'
{
  "roomId": "<string>",
  "serverKeygenIds": [
    "<string>"
  ],
  "newServerKeygenIds": [
    "<string>"
  ],
  "walletId": "95b11417-f18f-457f-8804-68e361f9164f"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

environmentId
string
required

ID of the environment

Required string length: 36
Example:

"95b11417-f18f-457f-8804-68e361f9164f"

walletId
string
required

UUID of the wallet

Required string length: 36
Example:

"95b11417-f18f-457f-8804-68e361f9164f"

Body

application/json

Sign Message Request

message
string
required

A string with a max length of 16384 characters

Maximum string length: 16384
isFormatted
boolean
roomId
string
context
object

Response

Successfully created a room for signing message ceremony

roomId
string
required
serverKeygenIds
string[]

A base58 string with a max length of 100 characters

Maximum string length: 100
newServerKeygenIds
string[]

A base58 string with a max length of 100 characters

Maximum string length: 100
walletId
string
Required string length: 36
Example:

"95b11417-f18f-457f-8804-68e361f9164f"