3

Empty input body of a transaction

I was scanning the incoming transactions of a cardano-wallet and a transaction's input body did not contain an address. The other transactions had an address. Is this a normal occurence? If so, how do I work around it to find the sending address?

enter image description here

1

It depends on what you're exploring. If you're exploring forged coins in Cardano, look at this page of Blockchain Explorer, for example – as you can see there's no inputs in Tx. And this is also possible through constructing a raw transaction via cardano-cli – the only question is what will you achieve with such a transaction.

By the way, in Bitcoin network there's a coinbase transaction that creates coins from nothing. In other words, it's a reward that miner gets for a successfully mined block.

1

If I understood your question correctly you are looking for the address used to send the ADA.

Your first image shows an array of inputs used in the transaction and each input points to the transaction with the output index.

So to find out the sending address, you can copy the id(transaction id) and search on testnet.cardanoscan.io OR you click on the below link which takes you to the transaction

https://testnet.cardanoscan.io/transaction/834033b8812a1c1b07f490b42c3c705bb47448215b46ece6f35b10ab02099676

There the UTXOs section "TO ADDRESSES (OUTPUTS)" show the list of addresses with balance and the 0th index address is the address which was used as sending address and you can find that address details with below link

addr_test1qzk97pnpqnt63q736t5qczr9ey48z8crznx252jfc7aze3jxrn7utzx6tyv0paf46udyq543rnve77yhmg70qdlrcgws53045k

2
  • So, if I cant find the address in the input object, I should look at the output object and derive from the utxo's?
    – Tomy
    Sep 28 '21 at 8:58
  • Input should never have an address it will always contain transaction-id and index which point to the UTXO that will be used in the transaction
    – Pavan Vora
    Sep 28 '21 at 11:09

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.