Standard Ethereum
Last updated
Last updated
While Phron supports a wide range of Ethereum JSON-RPC methods, not all are available, and some return default values—particularly those related to Ethereum’s Proof of Work (PoW) consensus mechanism. This guide provides a detailed list of the Ethereum JSON-RPC methods supported by Phron, allowing developers to easily reference the available functionality when interacting with Phron’s Ethereum-compatible blockchain.
The basic JSON-RPC methods from the Ethereum API supported by Phron are:
— returns 1
by default
— returns an object with data about the sync status or false
— returns "0x0"
by default
— returns the latest block author. Not necessarily a finalized block
— returns false
by default
— returns the chain ID used for signing at the current block
— returns the base fee per unit of gas used. This is currently the minimum gas price for each network
— returns a list of addresses owned by the client
— returns the highest available block number
— returns the balance of the given address
— returns the content of the storage at a given address
— returns information about the block of the given hash, including baseFeePerGas
on post-London blocks
— returns information about the block specified by block number, including baseFeePerGas
on post-London blocks
— returns all transaction receipts for a given block
— returns the number of transactions sent from the given address (nonce)
— returns the number of transactions in a block with a given block hash
— returns the number of transactions in a block with a given block number
— returns "0x0"
by default
— returns "0x0"
by default
— returns the code at the given address at the given block number
— creates a new message call transaction or a contract creation, if the data field contains code. Returns the transaction hash or the zero hash if the transaction is not yet available
— creates a new message call transaction or a contract creation for signed transactions. Returns the transaction hash or the zero hash if the transaction is not yet available
— executes a new message call immediately without creating a transaction on the blockchain, returning the value of the executed call
Phron supports the use of the optional state override set object. This address-to-state mapping object allows the user to specify some state to be ephemerally overridden before executing a call to eth_call
. The state override set is commonly used for tasks like debugging smart contracts. Visit the documentation to learn more
— returns an estimated amount of gas necessary for a given transaction to succeed. You can optionally specify a gasPrice
or maxFeePerGas
and maxPriorityFeePerGas
- returns an estimate of how much priority fee, in Wei, is needed for inclusion in a block
— returns baseFeePerGas
, gasUsedRatio
, oldestBlock
, and reward
for a specified range of up to 1024 blocks
— returns the information about a transaction with a given hash. EIP-1559 transactions have maxPriorityFeePerGas
and maxFeePerGas
fields
— returns information about a transaction at a given block hash and a given index position. EIP-1559 transactions have maxPriorityFeePerGas
and maxFeePerGas
fields
— returns information about a transaction at a given block number and a given index position. EIP-1559 transactions have maxPriorityFeePerGas
and maxFeePerGas
fields
— returns the transaction receipt of a given transaction hash
— returns null
by default
— returns null
by default
— returns an array of all logs matching a given filter object
— creates a filter object based on the input provided. Returns a filter ID
— creates a filter in the node to notify when a new block arrives. Returns a filter ID
- creates a filter in the node to notify when new pending transactions arrive. Returns a filter ID
— polling method for filters (see methods above). Returns an array of logs that occurred since the last poll
— returns an array of all the logs matching the filter with a given ID
— uninstall a filter with a given ID. It should be used when polling is no longer needed. Filters timeout when they are not requested using eth_getFilterChanges
after some time
Phron does not support the following Ethereum API JSON-RPC methods:
- returns the account and storage values of the specified account including the Merkle-proof
- returns the expected base fee for blobs in the next block
- creates an EIP-2930 type accessList
based on a given transaction object
- allows the user to sign an arbitrary hash to be sent at a later time. Presents a as the arbitrary hash can be fraudulently applied to other transactions
- allows the user to sign a transaction to be sent at a later time. It is rarely used due to associated security risks