Skip to main content
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 /sign if you want the signed CBOR back without submission, or /submit if the transaction is already fully signed. 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

txHash
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

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, or relay submission failed.
{
  "cause": "INVALID_PARAMS",
  "message": "Invalid input"
}