#### getTokenAccountsByOwner

205 + 10 a row past 20 · FREE 0.01/s, DEV 0.075/s, BUSINESS 125/s, PRO 250/s

| param | type |   |   |
|---|---|---|---|
| owner | pubkey | req |  |
| filter | {mint} or {programId} | req | exactly one of the two, a pubkey |
| config | {commitment?, encoding?, dataSlice?, minContextSlot?} | opt | encoding: base58, base64, base64+zstd or jsonParsed |

```
{"jsonrpc":"2.0","id":1,"method":"getTokenAccountsByOwner","params":["<owner>",{"mint":"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v"},{"encoding":"base64"}]}
```

**answer**: {context: {apiVersion, slot}, value: [{account: {data: [string], executable, lamports, owner, rentEpoch, space}, pubkey}]}

**refuses**: 200 -32010 program not provisioned; 429 -32010 scan index temporarily unavailable; 400 -32600 sent in a batch; 501 -32004 a commitment or encoding not served
