Polygon (MATIC) Balance Updates API
In thise section we will see how to monitor real-time balance changes across the Polygon (MATIC) blockchain.
Subscribe to Balance Updates of a Particular Wallet
The query will subscribe you to real-time updates for balance changes on the Polygon (MATIC) blockchain, providing a continuous stream of data as new transactions are processed and recorded. Here we have used address 0x4c828be6a67130Cd0835cEDa850Baec062Dfd685
. You can find the query here
subscription {
EVM(network: matic) {
BalanceUpdates(
where: {BalanceUpdate: {Address: {is: "0x4c828be6a67130Cd0835cEDa850Baec062Dfd685"}}}
) {
Currency {
Name
}
BalanceUpdate {
Address
Amount
Type
}
Block {
Time
}
}
}
}