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

# JSON-RPC Relay

The [Hiero JSON-RPC Relay](https://github.com/hiero-ledger/hiero-json-rpc-relay) is an open-source project implementing the EVM JSON-RPC standard. It allows developers to interact with Hedera nodes using familiar EVM tools, allowing developers and users to deploy, query, and execute contracts as they usually would. Check out the interactive[ OpenRPC Specification](https://playground.open-rpc.org/?schemaUrl=https://raw.githubusercontent.com/hashgraph/hedera-json-rpc-relay/main/docs/openrpc.json\&uiSchema%5BappBar%5D%5Bui:splitView%5D=false\&uiSchema%5BappBar%5D%5Bui:input%5D=false\&uiSchema%5BappBar%5D%5Bui:examplesDropdown%5D=false) and a simple [list of endpoints](https://github.com/hiero-ledger/hiero-json-rpc-relay/blob/main/docs/rpc-api.md).

## HBAR decimal places

The Hiero JSON RPC Relay **`msg.value`** uses `18 decimals` when it returns HBAR. As a result, the **`gasPrice`** value returns 18 decimal places since it is only utilized from the JSON RPC Relay. Refer to the [HBAR page](/native/fundamentals/hbars) for a list of Hiero APIs and the decimal places they return.

## JSON RPC Relay Options for the Hedera Network

When interacting with smart contracts on Hedera, developers have several options for setting up a JSON RPC Relay. Each choice comes with unique advantages and trade-offs based on your project's needs, scalability, and operational preferences.

1. [**Hiero Local Node**](https://github.com/hiero-ledger/hiero-local-node)**:** It provides a built-in JSON RPC Relay and simulates the Hedera network environment locally. This option is ideal for quick prototyping, debugging, and isolated testing without external dependencies. It's ideal if you want to run extensive and repeated tests without having to worry about running out of testnet HBAR.
2. [**Self-hosted JSON RPC Relay**](https://github.com/hiero-ledger/hiero-json-rpc-relay/tree/main)**:** Running your own JSON RPC Relay offers complete control over configurations and network selection (testnet, previewnet, mainnet). It is best suited for projects requiring flexibility, high reliability, and scalability, especially in production environments.
3. [**Third-party JSON RPC Relay Services**](#community-hosted-json-rpc-relays)**:** Several third-party providers offer managed JSON RPC Relay services with different levels of reliability, service-level agreements (SLAs), and fee structures. These services remove infrastructure maintenance overhead, allowing teams to focus more on development (*you can find the list of supported services* [*below*](#community-hosted-json-rpc-relays)*).*

| Feature                       |    Hiero Local Node   | Self-hosted RPC Relay |             Third-party RPC Relay            |
| ----------------------------- | :-------------------: | :-------------------: | :------------------------------------------: |
| **Infrastructure Management** |        Minimal        |        Required       |                     None                     |
| **Reliability and Stability** |      High (local)     |          High         |                Variable by SLA               |
| **Scalability**               |       / (local)       |        Flexible       |             Variable by provider             |
| **Setup Complexity**          |     Low to Medium     |     Medium to High    |                      Low                     |
| **Ideal Use Case**            | Testing & Development |  Testing & Production | Builders who prefer convenience & Production |

<Check>
  Read the [**JSON RPC Relay Comparison blog**](https://hedera.com/blog/selecting-a-json-rpc-relay-for-your-project) post to learn more about the different options!
</Check>

## Community Hosted JSON-RPC Relays

Anyone in the community can set up their own JSON RPC relay that applications can use to deploy, query, and execute smart contracts. The list of community-hosted Hiero JSON RPC relays and endpoints for previewnet, testnet, and mainnet can be found in the table below, as well as their associated docs or websites.

#### JSON-RPC Relay Endpoints

<table><thead><tr><th>Network</th><th align="center">Chain ID</th><th align="center">Hashio RPC URL</th><th align="center">thirdweb RPC URL</th></tr></thead><tbody><tr><td><strong>Mainnet</strong></td><td align="center"><code>295</code></td><td align="center"><a href="https://mainnet.hashio.io/api">[https://mainnet.hashio.io/api](https://mainnet.hashio.io/api)</a></td><td align="center"><a href="https://295.rpc.thirdweb.com">[https://295.rpc.thirdweb.com](https://295.rpc.thirdweb.com)</a></td></tr><tr><td><strong>Testnet</strong></td><td align="center"><code>296</code></td><td align="center"><a href="https://testnet.hashio.io/api">[https://testnet.hashio.io/api](https://testnet.hashio.io/api)</a></td><td align="center"><a href="https://296.rpc.thirdweb.com">[https://296.rpc.thirdweb.com](https://296.rpc.thirdweb.com)</a></td></tr><tr><td><strong>Previewnet</strong></td><td align="center"><code>297</code></td><td align="center"><a href="https://previewnet.hashio.io/api">[https://previewnet.hashio.io/api](https://previewnet.hashio.io/api)</a>\*\*</td><td align="center"><a href="https://297.rpc.thirdweb.com">[https://297.rpc.thirdweb.com](https://297.rpc.thirdweb.com)</a></td></tr></tbody></table>

<Check>
  ### 🚨 **PLEASE NOTE**

  **Hashio** is for development and **testing purposes only**. Production use cases are strongly encouraged to use [commercial-grade JSON-RPC relays](#community-hosted-json-rpc-relays) or host their own instance of the [Hiero JSON-RPC Relay](https://github.com/hiero-ledger/hiero-json-rpc-relay).
</Check>

<Columns cols={2}>
  <Card title="Arkhia" href="https://www.arkhia.io/features/#api-services" arrow img="https://mintcdn.com/hedera-0c6e0218/8G8OmD8V7839xwOm/images/core-concepts/smart-contracts/json-rpc-replay/json-rpc-replay-1.png?fit=max&auto=format&n=8G8OmD8V7839xwOm&q=85&s=98c486c0c8163a4583d5e85292d18ea0" width="500" height="500" data-path="images/core-concepts/smart-contracts/json-rpc-replay/json-rpc-replay-1.png" />

  <Card title="Hashio" href="https://www.hashgraph.com/hashio/" arrow img="https://mintcdn.com/hedera-0c6e0218/8G8OmD8V7839xwOm/images/core-concepts/smart-contracts/json-rpc-replay/json-rpc-replay-2.png?fit=max&auto=format&n=8G8OmD8V7839xwOm&q=85&s=0f99bc74449d30116ce1e0a4df9711c4" width="500" height="500" data-path="images/core-concepts/smart-contracts/json-rpc-replay/json-rpc-replay-2.png" />

  <Card title="Hgraph" href="https://docs.hgraph.com/category/json-rpc" arrow img="https://mintcdn.com/hedera-0c6e0218/8G8OmD8V7839xwOm/images/core-concepts/smart-contracts/json-rpc-replay/json-rpc-replay-3.png?fit=max&auto=format&n=8G8OmD8V7839xwOm&q=85&s=6266ce8ff5783959af97ef70f19136aa" width="500" height="500" data-path="images/core-concepts/smart-contracts/json-rpc-replay/json-rpc-replay-3.png" />

  <Card title="Linkpool" href="https://linkpool.com/" arrow img="https://mintcdn.com/hedera-0c6e0218/8G8OmD8V7839xwOm/images/core-concepts/smart-contracts/json-rpc-replay/json-rpc-replay-4.png?fit=max&auto=format&n=8G8OmD8V7839xwOm&q=85&s=ec4efab8e2fd8aff06ed26764b0048f0" width="500" height="500" data-path="images/core-concepts/smart-contracts/json-rpc-replay/json-rpc-replay-4.png" />

  <Card title="Run Your Own Relay" href="https://github.com/hiero-ledger/hiero-json-rpc-relay?tab=readme-ov-file#hedera-json-rpc-relay" arrow img="https://mintcdn.com/hedera-0c6e0218/8G8OmD8V7839xwOm/images/core-concepts/smart-contracts/json-rpc-replay/json-rpc-replay-5.png?fit=max&auto=format&n=8G8OmD8V7839xwOm&q=85&s=12828c5a58b903d48d4720d235644992" width="2560" height="1520" data-path="images/core-concepts/smart-contracts/json-rpc-replay/json-rpc-replay-5.png" />

  <Card title="thirdweb" href="https://thirdweb.com/hedera" arrow img="https://mintcdn.com/hedera-0c6e0218/8G8OmD8V7839xwOm/images/core-concepts/smart-contracts/json-rpc-replay/json-rpc-replay-6.png?fit=max&auto=format&n=8G8OmD8V7839xwOm&q=85&s=47de508107ada784792cfb7f0fa58a3d" width="675" height="675" data-path="images/core-concepts/smart-contracts/json-rpc-replay/json-rpc-replay-6.png" />

  <Card title="Validation Cloud" href="https://docs.validationcloud.io/about/hedera/json-rpc-relay-api" arrow img="https://mintcdn.com/hedera-0c6e0218/8G8OmD8V7839xwOm/images/core-concepts/smart-contracts/json-rpc-replay/json-rpc-replay-7.png?fit=max&auto=format&n=8G8OmD8V7839xwOm&q=85&s=a0f9be20d6a5d443c2b8aa7d8f568114" width="500" height="500" data-path="images/core-concepts/smart-contracts/json-rpc-replay/json-rpc-replay-7.png" />

  <Card title="QuickNode" href="https://www.quicknode.com/docs/hedera" arrow img="https://mintcdn.com/hedera-0c6e0218/8G8OmD8V7839xwOm/images/core-concepts/smart-contracts/json-rpc-replay/json-rpc-replay-8.png?fit=max&auto=format&n=8G8OmD8V7839xwOm&q=85&s=a6b2be9b853c15df1a873f2e6d73edf2" width="500" height="500" data-path="images/core-concepts/smart-contracts/json-rpc-replay/json-rpc-replay-8.png" />
</Columns>

<Info>
  ### **Note**

  If you want to add your hosted JSON-RPC relay to this list, please open an issue in the [Hedera docs GitHub repository](https://github.com/hashgraph/hedera-docs). Please visit the community-hosted websites to review any limitations specific to their instance.
</Info>

<Card title="How to Connect to the Hedera Network over RPC" href="/evm/tutorials/intermediate/json-rpc-connections" />

## FAQ

<Accordion title="Are there Community hosted relays?">
  * [**Hashio**](https://www.hashgraph.com/hashio/)
  * [**Arkhia**](https://www.arkhia.io/features/#api-services)
  * [**Validation Cloud**](https://docs.validationcloud.io/about/hedera/json-rpc-relay-api)
  * [**QuickNode**](https://www.quicknode.com/docs/hedera)
  * [**Hgraph**](https://docs.hgraph.com/category/json-rpc)
</Accordion>

<Accordion title="How do I connect to the Hedera Network over RPC?">
  The configuration guide to connect to the Hedera Network over RPC can be found [here](/evm/tutorials/intermediate/json-rpc-connections).
</Accordion>

<Accordion title="Where can I find the Hiero JSON-RPC relay endpoints?">
  The endpoints for previewnet, testnet, and mainnet can be found on [Hashio](https://www.hashgraph.com/hashio/), accessible through the [Hashgraph](https://www.hashgraph.com) website.
</Accordion>

<Accordion title="How does Hedera handle decimals in HBAR and gas prices?">
  The JSON-RPC Relay `msg.value` uses 18 decimals when it returns HBAR. The `gasPrice` value also returns 18 decimal places. *Check out the* [*HBAR page*](/native/fundamentals/hbars) *for the full list of Hedera APIs and their decimal representation.*
</Accordion>

<Accordion title="How can I contribute or log errors?">
  To contribute or log errors, please refer to the [Contributing Guide](/support/contributing) and submit them as issues in the [GitHub repository](https://github.com/hiero-ledger/hiero-json-rpc-relay).
</Accordion>
