question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Inputs do not conform to this spec or are otherwise invalid

See original GitHub issue

I’m getting this error when trying to sign the simplest transaction:

cardano-cli transaction build-raw \
    --tx-in 88d9225ff5d46b0efcd56dda20f2ea93b0a5fa232e7f70ab7d626746075a20d1#0 \
    --tx-out addr_test1qzymym7qc47kx65sjhntdl2prq85rj5v8mzv5pvyffnntz4el5zqnamef3yt2kprt866p5f38w6um6642lvzrj80d0xstnnmxq+10 \
    --tx-out addr_test1qzjlc05tyyw264wy7m4u7np5yqdwglks0xhu6765cl4qex9r9kvav4hmznru9px9n7cpa2hmmv4593eegve3t834xppqwskp4t+999823269 \
    --invalid-hereafter 369400 \
    --fee 176721 \
    --out-file tx.raw

ready2

It’s an alonzo-era transaction

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:13 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
MartinScherecommented, Oct 7, 2021

I created a toSpec helper function and it worked:

  public toSpec(txFilePath: string): string {
    const file = JSON.parse(readFileSync(txFilePath, 'utf-8'));

    const { cborHex } = file;
    const decoded = cbor.decode(cborHex);
    const newCborDecoded = [];

    for (let i of decoded) {
      if (Array.isArray(i)) {
        newCborDecoded.push(new Map());
      } else if (typeof i !== 'boolean') {
        newCborDecoded.push(i);
      }
    }
    const result = cbor.encode(newCborDecoded).toString('hex');
    return result;
  }
1reaction
alessandrokonradcommented, Oct 6, 2021

Yes it’s possible. I’ll release a new Nami version soon, that also handles the additional bool in the transaction from the cardano-cli

Read more comments on GitHub >

github_iconTop Results From Across the Web

What does 'Inputs do not conform to this spec or are ... - GitHub
Getting this exception when calling .build() on TxBuilder. Can't find this exception in the serlib codebase. The TX is built like this:
Read more >
Signing a Tx with Nami wallet - Cardano Stack Exchange
i get: {code: -1, info: 'Inputs do not conform to this spec or are otherwise invalid.'} My question is: is something wrong in...
Read more >
Continual error trying to stake LP MELD/ADA - Minswap Forum
Error I keep getting: {“code”:-1, “info”:“Inputs do not conform to this spec or are otherwise invalid.”} Anyone seen this issue and is there ......
Read more >
CIP 30 - Cardano dApp-Wallet Web Bridge
InvalidRequest - Inputs do not conform to this spec or are otherwise invalid. InternalError - An error occurred during execution of this API...
Read more >
Can't delegate to any pool on the pool.pm website with nami ...
That said, when the chain is too loaded, it may not be possible to submit the transaction in which case an immediate error...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found