curl --request POST \
  --url https://testnet.walletkit.com/transactions/sign-message \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "network": "Ethereum",
  "message_type": "string",
  "signer_wallet_address": "<string>",
  "message": "<string>",
  "developer_secret": "<string>",
  "user_pin": "<string>"
}'
{
  "signature": "<string>"
}

Headers

X-WalletKit-Project-ID
string
required

Your WalletKit Project ID can be found on the API Keys page in the WalletKit Dashboard.

Authorizations

Authorization
string
headerrequired

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

Body

application/json
network
enum<string>
required
Available options:
Ethereum,
Polygon,
Base,
Avalanche,
Polkadot,
Vara
message_type
enum<string> | null

type of message to be signed. defaults to string.

Available options:
string,
bytes
signer_wallet_address
string
required

address can only be the ones created in the project.

message
string
required

message to be signed.

developer_secret
string | null

On testnet, the developer_secret is always "testnet-secret". On mainnet, the developer_secret is set by the developer during account activation.

user_pin
string | null

A 6-digit numeric pin that is only known to the user, set during wallet creation. This pin is required to sign transactions from this wallet.

Response

200 - application/json
signature
string
required