Created
June 22, 2021 14:04
-
-
Save nemo83/27fa340dfc2c559c9a27e6769c8d2a0e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# payment_address-> addr_test1qp0xdxw7vepdd7w2aqzyucppntdt8jgts34l38erv2w6gpvm4k8vrnzmvz3nae2g37y98ul8rvacu7szpxuvvyca4utqmnxs0n | |
# secret number -> 95727697 | |
cardano-cli transaction build-raw \ | |
--alonzo-era \ | |
--fee 800000000 \ | |
--tx-in 198a3abe75113cdcbc64a09d36f6b7cdc370de1667aa0e77e0d88e36183b62b8#0 \ | |
--tx-in 198a3abe75113cdcbc64a09d36f6b7cdc370de1667aa0e77e0d88e36183b62b8#1 \ | |
--tx-in-collateral 198a3abe75113cdcbc64a09d36f6b7cdc370de1667aa0e77e0d88e36183b62b8#1 \ | |
--tx-out addr_test1qp0xdxw7vepdd7w2aqzyucppntdt8jgts34l38erv2w6gpvm4k8vrnzmvz3nae2g37y98ul8rvacu7szpxuvvyca4utqmnxs0n+599822311 \ | |
--tx-in-script-file untyped-always-succeeds-txin.plutus \ | |
--tx-in-datum-value 95727697 \ | |
--protocol-params-file protocol.json \ | |
--tx-in-redeemer-value 95727697 \ | |
--tx-in-execution-units "(200000000,200000000)" \ | |
--out-filez tx.raw | |
cardano-cli transaction calculate-min-fee \ | |
--testnet-magic 5 \ | |
--protocol-params-file protocol.json \ | |
--tx-in-count 3 \ | |
--tx-out-count 2 \ | |
--witness-count 1 \ | |
--byron-witness-count 0 \ | |
--tx-body-file tx.raw | |
cardano-cli transaction sign \ | |
--tx-body-file tx.raw \ | |
--signing-key-file test.payment.skey \ | |
--testnet-magic 5 \ | |
--out-file tx.signed | |
cardano-cli transaction submit \ | |
--tx-file tx.signed \ | |
--testnet-magic 5 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment