0

Lets take for example this, we can see that it did not transfer any ether, it interacts with a contract (that's why there's the stamp of the contract creation/execution).

Is there a way to get in go-ethereum these specific values?

Basically, how to get what was in a transaction if it was not about ether (eg uniswap).

0

You can get more info about the transaction if you click on

  1. "Click to see more"

You'll find that the input data box contains hints on what the call was about

Function: approve(address _spender, uint256 _amount)

MethodID: 0x095ea7b3
  1. at the top on "Logs". You'll see that an Approval event was emitted and more details
Approval (index_topic_1 address _owner, index_topic_2 address _spender, uint256 _value)

The same info are available in the, respectively, (decoded) input/data and logs part of a getTransaction call to geth (or other clients).

You can find more info on decoding input data and logs here

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.