Docs · method · Solana
getTokenAccountsByOwner
| Units per call | 2 (heavy) |
|---|---|
| Cache | never |
| Rule | Heavy (2 units). |
| Chains | Solana Mainnet |
| Specification | https://solana.com/docs/rpc/http |
Example
curl -s https://flexyield.io/rpc/solana_mainnet \
-H "Authorization: Bearer $FLEXYIELD_KEY" -H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"getTokenAccountsByOwner","params":["TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"]}'
Questions
How many units does getTokenAccountsByOwner cost?
2 units per call (heavy class).
All methods: methods and limits · docs · AI agents: the same call is the rpc_call MCP tool.