how to sign eip-1559 transaction? #2268
Unanswered
adatoshima
asked this question in
Q&A
Replies: 1 comment 6 replies
-
@adatoshima You just need to include an extra key to the tx object tx={
type: 2,
chainId: 1,
nonce: 0,
gasLimit: 21000,
to: '0x0000000000000000000000000000000000000000',
value: 0,
maxFeePerGas: 2e9,
maxPriorityFeePerGas: 200e9,
} |
Beta Was this translation helpful? Give feedback.
6 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm using ethers-5.4.esm.min.js to sign tx object to raw transactions.
It's ok with old type tx.
When I sign eip-1559 tx I get error: invalid object key - maxFeePerGas
the code:
error:
any help?
Thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions