-
Ethers Version5.6.9 Search Termseip1559,rlp,decode Describe the ProblemI cannot decode raw tx bytes from tx using EIP1559. EIP1559 non-parseable hex
Non EIP1559 parseable hex
Code Snippetutils.RLP.decode('0x02f8b401830153b4843b9aca008507f3be98328301d4c094dac17f958d2ee523a2206206994597c13d831ec780b844a9059cbb000000000000000000000000622779096805724b38c42b51989ddca32d671a000000000000000000000000000000000000000000000000000000000022df0080c001a0236084da36000fb2c7373cfa78e8f1bc9d8eb081dc240630c8024aa06fc39f96a030bdc5cd4e1f5f6abbb36c3b004270b68724cc46c56ad5847c99f8ced9c4112d') Contract ABINo response Errors"invalid rlp data (argument=\"data\", value=\"0x02f8b401830153b4843b9aca008507f3be98328301d4c094dac17f958d2ee523a2206206994597c13d831ec780b844a9059cbb000000000000000000000000622779096805724b38c42b51989ddca32d671a000000000000000000000000000000000000000000000000000000000022df0080c001a0236084da36000fb2c7373cfa78e8f1bc9d8eb081dc240630c8024aa06fc39f96a030bdc5cd4e1f5f6abbb36c3b004270b68724cc46c56ad5847c99f8ced9c4112d\", code=INVALID_ARGUMENT, version=rlp/5.6.9)" Environmentnode.js (v12 or newer) Environment (Other)Linux |
Beta Was this translation helpful? Give feedback.
Answered by
ricmoo
Aug 13, 2022
Replies: 1 comment 3 replies
-
EIP-1559 uses a typed transaction envelope, so the first byte is an out-of-bounds type. You need to remove the first byte (I.E. |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
crisog
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
EIP-1559 uses a typed transaction envelope, so the first byte is an out-of-bounds type. You need to remove the first byte (I.E.
02
). Pass in the hexSlice from 1 onwards.