You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 30, 2025. It is now read-only.
Besides SDK, you can also directly use aptos node's [balance API endpoint](/build/apis/fullnode-rest-api-reference#tag/accounts/GET/accounts/{address}/balance/{asset_type}) to get the balance of a migrated coin or fungible asset.
209
+
208
210
## Tracking Balance Changes
209
211
210
212
Balance changes can be queried in one of two ways:
@@ -325,48 +327,80 @@ In this case, we only care about coin store changes.
325
327
</details>
326
328
327
329
3. Events are the events that were emitted by the transaction. In this case, we
328
-
only care about the `0x1::coin::deposit` and `0x1::coin::withdraw` events.
330
+
only care about the `0x1::coin::Withdraw` and `0x1::coin::Deposit` events.
329
331
330
-
The Coin deposit event is emitted when coins are deposited into an account. The
331
-
account's balance will increase by that amount in the field `data.amoount`. To
332
-
determine the matching asset, you must match the `guid` in the `deposit_events`
333
-
to the `guid` in the `changes` section for a `CoinStore`.
332
+
The Coin withdraw event is emitted when coins are withdrawn from an account. The
333
+
account's balance will decrease by that amount in the field `data.amount`. To
334
+
determine the matching asset, you must match the `guid` in the `withdraw_events`
335
+
to the `guid` in the `changes` section for a `CoinStore`. But if the `CoinStore`
336
+
is not found in the `changes`, it means it got deleted, and a `CoinStoreDeleteEvent`
337
+
must be present instead. Then you can match the `guid` with
338
+
`deleted_withdraw_event_handle_creation_number` and `event_handle_creation_address`.
Following [AIP-55](https://github.com/aptos-foundation/AIPs/blob/main/aips/aip-55.md) the SDK supports `Legacy` and `Unified` authentications. `Legacy` includes `ED25519` and `MultiED25519` and `Unified` includes `SingleSender` and `MultiSender` authenticators.
28
28
</Callout>
29
29
30
-
Once you have generated credentials, you **must** fund it for the network to know it exists.
30
+
Once you have generated credentials, you **must** fund it for the network before using it.
31
31
32
32
In test environments this can be done with a faucet by running the following command:
0 commit comments