Hey guys,
I am trying to submit a transaction via cardano-cli which got built and signed by a nodejs app using cardano-wasm. I tried the following approach:
The result I got from the cli:
error: Command failed: cardano-cli transaction submit --tx-file /tx-files/jpg-tx46774.signed --mainnet
Command failed: transaction submit Error: Failed to decode neither the cli’s serialisation format nor the ledger’s CDDL serialisation format. TextEnvelope error: /tx-files/jpg-tx46774.signed: TextEnvelope aeson decode error: Error in $: Failed reading: not a valid json value
TextEnvelopeCddl error: /tx-files/jpg-tx46774.signed: Could not JSON decode TextEnvelopeCddl file at: /tx-files/jpg-tx46774.signed Error: Error in $: Failed reading: not a valid json value
Besides txToSubmit.to_bytes() I have also tried to write the tx-file with content of
txToSubmit.to_json()
txToSubmit.to_hex()
But I get the same result.
Does anyone know in which format the tx-file has to be and how to get it there? Submitting via Blockfrost “txSubmit(txToSubmit.to_bytes())” works flawlessly, but I want to switch to cardano-cli