# JSON-RPC API

Neo X is in sync with most [Ethereum JSON-RPC](https://ethereum.org/en/developers/docs/apis/json-rpc/) methods, but there are some differences to note:

* `eth_chainId` — returns the chain ID of Neo X.
* `eth_hashrate` — returns `0x0` by default.
* `eth_coinbase` — returns the `GovReward` contract address.
* `eth_gasPrice` — returns the maximum value of the current network GAS price and the lowest allowed GAS price by Neo X Policy.
* `eth_maxPriorityFeePerGas` — returns an estimated value of priority fee to get a transaction allowed by Neo X Policy and in the current block.
* `eth_getUncleByBlockHashAndIndex` — returns `null` by default.
* `eth_getUncleByBlockNumberAndIndex` — returns `null` by default.
* `eth_getUncleCountByBlockHash` — returns `0` by default.
* `eth_getUncleCountByBlockNumber` — returns `0` by default.
* `eth_getCachedTransaction` - returns the cached and signed secret transactions. It requires a valid sender signature in parameters, and only works on nodes configured with `--txpool.amevcache`;
* `eth_envelopeFee` - returns the minimum additional `gastip`/`gasprice` that anti-mev transactions should pay for the service.
* `eth_maxEnvelopeGasLimit` - returns the maximum `gaslimit` that an Envelope can declare for itself.
* `eth_getBlobSidecars` - returns the blob data of a block. It requires a valid block hash or number as the parameter.
* `eth_getBlobSidecarByTxHash` - returns the blob data of a transaction. It requires a valid transaction hash as the parameter.


---

# 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://xdocs.ngd.network/development/json-rpc-api.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.
