Skip to main content
POST
/
sign
curl --request POST \
  --url https://builder.snek.fun/sign \
  --header 'Content-Type: application/json' \
  --data '{
    "cbor": "84a500...",
    "witness": "...",
    "changeAddress": "addr1..."
  }'
{
  "cbor": "84a500..."
}
Attaches the provided witness to a transaction without submitting it. Use this endpoint when you want signed transaction CBOR back and plan to submit it separately. Submit the signed transaction later via /submit, or use /sign-and-submit to do both in one call. Auth: Public

Request body

cbor
string
required
Hex-encoded unsigned transaction CBOR.
witness
string
required
Hex-encoded transaction witness-set CBOR.
changeAddress
string
required
Bech32 change address.

Response

cbor
string
Signed transaction CBOR, ready to submit.
curl --request POST \
  --url https://builder.snek.fun/sign \
  --header 'Content-Type: application/json' \
  --data '{
    "cbor": "84a500...",
    "witness": "...",
    "changeAddress": "addr1..."
  }'
{
  "cbor": "84a500..."
}

Error response

cause
string
Machine-readable error code.
message
string
Human-readable error message.
Possible errors:
  • 400 INVALID_PARAMS — one or more required fields are missing or have the wrong type.
  • 500 SERVER_ERROR — the transaction CBOR or witness CBOR could not be processed.
{
  "cause": "INVALID_PARAMS",
  "message": "Invalid input"
}