Cardano Submit API
Submit API is an HTTP service that accepts pre-signed, CBOR-encoded transactions and submits them into a local running node. Submit API is one component within the context of the larger Cardano Node.
When creating a project in Demeter (opens in a new tab) you get access to the
Submit API for submitting transactions to a
Node running in the
network of your project.
How to Submit a TX
Demeter (opens in a new tab) provides access points from inside and outside the Workspace cluster.
The http endpoint where the primary Submit API instance is running. This DNS name can only be resolved from inside the cluster.
The port where the primary Submit API instance is running. This port can only be accessed from inside the cluster.
The public http endpoint, specific to your project, is where you can access the Submit API. Access through this endpoint is constrained by your project's quotas.
Submitting a CBOR
What is CBOR?
The Concise Binary Object Representation (CBOR) is a data format whose design goals include the possibility of minimal code size, relatively small message size, and extensibility without the need for version negotiation.
Cardano uses CBOR (opens in a new tab) data format for transaction binary representation.
The stable reference (RFC 7049) is available here (opens in a new tab)
Demeter (opens in a new tab) provides a graphical user interface so you can paste a
CBOR and submit it to the running node by just pressing a button.
When submitting the transaction, you can select whether to hit the private DNS Name or Public endpoint.
A public endpoint is only available if you expose the service.
Demeter (opens in a new tab) will display the
cURL command, which will be executed for submitting the transaction in case you need to run it from outside of the web interface.
curl -X POST \ --header "Content-Type: application/cbor" \ --data "86a500818258201db731b2349b2a16745512809c86756ed42e2547f8cf7b93d8803bd88bd68338000d8001828258390003a114d3cf5200be6d1990493620ce2155a756582ec92ae4c532942902053e0c6f434f19a205fb5c118500cc77dc32c4e0b2a7ccbc6046861a0591fd6482583900cd0f6f5ee5b34c5af9aa40fc99fa788996f27e464a96d58f3e524bce53e163da5b1d71b783f037a745e1250b9df2450754ffed78fbf592291a000f4240021a000290f90e809fff8080f5f6" \ http://node-preview-1-35-3-0.nodes.ftr-nodes-v0.svc.cluster.local:8090/api/submit/tx