curl --request POST \
--url https://builder.snek.fun/sign \
--header 'Content-Type: application/json' \
--data '{
"cbor": "84a500...",
"witness": "...",
"changeAddress": "addr1..."
}'
{
"cbor": "84a500..."
}
Transaction Builder API
Sign transaction
Attach a witness to a transaction without submitting it
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
Possible errors:
/submit, or use /sign-and-submit to do both in one call.
Auth: Public
Request body
string
required
Hex-encoded unsigned transaction CBOR.
string
required
Hex-encoded transaction witness-set CBOR.
string
required
Bech32 change address.
Response
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
string
Machine-readable error code.
string
Human-readable error message.
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"
}
Was this page helpful?