Cardano Tools logoCardano Tools

Submit API

Send signed transactions to Cardano mainnet, free to use and without a token

A signed transaction you post here is handed to the node of the stake pool [TOOLS] and spreads from there into the network. The service is the cardano-submit-api that comes with the Cardano node, so whatever speaks its interface works with it: a wallet that lets you set a submit endpoint of your own, a script around cardano-cli, your own app. Requests from a page in a browser are answered as well.

Endpoints

The path of the cardano-submit-api, the one wallets expect:

POST https://submit.cardano-tools.io/api/submit/tx

The same service at the address of the Koios API:

POST https://koios.cardano-tools.io/api/v1/submittx

Request

The body is the signed transaction as raw CBOR, the bytes themselves and not their hex text. The header Content-Type: application/cbor is required.

curl -X POST -H "Content-Type: application/cbor" --data-binary @tx.signed.cbor https://submit.cardano-tools.io/api/submit/tx

cardano-cli writes a signed transaction as JSON with the bytes in hex in its field cborHex. Turn them into a binary file first:

jq -r .cborHex tx.signed | xxd -r -p > tx.signed.cbor

Answers

202
The node took the transaction. The answer is its transaction ID as a JSON string. It is on chain once a block contains it.
400
The node refused the transaction. The answer is its error message as JSON: an input that is spent already, a fee that is too low, a missing signature.
415
The Content-Type header is missing or not application/cbor.
429
Too many transactions from your IP address, see the limits below.

Per IP address up to 10 transactions per minute and 1,000 per day are taken, at both addresses. The service is for mainnet only.