Function Signature
Description
Signs a raw message without adding any prefix. UnlikesignMessage, this does not prepend the Ethereum message prefix. Use this for signing raw data or for chains that don’t use Ethereum’s message prefix.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
chainId | String | Yes | The chain ID in CAIP-2 format |
message | String | Yes | The message to sign (must be hex-encoded) |
signatureApprovalMemo | String | No | Optional memo for signature approval |
Returns
String - The signature as a hex string.
Example
Chain-Specific Signing
The curve used for signing depends on the chain ID:| Chain Type | Curve |
|---|---|
eip155:* | SECP256K1 |
solana:* | ED25519 |
Errors
| Code | Description |
|---|---|
NOT_INITIALIZED | Portal was not initialized |
SIGNING_FAILED | The signing operation failed |
INVALID_HEX | The message is not valid hex |