# RPCX Quickstart: Custom Solana RPC Methods

> Have your AI agent write a custom Solana RPC method over live Solana data with the RPCX MCP server, then save it, run it, and call it as rpcx_<name>.

Canonical: https://nolimitnodes.com/docs/quickstarts/rpcx

RPCX lets you write your own read-only methods over live Solana data and call them as JSON-RPC methods. A method reads the latest Solana data, up to the newest blocks: transactions, instructions, logs, SOL and token balance changes, blocks, and the current state of accounts and token holdings, for many addresses at once, and returns the answer in one request. See [Live tables](/docs/api-reference/rpcx/tables). This page takes you from an empty RPCX page to a saved method you can call.

## Before you start

You need an active Pro, Ultra, Max, or Enterprise [plan](https://nolimitnodes.com/pricing), and a workspace role that can manage resources. Validating a method is free. Running one is billed in compute units (CU), at $1 per 1,000 CU. Each paid plan includes a monthly RPCX allowance, from 20,000 CU ($20) on Pro to 100,000 CU ($100) on Enterprise. Beyond it, you buy CU on the RPCX page; usage never charges your wallet. See [Plan allowance and bought CU](/docs/api-reference/rpcx/errors-limits#plan-allowance-and-bought-cu).

  ### Open the RPCX page

Sign in to the [dashboard](https://dash.nolimitnodes.com/app) and open the **RPCX** page. The **Compute units** panel at the top shows the CU you have: your plan's allowance for this month and any CU you bought.

  ### Generate an MCP key

In **Use with an AI agent**, select **Generate key**. Copy the key now. It is shown once.

  ### Add the key to your coding agent

The page shows a ready command for Claude Code. Run it in your terminal.

  ### Ask for a method

Describe the data you want. The agent reads the tables, the rules, and the method language from the MCP server, validates its method, and ends its answer with the method text to paste.

  ### Paste, save, run

In the RPCX page, select **New Method** and paste the text into the **Code** tab. The name and params fill in. Enter test values in **Params**, select **Save**, then **Run**.

## Connect Claude Code

```bash
claude mcp add --transport http rpcx https://rpcx.mainnet.solana.nolimitnodes.com/mcp \
  --header "Authorization: Bearer rpcx_mcp_YOUR_KEY"
```

Copy the exact command from the RPCX page. It already contains your key. For other MCP clients, see [RPCX MCP server](/docs/api-reference/rpcx/mcp).

## Ask the agent

A prompt like this is enough:

```text
Using the rpcx MCP, write a method that returns every transaction of a
list of wallets in a time window, newest first. Wallets and window as params.
```

The agent answers with a method like this one:

```text RPCX method
method txsFor(wallets: pubkey[] "Accounts", from: time, to: time) {
  from live_transactions
  filter (address | in wallets) && ts >= from && ts  Note: The chain tables hold the latest Solana data, up to the newest blocks. Older history is not available. `live_accounts` and `live_token_accounts` show the current state, not a history. See [Live tables](/docs/api-reference/rpcx/tables).

## Next steps

  ### [Writing methods](/docs/api-reference/rpcx/writing-methods)

The method language, the correctness rules, and the params.

  ### [RPCX MCP server](/docs/api-reference/rpcx/mcp)

Connect a coding agent and see the tools it gets.

  ### [Method language reference](/docs/api-reference/rpcx/language)

Every step, function, operator, and param type, with examples.

  ### [Live tables](/docs/api-reference/rpcx/tables)

The nine tables, keys and ranges, and bulk reads.

  ### [Examples by table](/docs/api-reference/rpcx/popular-tables)

An example method for each live table.

  ### [Errors, limits, and billing](/docs/api-reference/rpcx/errors-limits)

Error codes, per-query limits, CU, and the plan allowance.

  ### [RPCX product page](https://nolimitnodes.com/products/rpcx)

What RPCX is, the data it reads, and what each plan includes.
