Building transactions problem

when I build the raw tranasaction copied from cardano docs, says that,I don’t know what I’m supposed to do now

Have you got a minting script ?

af6f7d0094567c0344c813098491be7650f61a7e371751bf479485c2.firstcoin

I think that this is the minting script but the .firstcoin I don’t know where does it come from, I just copied the guide step by step if its not the minting script I don’t know what is the minting script

Ok, I said that because the error message you got is basically saying that you’re missing a parameter, i.e. --minting-script-file FILE so the parameter is expecting a filename. Sorry I cannot help you much beyond that.


Uploading: problema_11_02.PNG…
in the documentation it does not specify that any file is needed, anyways, you know what is .melcoin? is that a file? for curiosity

Well, sometimes you have to adapt, the cardano-cli revision you are using is not necessarily the same as the one that was used when redacting the documentation. If that may be of any help, here is the list of parameters possibly used in transaction build-raw subcommand (inline help)

$ cardano-cli transaction build-raw
Usage: cardano-cli transaction build-raw [--byron-era | --shelley-era | 
                                           --allegra-era | --mary-era]
                                         (--tx-in TX-IN 
                                         [--txin-script-file FILE]) 
                                         [--tx-out TX-OUT] 
                                         [--mint VALUE
                                           (--minting-script-file FILE)] 
                                         [--invalid-before SLOT] 
                                         [--invalid-hereafter SLOT] 
                                         [--fee LOVELACE] 
                                         [--certificate-file CERTIFICATEFILE 
                                           [--certificate-script-file FILE]] 
                                         [--withdrawal WITHDRAWAL 
                                           [--withdrawal-script-file FILE]] 
                                         [--json-metadata-no-schema | 
                                           --json-metadata-detailed-schema] 
                                         [--auxiliary-script-file FILE] 
                                         [--metadata-json-file FILE | 
                                           --metadata-cbor-file FILE] 
                                         [--update-proposal-file FILE] 
                                         --out-file FILE
  Build a transaction (low-level, inconvenient)

Available options:
  --byron-era              Specify the Byron era
  --shelley-era            Specify the Shelley era
  --allegra-era            Specify the Allegra era
  --mary-era               Specify the Mary era (default)
  --tx-in TX-IN            TxId#TxIx
  --txin-script-file FILE  Filepath of the spending script witness
  --tx-out TX-OUT          The transaction output as Address+Lovelace where
                           Address is the Bech32-encoded address followed by the
                           amount in Lovelace.
  --mint VALUE             Mint multi-asset value(s) with the multi-asset cli
                           syntax. You must specifiy a script witness.
  --minting-script-file FILE
                           Filepath of the multi-asset witness script.
  --invalid-before SLOT    Time that transaction is valid from (in slots).
  --invalid-hereafter SLOT Time that transaction is valid until (in slots).
  --fee LOVELACE           The fee amount in Lovelace.
  --certificate-file CERTIFICATEFILE
                           Filepath of the certificate. This encompasses all
                           types of certificates (stake pool certificates, stake
                           key certificates etc). Optionally specify a script
                           witness.
  --certificate-script-file FILE
                           Filepath of the certificate script witness
  --withdrawal WITHDRAWAL  The reward withdrawal as StakeAddress+Lovelace where
                           StakeAddress is the Bech32-encoded stake address
                           followed by the amount in Lovelace. Optionally
                           specify a script witness.
  --withdrawal-script-file FILE
                           Filepath of the withdrawal script witness.
  --json-metadata-no-schema
                           Use the "no schema" conversion from JSON to tx
                           metadata.
  --json-metadata-detailed-schema
                           Use the "detailed schema" conversion from JSON to tx
                           metadata.
  --auxiliary-script-file FILE
                           Filepath of auxiliary script(s)
  --metadata-json-file FILE
                           Filepath of the metadata file, in JSON format.
  --metadata-cbor-file FILE
                           Filepath of the metadata, in raw CBOR format.
  --update-proposal-file FILE
                           Filepath of the update proposal.
  --out-file FILE          Output filepath of the JSON TxBody.
  -h,--help                Show this help text

You’ll find more on multi-assets syntax on this page and on this other page. And to answer your question, .melcoin is not a file name it’s an asset name (concatenated to a policy id).

1 Like