2

I want to get public key from transaction.

For example, TXID : 0x191095343fd26cbb4c58996aa6512d5cdf43281d565072bab8d0d5ea9e3d644e

I have tried "Get Raw Transaction Hex" in etherscan and use https://toolkit.abdk.consulting/ethereum#recover-address

but it says "invalid rlp data"

I referenced this : Get public key of any ethereum account

But i think the solution is not working now.

Am i wrong? and how can I get public key from transaciton?

1
  • You want the public key of the account that send the tx?
    – Julissa DC
    Nov 1, 2021 at 11:36

2 Answers 2

0

Usually, by using the mentioned method(s), you won't be able to get the public key of an Ethereum account if that transaction has no spend transactions. It happens the same with BTC. Without the private key, you can get the public key of the address only if it has spend transactions.

1
  • Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.
    – Community Bot
    Dec 13, 2021 at 22:06
0

That TX is a type 2 transaction (raw data starts with 0x02....), as per EIP-1559, which changes the transaction format. The ABDK toolkit seems compatible only with legacy transactions (EIP-155), hence giving the error.

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.