Print like the Fed.
Here are a few commands to get started:
- build charms from source https://github.com/CharmsDev/charms:
cargo install --profile=test --path . --locked --bin charms- In the
printerrepo root dir, run:
. ./script/export-vars-nft.shIf it prints an error about wallet_dir, set wallet_dir and run again.
- Now you're ready to prove a spell:
cat ./spells/mint-nft.yaml | envsubst | charms spell prove --app-bins=$app_bins --prev-txs=$prev_txs --funding-utxo=$funding_utxo --funding-utxo-value=$funding_utxo_value --change-address=$change_address --chain=cardano --mock > ./tmp/tx.draft.jsonThis will create ./tmp/tx.draft.json which can be signed and submitted to the Cardano network.
- To see if the tx has a valid spell, you can run
charms tx show-spell --tx $(cat ./tmp/tx.draft.json | jq -r '.cborHex') --chain=cardano --mockIt should print something like
version: 6
apps:
$0000: n/ff5737e38a9643b1876beade2b7eb58720d9b32791ba2d6173dba91d83a0ce76/a1cfba133d276560a88e8b9f7352e4676cadf10b563435ff0eff12174b5be17a
ins: []
outs:
- charms:
$0000:
ticker: PRINTER