submit-api¶
Transactions¶
/api/submit/tx¶
Submit an already serialized transaction to the network.
Assuming data
is a serialized transaction on the file-system.
$ curl -X POST --header "Content-Type: application/cbor" --data-binary @data http://localhost:8101/api/submit/tx
see JSON response
92bcd06b25dfbd89b578d536b4d3b7dd269b7c2aa206ed518012cffe0444d67f
mutation submitTransaction($transaction) {
submitTransaction(transaction: $transaction) {
hash
}
}
Where $transaction
corresponds to a CBOR-serialized transaction, e.g. as output from cardano-cli
.
This can be done via the /construction/submit endpoint.
Follow the OpenAPI specification defined here. For any question, please open a ticket on input-output-hk/cardano-node.