This is my first attempt to use this service.
I made a POST request to https://mainnet.infura.io/v3/xyz with:
And I got the following response:
“message”: “transaction could not be decoded: could not decode RLP components: insufficient remaining input for short list”
Any pointers on how to fix this error?
At first glance it seems that the raw data is wrong, could you please share with me the way you’re building the raw Transaction? Thank you.
This payload was from the documentation.
I just copied and pasted it to see if it would work.
In order to send a transaction over Infura you will need to sign the transaction locally using
You may find the following example useful → https://besu.hyperledger.org/en/1.2.0/Using-Pantheon/Transactions/scripts/create_value_raw_transaction.js
We will update our docs as well to look meaningful, because at this point we have bogus data in our documentation.
I am using Golang for this project so I have found some code that does that but it needs the previous transaction id/hash.
How can I find that?