get_program_accounts
Fetch accounts owned by a specified Solana program, with optional filters on data size and result count.
Instructions
Get all accounts owned by a program with optional filters
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"program_id": "<program_id>"
},
"name": "get_program_accounts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| program_id | Yes | Program address | |
| data_size | No | Filter by account data size in bytes | |
| limit | No | Max accounts to return (default 20) | |
| network | No | Solana network |