curl --request POST \
--url https://builder.snek.fun/sign-and-submit \
--header 'Content-Type: application/json' \
--data '{
"cbor": "84a500...",
"witness": "...",
"changeAddress": "addr1..."
}'
{ "txHash": "..." }
Transaction Builder API
Sign and submit
Attach a witness and submit in one call
POST
/
sign-and-submit
curl --request POST \
--url https://builder.snek.fun/sign-and-submit \
--header 'Content-Type: application/json' \
--data '{
"cbor": "84a500...",
"witness": "...",
"changeAddress": "addr1..."
}'
{ "txHash": "..." }
Attaches the provided witness to a transaction and submits it to the Cardano network in a single round-trip. Use this endpoint when you want signing and submission handled in one call.
Use
Possible errors:
/sign if you want the signed CBOR back without submission, or /submit if the transaction is already fully signed.
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
Hash of the submitted transaction.
curl --request POST \
--url https://builder.snek.fun/sign-and-submit \
--header 'Content-Type: application/json' \
--data '{
"cbor": "84a500...",
"witness": "...",
"changeAddress": "addr1..."
}'
{ "txHash": "..." }
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, or relay submission failed.
{
"cause": "INVALID_PARAMS",
"message": "Invalid input"
}
Was this page helpful?