Subscribing to Accounts
Subscribe requests related to streaming real-time account updates
To receive account updates we use the accounts filter of the Subscribe request. The account filter has the following structure.
Similar to the transactions filter, the first field under the accounts filter is the accountLabel
, a user-defined label that helps you identify updates, especially when working with multiple filters. The account
field specifies an array of account addresses for streaming account updates. The owner
field streams updates for accounts owned by the specified addresses. Additionally, you can refine the data further by adding filters based on memcmp values, such as bytes
and dataSize
.
Last updated
Was this helpful?