Account Callbacks
On-chain account updates, parsed and sent straight to your backend, in real-time.
Last updated
On-chain account updates, parsed and sent straight to your backend, in real-time.
Last updated
In Solana, programs store their data in accounts. There might be some accounts that update quite frequently, instead of continuous polling, you can setup callbacks on them to listen to those changes in real-time.
Also, as a program owner, you need to easily query/filter your accounts data. For this, one needs to poll getProgramAccounts() regularly to create an off-chain replica of your accounts. This is generally very slow and not real-time, leading to discrepancies or out-of-sync data.
With Shyft's Account Callbacks, this becomes super easy. You can register a callback on your program ID (or account addresses your are interested in) and start receiving POST requests to your backend whenever your account data changes.
You can create callbacks programmatically through our APIs, Postman or Swagger UI.
You can specify encoding while registering a callback to receive either raw or parsed format.
This is a sample account callback payload for program.
Upload your IDL on (Shyft's Solana Explorer) to receive parsed account Callbacks.