> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blockrush.io/llms.txt
> Use this file to discover all available pages before exploring further.

# JSON-RPC 概览

| 端点名称            | 方法   | 描述                                    |
| --------------- | ---- | ------------------------------------- |
| sendTransaction | POST | 原生 Solana JSON-RPC sendTransaction 方法 |
| submitBatch     | POST | 非原子批量提交多笔已签名交易（每笔交易独立处理）              |
| sendBundle      | POST | 原子捆绑提交多笔已签名交易（任一交易失败则全部失败）            |

## 请求体

```json theme={null}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "<method_name>",
  "params": [
    "<param1>",
    "<param2>",
    ...
  ]
}
```

## 响应体

```json theme={null}
{
  "jsonrpc": "2.0",
  "result": "...",
  "id": 1
}
```

## API 对比与推荐

| 需求             | 推荐端点            | 描述             |
| -------------- | --------------- | -------------- |
| 单笔交易直接发送       | sendTransaction | 最简单的方式，返回交易签名  |
| 多笔交易，高吞吐量，相互独立 | submitBatch     | 非原子性，一笔失败不影响其他 |
| 多笔交易，需要强一致性    | sendBundle      | 全部成功或全部失败      |
| 健康检查和运维        | health          | 返回 ok          |

## 最佳实践

* 选择地理位置最近的端点以降低延迟
* 对于批量提交，根据需求在原子性（sendBundle）和吞吐量（submitBatch）之间取得平衡
