I am feeding a signed serialized raw transaction to sendRawTransaction of web3. The problem is that whenever I call sendRawTransaction it throws an error:

rlp: expected input list for types.txdata.

I have read stuffs about RLP but I can't seem to fully understand it. I am using [email protected] because we cannot use the beta version just yet. Help is very much appreciated thank you!!

  • How do you sign the transaction? Try decoding the raw transaction with a decoder blockchains.tools/rawTransactionDecoder?l=ETH, if that fails it is likely you are not generating it properly.
    – Ismael
    Apr 26, 2019 at 5:13
  • I am using azure keyvault to sign transactions. I found out that my signature was indeed correct however there was no context of the actual transactions within the signature. Now that I've assembled the transaction before signing it, it now works. Thanks for the response I really appreciate it. Apr 26, 2019 at 6:31
  • Perhaps explaining your situation as an answer will help others with a similar problem.
    – Ismael
    Apr 26, 2019 at 15:20

1 Answer 1


The error rlp: expected input list for types.txdata happens when your signed raw tx is invalid. If you put the tx hex into an Ethereum tx decoder it will be invalid.

My best guess is that the EIP-1559 fee parameters maxFeePerGas and maxPriorityFeePerGas are not supported. Fix by replacing them with gas and gasPrice.

Same problem as this Q: EIP-1559: Why does geth expect an input list for types.txdata?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

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