Neo X Documentation
  • Overview
  • Development
    • Development Environment Information
    • Running a Neo X Node
    • JSON-RPC API
  • Bridge
    • How Native Bridge Works
      • Hash Chain and Decoupled Relayer
      • Architecture
      • Technical Flow
    • Quick Start: Bridging Assets
  • Integrations
    • The Graph
      • Introduction
      • Quick Start
    • Oracles
      • Supra
  • Governance
    • Governance in Neo X
    • Neo X System Contracts
  • Security
    • Anti-MEV Protection
      • Threshold Encryption
      • Envelope Transaction
      • dBFT Enhancement
  • FAQ
    • Transaction Underpriced Error
Powered by GitBook
On this page
  1. Development

JSON-RPC API

PreviousRunning a Neo X NodeNextHow Native Bridge Works

Last updated 1 month ago

Neo X is in sync with most 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_getEncryptedTransaction - returns the cached and signed secret transactions. It requires a valid sender signature in parameters, and only works on nodes configured with --txpool.signaturecache;

  • 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.

Ethereum JSON-RPC