Now I am developing a wallet function that needs to manage ICP balance.
How to monitor the arrival of ICP balance?
In addition to polling the ledger-api: https://ledger-api.internetcomputer.org/
. Are there any other good ways?
1 Like
You can interact with ICP ledger or more conveniently with the ICP index canister directly.
If you want to interact from a client outside ICP using JS/TS, the simplest way is to use @dfinity/ledger-icp - npm
For your use case, you could call get_transactions
periodically.
2 Likes
Thank you, I understand.
If it could support subscription, it would be even more perfect