r5 (eth)
This namespace is an alias for the standard eth namespace, meaning that in most cases applications can call the same endpoints using either namespace with no issues. It is fully compatible with EVM dapps. All endpoints available under eth are available here with identical behaviour, except for one custom endpoint—r5_getSupply (also callable as eth_getSupply)—which returns the current total supply of tokens on the blockchain. Note that while the R5 Console recognises the r5 namespace, the JS Console only recognises eth, and the custom supply endpoint is only accessible via the R5 Console.
r5_accounts
Description: Returns a list of accounts managed by the node.
Sample Request:
Expected Response:
Parameters: None.
r5_blockNumber
Description: Returns the number of the most recent block in hexadecimal.
Sample Request:
Expected Response:
Parameters: None.
r5_coinbase
Description: Returns the coinbase (miner) address of the node.
Sample Request:
Expected Response:
Parameters: None.
r5_compile
Description: Provides on-chain compilation services. This endpoint has sub-methods for different languages.
Sub-methods:
r5_compile.lll
r5_compile.serpent
r5_compile.solidity
Example (solidity):
Sample Request:
Expected Response:
Parameters:
source (string): Source code to be compiled.
Similar usage applies for LLL and Serpent sub-methods.
r5_defaultAccount
Description: Returns the default account used for transactions, if set.
Sample Request:
Expected Response:
Parameters: None.
r5_defaultBlock
Description:
Returns the default block identifier used for call and query methods (typically "latest"
).
Sample Request:
Expected Response:
Parameters: None.
r5_gasPrice
Description: Returns the current gas price (in wei) as a hexadecimal string.
Sample Request:
Expected Response:
Parameters: None.
r5_getSupply
Description:
Returns the current total supply of tokens on the blockchain as a hexadecimal string. This endpoint is unique to the R5 implementation and is available as both r5_getSupply
and eth_getSupply
.
Important: This endpoint is not available in the JS Console and must be called via the R5 Console.
Sample Request (R5 Console):
Expected Response:
Parameters: None.
r5_hashrate
Description: Returns the current mining hashrate as a hexadecimal number.
Sample Request:
Expected Response:
Parameters: None.
r5_maxPriorityFeePerGas
Description: Returns the current maximum priority fee per gas (in wei) as a hexadecimal string.
Sample Request:
Expected Response:
Parameters: None.
r5_mining
Description: Indicates whether the node is currently mining.
Sample Request:
Expected Response:
Parameters: None.
r5_pendingTransactions
Description: Returns an array of transactions that are currently pending.
Sample Request:
Expected Response:
Parameters: None.
r5_protocolVersion
Description: Returns the current protocol version as a hexadecimal string.
Sample Request:
Expected Response:
Parameters: None.
r5_syncing
Description: Indicates whether the node is currently synchronising with the network. Returns either false or a sync object.
Sample Request:
Expected Response (if not syncing):
Parameters: None.
r5_call
Description: Executes a message call immediately without creating a transaction. Useful for reading contract data.
Sample Request:
Expected Response:
Parameters:
callObject (object): Contains keys such as
from
,to
, anddata
.blockIdentifier (string): A block number or tag (e.g.,
"latest"
).
r5_chainId
Description: Returns the chain ID of the network as a hexadecimal string.
Sample Request:
Expected Response:
Parameters: None.
r5_contract
Description: Creates a contract instance using a given ABI for interaction with smart contracts.
Sample Request:
Expected Response: &#xNAN;Returns a contract object (typically used by client libraries).
Parameters:
abi (array): The Application Binary Interface describing the contract.
r5_createAccessList
Description: Creates an access list for a transaction to reduce gas costs for state access.
Sample Request:
Expected Response: &#xNAN;Returns an object containing the access list and an estimated gas value.
Parameters:
transactionObject (object)
blockIdentifier (string)
r5_estimateGas
Description: Estimates the gas required to execute a transaction.
Sample Request:
Expected Response:
Parameters:
transactionObject (object)
r5_feeHistory
Description: Returns historical gas fee data over a specified number of blocks. Useful for fee estimation.
Sample Request:
Expected Response: &#xNAN;Returns an object with arrays of gas usage and fee percentiles.
Parameters:
blockCount (string or number)
endBlock (string)
rewardPercentiles (array)
r5_fillTransaction
Description: Fills in missing transaction fields (like nonce and gasPrice) with default node values.
Sample Request:
Expected Response: &#xNAN;Returns a complete transaction object with all parameters filled.
Parameters:
transactionObject (object)
r5_filter
Description: Creates a new filter object for monitoring logs, blocks, or pending transactions.
Sample Request:
Expected Response:
Parameters:
options (object): Filter options (e.g.,
fromBlock
,address
).callback (function, optional): Callback for filter events.
filterCreationErrorCallback (function, optional): Callback for error events.
r5_getAccounts
Description: Retrieves the list of accounts available on the node.
Sample Request:
Expected Response: &#xNAN;Similar to r5_accounts.
Parameters: None.
r5_getBalance
Description: Returns the balance of a specified account at a given block.
Sample Request:
Expected Response:
Parameters:
address (string)
block (string)
r5_sendTransaction
Description: Submits a new transaction to the network from one account to another.
Sample Request:
Expected Response:
Parameters:
transactionObject (object): Contains fields such as
from
,to
,value
,gas
, etc.
r5_sendRawTransaction
Description: Sends a signed, RLP-encoded transaction to the network.
Sample Request:
Expected Response: Returns the transaction hash as a hexadecimal string._
Parameters:
signedTransactionData (string)
r5_sign
Description: Signs arbitrary data using the private key of a given account. Used to prove account ownership.
Sample Request:
Expected Response:
Parameters:
address (string)
data (string)
r5_signTransaction
Description: Signs a transaction object with the private key of the specified account.
Sample Request:
Expected Response: &#xNAN;Returns an object containing the signed transaction (RLP encoded) and its hash.
Parameters:
transactionObject (object)
r5_submitTransaction
Description: Submits a transaction for processing on the network. This is similar in function to r5_sendTransaction.
Sample Request: &#xNAN;Similar to r5_sendTransaction.
Parameters:
transactionObject (object)
r5_resend
Description: Resends a transaction with updated parameters (typically used when a transaction is dropped or stalled).
Sample Request:
Expected Response: &#xNAN;Returns a new transaction hash.
Parameters:
transactionHash (string)
options (object)
r5_sendIBANTransaction
Description: Sends a transaction using an IBAN-formatted address.
Sample Request:
Expected Response: &#xNAN;Returns the transaction hash.
Parameters:
transactionObject (object)
r5_getTransaction
Description: Retrieves a transaction by its hash.
Sample Request:
Expected Response: &#xNAN;Returns a transaction object with full details.
Parameters:
transactionHash (string)
r5_getTransactionCount
Description: Returns the number of transactions sent from an address.
Sample Request:
Expected Response:
Parameters:
address (string)
block (string)
r5_getTransactionFromBlock
Description: Returns a transaction from a block by its index.
Sample Request:
Expected Response: &#xNAN;Returns a transaction object.
Parameters:
block (string)
transactionIndex (number)
r5_getTransactionReceipt
Description: Returns the receipt for a transaction by its hash, including status, gas used, and logs.
Sample Request:
Expected Response:
Parameters:
transactionHash (string)
r5_getRawTransaction
Description: Retrieves the raw, RLP-encoded transaction data for a given transaction hash.
Sample Request:
Expected Response: &#xNAN;Returns a hexadecimal string of raw transaction data.
Parameters:
transactionHash (string)
r5_getRawTransactionFromBlock
Description: Retrieves the raw, RLP-encoded transaction data from a block by index.
Sample Request:
Expected Response: &#xNAN;Returns a hexadecimal string representing the raw transaction.
Parameters:
block (string)
transactionIndex (number)
r5_getStorageAt
Description: Returns the value stored at a given storage slot for an account at a specified block.
Sample Request:
Expected Response:
Parameters:
address (string)
position (string)
block (string)
r5_getSyncing
Description:
Returns an object with synchronisation details, or false
if the node is fully synced.
Sample Request:
Expected Response:
&#xNAN;Either false
or a sync status object.
Parameters: None.
r5_getWork
Description: Provides the current mining work package including the header hash, seed hash, and target difficulty.
Sample Request:
Expected Response:
Parameters: None.
r5_iban
Description: Converts an International Bank Account Number (IBAN) to a hexadecimal address.
Sample Request:
Expected Response:
Parameters:
iban (string)
r5_icapNamereg
Description: Interacts with the ICAP naming registry, allowing conversion between names and addresses based on the ICAP standard.
Sample Request: &#xNAN;Depends on client implementation.
Parameters: &#xNAN;As defined by the node's ICAP Namereg functionality.
r5_namereg
Description: Interacts with the node’s naming registry to resolve human-readable names to addresses.
Sample Request: &#xNAN;Depends on client implementation.
Parameters: &#xNAN;As defined by the node's Namereg functionality.
r5_resend
Description: Resends a previously submitted transaction with updated parameters, such as a new gas price.
Sample Request:
Expected Response: &#xNAN;Returns a new transaction hash if successful.
Parameters:
transactionHash (string)
options (object)
r5_sendIBANTransaction
Description: Sends a transaction using an IBAN-formatted address rather than a standard hexadecimal address.
Sample Request:
Expected Response: &#xNAN;Returns the transaction hash.
Parameters:
transactionObject (object)
r5_getTransactionReceipt
Description: Returns the receipt of a transaction by its hash, including status, gas used, and logs.
Sample Request:
Expected Response:
Parameters:
transactionHash (string)
r5_getUncle
Description: Retrieves an uncle block by its index from a specified block.
Sample Request:
Expected Response: &#xNAN;Returns an uncle block object.
Parameters:
block (string)
uncleIndex (number)
r5_getCode
Description: Returns the EVM bytecode at a given address at a specific block.
Sample Request:
Expected Response: &#xNAN;Returns a hexadecimal string representing the contract code.
Parameters:
address (string)
block (string)
r5_getCoinbase
Description: Returns the coinbase (mining) address of the node. (Same as r5_coinbase.)
Sample Request:
Expected Response: &#xNAN;Same as r5_coinbase.
Parameters: None.
r5_getCompilers
Description: Returns a list of available compilers for on-chain contract compilation.
Sample Request:
Expected Response: &#xNAN;Returns an array of compiler names and versions.
Parameters: None.
r5_getGasPrice
Description: Returns the current gas price in wei as a hexadecimal string. (Same as r5_gasPrice.)
Sample Request: &#xNAN;Same as r5_gasPrice.
Parameters: None.
r5_getHashrate
Description: Returns the current mining hashrate as a hexadecimal string. (Same as r5_hashrate.)
Sample Request: &#xNAN;Same as r5_hashrate.
Parameters: None.
r5_getHeaderByHash
Description: Returns the block header for a block identified by its hash.
Sample Request:
Expected Response: &#xNAN;Returns an object containing header fields (e.g., parentHash, timestamp, etc.).
Parameters:
headerHash (string)
r5_getHeaderByNumber
Description: Returns the block header for a given block number or tag.
Sample Request:
Expected Response: &#xNAN;Returns an object containing header fields.
Parameters:
block (string)
r5_getLogs
Description: Returns logs matching a given filter object.
Sample Request:
Expected Response: &#xNAN;Returns an array of log objects.
Parameters:
filterObject (object)
r5_getMaxPriorityFeePerGas
Description: Returns the current maximum priority fee per gas (in wei) as a hexadecimal string. (Same as r5_maxPriorityFeePerGas.)
Sample Request: &#xNAN;Same as r5_maxPriorityFeePerGas.
Parameters: None.
r5_getMining
Description: Returns whether the node is actively mining. (Same as r5_mining.)
Sample Request: &#xNAN;Same as r5_mining.
Parameters: None.
r5_getPendingTransactions
Description: Returns an array of transactions that are pending.
Sample Request: &#xNAN;Same as r5_pendingTransactions.
Parameters: None.
r5_getProof
Description: Returns a Merkle proof for a given account and its storage keys at a specified block.
Sample Request:
Expected Response: &#xNAN;Returns an object containing the account proof and storage proofs.
Parameters:
address (string)
storageKeys (array of string)
block (string)
r5_getProtocolVersion
Description: Returns the protocol version of the node as a hexadecimal string.
Sample Request: &#xNAN;Same as r5_protocolVersion.
Parameters: None.
r5_getRawTransaction
Description: Retrieves the raw RLP-encoded transaction data for a given transaction hash.
Sample Request: &#xNAN;Same as r5_getRawTransaction above.
Parameters:
transactionHash (string)
r5_getRawTransactionFromBlock
Description: Retrieves the raw RLP-encoded transaction data from a block by transaction index.
Sample Request: &#xNAN;Same as r5_getRawTransactionFromBlock above.
Parameters:
block (string)
transactionIndex (number)
r5_getStorageAt
Description: Returns the value at a given storage position for a contract at a specified block.
Sample Request: &#xNAN;Same as r5_getStorageAt above.
Parameters:
address (string)
position (string)
block (string)
r5_getSyncing
Description: Returns the synchronisation status of the node.
Sample Request: &#xNAN;Same as r5_getSyncing above.
Parameters: None.
r5_getTransaction
Description: Retrieves a transaction by its hash.
Sample Request: &#xNAN;Same as r5_getTransaction above.
Parameters:
transactionHash (string)
r5_getTransactionCount
Description: Returns the number of transactions sent from an address.
Sample Request: &#xNAN;Same as r5_getTransactionCount above.
Parameters:
address (string)
block (string)
r5_getTransactionFromBlock
Description: Returns a transaction from a block by its index.
Sample Request: &#xNAN;Same as r5_getTransactionFromBlock above.
Parameters:
block (string)
transactionIndex (number)
r5_getTransactionReceipt
Description: Returns the transaction receipt for a given transaction hash.
Sample Request: &#xNAN;Same as r5_getTransactionReceipt above.
Parameters:
transactionHash (string)
r5_getUncle
Description: Retrieves an uncle block from a specified block by its index.
Sample Request: &#xNAN;Same as r5_getUncle above.
Parameters:
block (string)
uncleIndex (number)
r5_getWork
Description: Provides the current mining work package (header hash, seed hash, target difficulty).
Sample Request: &#xNAN;Same as r5_getWork above.
Parameters: None.
r5_iban
Description: Converts an IBAN-formatted string into a hexadecimal address.
Sample Request: &#xNAN;Same as r5_iban above.
Parameters:
iban (string)
r5_icapNamereg
Description: Interacts with the ICAP naming registry to resolve names to addresses based on the ICAP standard.
Sample Request: &#xNAN;Depends on client implementation.
Parameters: &#xNAN;As defined by the node.
r5_namereg
Description: Interacts with the node’s naming registry to resolve human-readable names to addresses.
Sample Request: &#xNAN;Depends on client implementation.
Parameters: &#xNAN;As defined by the node.
r5_resend
Description: Resends a previously submitted transaction with updated parameters.
Sample Request: &#xNAN;Same as r5_resend above.
Parameters:
transactionHash (string)
options (object)
r5_sendIBANTransaction
Description: Sends a transaction using an IBAN-formatted address.
Sample Request: &#xNAN;Same as r5_sendIBANTransaction above.
Parameters:
transactionObject (object)
r5_sendRawTransaction
Description: Sends an already signed, RLP-encoded transaction to the network.
Sample Request: &#xNAN;Same as r5_sendRawTransaction above.
Parameters:
signedTransactionData (string)
r5_sendTransaction
Description: Sends a transaction by broadcasting it to the network.
Sample Request: &#xNAN;Same as r5_sendTransaction above.
Parameters:
transactionObject (object)
r5_sign
Description: Signs data with the private key of a specified account.
Sample Request: &#xNAN;Same as r5_sign above.
Parameters:
address (string)
data (string)
r5_signTransaction
Description: Signs a transaction with the private key of the specified account.
Sample Request: &#xNAN;Same as r5_signTransaction above.
Parameters:
transactionObject (object)
r5_submitTransaction
Description: Submits a transaction for inclusion in the blockchain. This is functionally similar to r5_sendTransaction.
Sample Request: &#xNAN;Same as r5_sendTransaction above.
Parameters:
transactionObject (object)
r5_submitWork
Description: Submits a computed proof-of-work to the consensus engine for validation.
Sample Request:
Expected Response:
Parameters:
nonce (string)
mixDigest (string)
headerhash (string)
Last updated