> For the complete documentation index, see [llms.txt](https://oja.gitbook.io/oja-coin/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://oja.gitbook.io/oja-coin/oja-smart-chain-ojx20/developers/blockchain-details/rpc.md).

# RPC

### Available Resources <a href="#available-resources" id="available-resources"></a>

#### Mainnet(ChainID 0x38, 56 in decimal) <a href="#mainnetchainid-0x38-56-in-decimal" id="mainnetchainid-0x38-56-in-decimal"></a>

NCRPC Endpoints:

Note

You can make `eth_getLogs` requests with up to a 5K block range. If you need to pull logs frequently, we recommend using WebSockets to push new logs to you when they are available.

Recommend

* <https://nc-dataseed.ojxscan.com/>

NCWebsocket Endpoints:

*Note: provided by community with no quality promised, building your node should be always the long term goal*

* wss\://nc-ws-node.ojxscan.com:443

#### Rate limit <a href="#rate-limit" id="rate-limit"></a>

The rate limit of OJX endpoint on Testnet and Mainnet is 10K/5min.

### Start <a href="#start" id="start"></a>

You can start the HTTP JSON-RPC with the --rpc flag

```
## mainnet
geth attach https://mainnet-rpc.ojxscan.com

## testnet
geth attach https://testnet-rpc.ojxscan.com/
```

### JSON-RPC methods <a href="#json-rpc-methods" id="json-rpc-methods"></a>

Please refer to this [wiki page](https://github.com/ethereum/wiki/wiki/JSON-RPC) or use Postman: <https://documenter.getpostman.com/view/4117254/ethereum-json-rpc/RVu7CT5J?version=latest>
