Skip to content

[General] #Building DEX Trade Analysis Tool on zkSync Era - Need Help with Transaction Type Detection #786

Answered by uF4No
0xNexius asked this question in General
Discussion options

You must be logged in to vote

Hi

Sharing some info although this page is more focused on technical support and debugging issues with our tools. Perhaps you can also ask in our Discord server as well to get better answers.

Transaction Type Detection

What's the most reliable way to differentiate between sells and other operations (transfers/LP/staking)?

As far as I know, a sell will be just a transfer from the user account to another one. I'd try to identify any transactions on the token contract, calling the transfer method with the user address in the from param. See the Openzeppelin docs for the ERC20 token API.

What specific contract interactions indicate a true "sell"?

As mentioned before, any transfer where the

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by MexicanAce
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
General
Labels
general General question
2 participants