> For the complete documentation index, see [llms.txt](https://docs.thornode.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.thornode.io/infrastructure/fastgate-rpc.md).

# FastGate RPC

FastGate RPC is a high-performance Solana RPC endpoint optimized for account queries. It provides low-latency responses for `getProgramAccounts` and related methods.

## Supported Methods

| Method                         | Description                           |
| ------------------------------ | ------------------------------------- |
| `getProgramAccounts`           | Get all accounts owned by a program   |
| `getProgramAccountsV2`         | Paginated version with cursor support |
| `getMultipleAccounts`          | Get multiple accounts by pubkey       |
| `getTokenAccountsByOwner`      | Get SPL token accounts for a wallet   |
| `getTokenAccountsByOwnerV2`    | Paginated version with cursor support |
| `getTokenAccountsByDelegate`   | Get delegated SPL token accounts      |
| `getTokenAccountsByDelegateV2` | Paginated version with cursor support |
| `getTokenLargestAccounts`      | Get top 20 token holders for a mint   |
| `getLargestAccounts`           | Get top 20 accounts by lamports       |

## Endpoint

```
POST https://rpc.thornode.io/
Content-Type: application/json
```

## Authentication

Requests require IP allowlist authentication. See the Authentication section.

## Encoding

| Encoding      | Description                                        |
| ------------- | -------------------------------------------------- |
| `base64`      | Default. Standard base64                           |
| `base58`      | Base58 encoding                                    |
| `base64+zstd` | Zstd-compressed, base64-encoded (smallest payload) |

## REST Endpoint

A REST interface is also available:

```
GET /getProgramAccounts/{programId}?encoding=base64&limit=100&after=<pubkey>
```
