Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix submit-api testing documentation to use raw cbor in submission #2512

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion cardano-submit-api/testing-tx-submit.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,10 +96,16 @@ playground $ cardano-cli transaction sign \
--out-file tx.signed
```

Extract the CBOR binary from the signed transaction:

```bash
playground $ xxd -r -p <<< $(jq .cborHex tx.signed) > tx.signed.cbor
```

Submit the signed transaction using curl:

```bash
playground $ curl --header "Content-Type: application/cbor" -X POST http://localhost:8090/api/submit/tx --data-binary @tx.signed
playground $ curl --header "Content-Type: application/cbor" -X POST http://localhost:8090/api/submit/tx --data-binary @tx.signed.cbor
"8a3d63d4d95f669ef62570f2936ad50d2cfad399e04808ca21474e70b11987ee"%
```

Expand Down