Skip to content
Discussion options

You must be logged in to vote

0x1::coin::DepositEvent will tell you when someone deposits tokens to their account.

0x1::coin::WithdrawEvent will tell you when someone removes tokens from their account.

In the case of buys or transfers, you will always have a deposit on the user who receives the token, and a withdrawal from the other user. It is possible if the coins don't go through the CoinStore that no withdraw event is emitted

Here's a more detailed doc on how to track coin events https://aptos.dev/guides/system-integrators-guide/#tracking-coin-balance-changes

Replies: 1 comment 2 replies

Comment options

0x-j
Apr 4, 2024
Maintainer Author

You must be logged in to vote
2 replies
@slyofzero
Comment options

@gregnazario
Comment options

Answer selected by 0x-j
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
event Questions related to on-chain events
3 participants