JSON-RPC API
Neo X is in sync with most Ethereum JSON-RPC methods, but there are some differences to note:
eth_chainId— returns the chain ID of Neo X.eth_hashrate— returns0x0by default.eth_coinbase— returns theGovRewardcontract 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— returnsnullby default.eth_getUncleByBlockNumberAndIndex— returnsnullby default.eth_getUncleCountByBlockHash— returns0by default.eth_getUncleCountByBlockNumber— returns0by 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 additionalgastip/gaspricethat anti-mev transactions should pay for the service.eth_maxEnvelopeGasLimit- returns the maximumgaslimitthat an Envelope can declare for itself.
Last updated