---
title: "Sonic API"
description: "Sonic Core RPC API，提供 HTTPS 与 WSS"
url: "https://blockreq.com/docs/zh-cn/build/api-reference/sonic/"
---

# Sonic API

Sonic 端点通过 HTTPS 与 WSS 提供 EVM JSON-RPC Core API。

## Endpoint

| Item | Value |
| --- | --- |
| Network | Sonic Mainnet |
| Protocol | EVM JSON-RPC 2.0 |
| Chain ID | `146` (`0x92`) |
| Public HTTPS | `https://sonic-rpc.blockreq.com/v1/rpc/public` |
| Private HTTPS | `https://sonic-rpc.blockreq.com/v1/rpc/BRQ1P0000000000000000000000000000000000000000000000000000000` |
| Public WSS | `wss://sonic-rpc.blockreq.com/v1/rpc/public` |
| Private WSS | `wss://sonic-rpc.blockreq.com/v1/rpc/BRQ1P0000000000000000000000000000000000000000000000000000000` |

这些 URL 使用产品路径 `/v1/rpc` 加上 `/public` 或 `BRQ1P0000000000000000000000000000000000000000000000000000000`。

## Core Methods

Sonic 使用 [EVM JSON-RPC 方法表](https://blockreq.com/docs/zh-cn/build/api-reference/evm-methods/index.md) 承接 `eth_*`、logs、transactions、WSS subscriptions 和 archive state。

BlockReq 目前不提供 Sonic 上 `eth_getProof`、`debug_*` 和 `trace_*` 的文档，也不保证其可用。
