Skip to main content
POST
/
v1
/
raw
/
sign
/
{curve}
Sign a transaction or message by curve
curl --request POST \
  --url https://mpc-client.portalhq.io/v1/raw/sign/{curve} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "params": "7369676e2074686973",
  "share": "eyJjbG..."
}
'
{
  "data": "f7a6a07fa599db56fca50fa1202670b59054e7ed452ea57b3f5b43148b8bdb165beb3a4b0fd532162a1f0fd475de1a9ecd07c95186f7a0856ce1bffa45e3acc91b"
}

Authorizations

Authorization
string
header
required

Client API Key or Client Session Token

Path Parameters

curve
enum<string>
required

The elliptic curve to use.

Available options:
SECP256K1,
ED25519

Body

application/json

Request body for signing a raw hex digest by curve.

params
string
required

A hex string of the digest to sign without the leading 0x (e.g. "7369676e2074686973").

share
string
required

The MPC share for the relevant curve.

presignature
string

The data value from a presign response. Omit for standard (non-presigned) signing.

signingScheme
enum<string>

The signing scheme to use. Defaults to cggmp.

Available options:
cggmp,
frost

Response

Signed successfully

Response containing the signed data.

data
string
required

The signed data as a hex string.