# JSON-RPC

The standard way to send transactions through Nozomi. Compatible with any Solana client — just replace your RPC URL with the Nozomi endpoint.

## Request

| Field        | Value                          |
| ------------ | ------------------------------ |
| Method       | `POST`                         |
| Path         | `/?c=<YOUR_API_KEY>`           |
| Content-Type | `application/json`             |
| Encoding     | **base64** (must be specified) |

**Important:** Solana defaults to base58 encoding. You must explicitly set `"encoding": "base64"` or you will get malformed transaction errors.

## Request Body

```json
{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "sendTransaction",
    "params": [
        "<YOUR_BASE_64_ENCODED_TXN_BYTES>",
        { "encoding": "base64" }
    ]
}
```

## Response

Returns the transaction signature as a JSON-RPC result on success.

```json
{
    "jsonrpc": "2.0",
    "id": 1,
    "result": "<TRANSACTION_SIGNATURE>"
}
```

## When to Use

Use JSON-RPC when you want a drop-in replacement for your existing Solana RPC. It returns a transaction signature and works with standard Solana client libraries.

For lower latency in browser clients or performance-sensitive backends, consider [API v2](/nozomi/transaction-submission-api-v2.md) instead.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://use.temporal.xyz/nozomi/transaction-submission-json-rpc.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
