Parameters
string
required
Program public key (base-58 encoded)
object
Response
array
Code Examples
Basic Request
Request with Filters
Using web3.js
Notes
- Returns all accounts owned by a specific program
- Filters can be applied to narrow down results
- Account data can be sliced to reduce response size
- The response is immediate as it reads from the current state
- Different encodings can be specified for account data
Best Practices
- Use filters to efficiently query specific accounts
- Consider using dataSlice to reduce response size
- Cache results when appropriate to reduce RPC load
- Handle large result sets with pagination
- Use appropriate encoding based on your needs
Common Errors
Use Cases
-
Program Account Analysis
-
Program Account Monitoring
-
Program Account Pagination