R5 Network
WebsiteR5 LabsGitHub
  • Getting Started
    • Hello & Welcome!
  • About R5
    • Overview
    • R5 Components
    • Consensus Mechanism
    • zkNet (Privacy)
  • R5 Coin
  • R5 Tokenomics
  • Tutorials & Guides
    • Connect & Use R5
      • R5 Desktop Wallet
      • MetaMask
      • Rabby Wallet
      • Coinbase Wallet
    • zkNet Web Wallet
    • R5 Desktop Wallet
      • Interface Overview
      • Send a Transaction
      • Receive a Transaction
      • Backup Your Wallet
      • Retrieve Your Private Key
    • How To: Deploy a Node
    • How To: Mine R5
    • How To: GPU Mine R5
    • How To: Build R5 From Source
    • How To: Connect Local Nodes
  • For Developers
    • R5 SDK
      • R5 Relayer
      • R5 Console
      • JS Console
      • CLI Wallet
      • SCdev
      • SSL Proxy
    • Hardware Requirements
    • R5 Testnet
    • R5 Devnet
    • Local Networks
    • JSON-RPC API
      • admin
      • debug
      • ethash
      • miner
      • net
      • r5 (eth)
      • rpc
      • txpool
      • web3
    • Indexer API
    • zkNet API
    • Node Configuration
    • Ethash-R5
    • Smart Contracts
    • Wrapped R5 (Native)
    • Tokens & NFTs
  • Bug Bounty Program
  • Resources
    • Website
    • R5 Labs
    • R5 Labs GitHub
Powered by GitBook
On this page
  • r5_accounts
  • r5_blockNumber
  • r5_coinbase
  • r5_compile
  • r5_defaultAccount
  • r5_defaultBlock
  • r5_gasPrice
  • r5_getSupply
  • r5_hashrate
  • r5_maxPriorityFeePerGas
  • r5_mining
  • r5_pendingTransactions
  • r5_protocolVersion
  • r5_syncing
  • r5_call
  • r5_chainId
  • r5_contract
  • r5_createAccessList
  • r5_estimateGas
  • r5_feeHistory
  • r5_fillTransaction
  • r5_filter
  • r5_getAccounts
  • r5_getBalance
  • r5_sendTransaction
  • r5_sendRawTransaction
  • r5_sign
  • r5_signTransaction
  • r5_submitTransaction
  • r5_resend
  • r5_sendIBANTransaction
  • r5_getTransaction
  • r5_getTransactionCount
  • r5_getTransactionFromBlock
  • r5_getTransactionReceipt
  • r5_getRawTransaction
  • r5_getRawTransactionFromBlock
  • r5_getStorageAt
  • r5_getSyncing
  • r5_getWork
  • r5_iban
  • r5_icapNamereg
  • r5_namereg
  • r5_resend
  • r5_sendIBANTransaction
  • r5_getTransactionReceipt
  • r5_getUncle
  • r5_getCode
  • r5_getCoinbase
  • r5_getCompilers
  • r5_getGasPrice
  • r5_getHashrate
  • r5_getHeaderByHash
  • r5_getHeaderByNumber
  • r5_getLogs
  • r5_getMaxPriorityFeePerGas
  • r5_getMining
  • r5_getPendingTransactions
  • r5_getProof
  • r5_getProtocolVersion
  • r5_getRawTransaction
  • r5_getRawTransactionFromBlock
  • r5_getStorageAt
  • r5_getSyncing
  • r5_getTransaction
  • r5_getTransactionCount
  • r5_getTransactionFromBlock
  • r5_getTransactionReceipt
  • r5_getUncle
  • r5_getWork
  • r5_iban
  • r5_icapNamereg
  • r5_namereg
  • r5_resend
  • r5_sendIBANTransaction
  • r5_sendRawTransaction
  • r5_sendTransaction
  • r5_sign
  • r5_signTransaction
  • r5_submitTransaction
  • r5_submitWork
  1. For Developers
  2. JSON-RPC API

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:

{
  "jsonrpc": "2.0",
  "method": "r5_accounts",
  "params": [],
  "id": 1
}

Expected Response:

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": [
    "0x1234567890abcdef1234567890abcdef12345678",
    "0xabcdef1234567890abcdef1234567890abcdef12"
  ]
}

Parameters: None.


r5_blockNumber

Description: Returns the number of the most recent block in hexadecimal.

Sample Request:

{
  "jsonrpc": "2.0",
  "method": "r5_blockNumber",
  "params": [],
  "id": 1
}

Expected Response:

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0x1738"
}

Parameters: None.


r5_coinbase

Description: Returns the coinbase (miner) address of the node.

Sample Request:

{
  "jsonrpc": "2.0",
  "method": "r5_coinbase",
  "params": [],
  "id": 1
}

Expected Response:

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0x288be778b666ed006357ce12f455fbb3c7d0ec94"
}

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:

{
  "jsonrpc": "2.0",
  "method": "r5_compile.solidity",
  "params": ["pragma solidity ^0.4.0; contract Test { function get() public constant returns (uint) { return 1; } }"],
  "id": 1
}

Expected Response:

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "code": "0x6060604052341561000f57600080fd5b61017e8061001e6000396000f3006060604052600436106100565763ffffffff60e060020a60003504166360fe47b1811461005b5780636d4ce63c14610087575b600080fd5b341561006657600080fd5b61006e6100a7565b6040518082815260200191505060405180910390f35b341561009257600080fd5b61009a6100d1565b6040518082815260200191505060405180910390f35b60006020528060005260406000206000915090505481565b600060208190529081526040902054815600a165627a7a72305820...",
    "info": { "language": "Solidity", "languageVersion": "0.4.0", "compilerVersion": "0.4.26" }
  }
}

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:

{
  "jsonrpc": "2.0",
  "method": "r5_defaultAccount",
  "params": [],
  "id": 1
}

Expected Response:

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": null
}

Parameters: None.


r5_defaultBlock

Description: Returns the default block identifier used for call and query methods (typically "latest").

Sample Request:

{
  "jsonrpc": "2.0",
  "method": "r5_defaultBlock",
  "params": [],
  "id": 1
}

Expected Response:

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "latest"
}

Parameters: None.


r5_gasPrice

Description: Returns the current gas price (in wei) as a hexadecimal string.

Sample Request:

{
  "jsonrpc": "2.0",
  "method": "r5_gasPrice",
  "params": [],
  "id": 1
}

Expected Response:

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0x3b9aca00"
}

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.

The r5_getSupply endpoint only works on the N5 Network Mainnet. On the Testnet, Devnet, and Local Networks, you will get 200 response, but the supply count will not be accurate.

Sample Request (R5 Console):

{
  "jsonrpc": "2.0",
  "method": "r5_getSupply",
  "params": [],
  "id": 1
}

Expected Response:

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0x1aa014b60c11788a00000"
}

Parameters: None.


r5_hashrate

Description: Returns the current mining hashrate as a hexadecimal number.

Sample Request:

{
  "jsonrpc": "2.0",
  "method": "r5_hashrate",
  "params": [],
  "id": 1
}

Expected Response:

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0x0"
}

Parameters: None.


r5_maxPriorityFeePerGas

Description: Returns the current maximum priority fee per gas (in wei) as a hexadecimal string.

Sample Request:

{
  "jsonrpc": "2.0",
  "method": "r5_maxPriorityFeePerGas",
  "params": [],
  "id": 1
}

Expected Response:

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0x3b9aca00"
}

Parameters: None.


r5_mining

Description: Indicates whether the node is currently mining.

Sample Request:

{
  "jsonrpc": "2.0",
  "method": "r5_mining",
  "params": [],
  "id": 1
}

Expected Response:

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": true
}

Parameters: None.


r5_pendingTransactions

Description: Returns an array of transactions that are currently pending.

Sample Request:

{
  "jsonrpc": "2.0",
  "method": "r5_pendingTransactions",
  "params": [],
  "id": 1
}

Expected Response:

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": []
}

Parameters: None.


r5_protocolVersion

Description: Returns the current protocol version as a hexadecimal string.

Sample Request:

{
  "jsonrpc": "2.0",
  "method": "r5_protocolVersion",
  "params": [],
  "id": 1
}

Expected Response:

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0x41"
}

Parameters: None.


r5_syncing

Description: Indicates whether the node is currently synchronising with the network. Returns either false or a sync object.

Sample Request:

{
  "jsonrpc": "2.0",
  "method": "r5_syncing",
  "params": [],
  "id": 1
}

Expected Response (if not syncing):

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": false
}

Parameters: None.


r5_call

Description: Executes a message call immediately without creating a transaction. Useful for reading contract data.

Sample Request:

{
  "jsonrpc": "2.0",
  "method": "r5_call",
  "params": [
    {
      "from": "0x1234567890abcdef1234567890abcdef12345678",
      "to": "0xabcdef1234567890abcdef1234567890abcdef12",
      "data": "0x70a082310000000000000000000000001234567890abcdef1234567890abcdef12345678"
    },
    "latest"
  ],
  "id": 1
}

Expected Response:

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0x000000000000000000000000000000000000000000000000000000000000003e"
}

Parameters:

  • callObject (object): Contains keys such as from, to, and data.

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

{
  "jsonrpc": "2.0",
  "method": "r5_chainId",
  "params": [],
  "id": 1
}

Expected Response:

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0x87"
}

Parameters: None.


r5_contract

Description: Creates a contract instance using a given ABI for interaction with smart contracts.

Sample Request:

{
  "jsonrpc": "2.0",
  "method": "r5_contract",
  "params": [
    [
      {
        "constant": true,
        "inputs": [],
        "name": "myValue",
        "outputs": [{"name": "", "type": "uint256"}],
        "type": "function"
      }
    ]
  ],
  "id": 1
}

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:

{
  "jsonrpc": "2.0",
  "method": "r5_createAccessList",
  "params": [
    {
      "from": "0x1234567890abcdef1234567890abcdef12345678",
      "to": "0xabcdef1234567890abcdef1234567890abcdef12",
      "data": "0x..."
    },
    "latest"
  ],
  "id": 1
}

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:

{
  "jsonrpc": "2.0",
  "method": "r5_estimateGas",
  "params": [
    {
      "from": "0x1234567890abcdef1234567890abcdef12345678",
      "to": "0xabcdef1234567890abcdef1234567890abcdef12",
      "data": "0x..."
    }
  ],
  "id": 1
}

Expected Response:

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0x5208"
}

Parameters:

  • transactionObject (object)


r5_feeHistory

Description: Returns historical gas fee data over a specified number of blocks. Useful for fee estimation.

Sample Request:

{
  "jsonrpc": "2.0",
  "method": "r5_feeHistory",
  "params": ["0xA", "latest", [10, 20, 30]],
  "id": 1
}

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:

{
  "jsonrpc": "2.0",
  "method": "r5_fillTransaction",
  "params": [
    {
      "to": "0xabcdef1234567890abcdef1234567890abcdef12",
      "data": "0x..."
    }
  ],
  "id": 1
}

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:

{
  "jsonrpc": "2.0",
  "method": "r5_filter",
  "params": [
    {
      "fromBlock": "latest",
      "address": "0xabcdef1234567890abcdef1234567890abcdef12"
    }
  ],
  "id": 1
}

Expected Response:

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0x1"
}

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:

{
  "jsonrpc": "2.0",
  "method": "r5_getAccounts",
  "params": [],
  "id": 1
}

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:

{
  "jsonrpc": "2.0",
  "method": "r5_getBalance",
  "params": ["0x1234567890abcdef1234567890abcdef12345678", "latest"],
  "id": 1
}

Expected Response:

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0xde0b6b3a7640000"
}

Parameters:

  • address (string)

  • block (string)


r5_sendTransaction

Description: Submits a new transaction to the network from one account to another.

Sample Request:

{
  "jsonrpc": "2.0",
  "method": "r5_sendTransaction",
  "params": [
    {
      "from": "0x1234567890abcdef1234567890abcdef12345678",
      "to": "0xabcdef1234567890abcdef1234567890abcdef12",
      "value": "0xde0b6b3a7640000"
    }
  ],
  "id": 1
}

Expected Response:

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0xtransactionhash..."
}

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:

{
  "jsonrpc": "2.0",
  "method": "r5_sendRawTransaction",
  "params": ["0xf86c808504a817c800825208941234567890abcdef1234567890abcdef123456789094..."],
  "id": 1
}

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:

{
  "jsonrpc": "2.0",
  "method": "r5_sign",
  "params": [
    "0x1234567890abcdef1234567890abcdef12345678",
    "0xdeadbeef"
  ],
  "id": 1
}

Expected Response:

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0xsigneddata..."
}

Parameters:

  • address (string)

  • data (string)


r5_signTransaction

Description: Signs a transaction object with the private key of the specified account.

Sample Request:

{
  "jsonrpc": "2.0",
  "method": "r5_signTransaction",
  "params": [
    {
      "from": "0x1234567890abcdef1234567890abcdef12345678",
      "to": "0xabcdef1234567890abcdef1234567890abcdef12",
      "value": "0xde0b6b3a7640000",
      "gas": "0x5208",
      "gasPrice": "0x4a817c800"
    }
  ],
  "id": 1
}

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:

{
  "jsonrpc": "2.0",
  "method": "r5_resend",
  "params": ["0xtransactionhash...", { "gasPrice": "0x4a817c800" }],
  "id": 1
}

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:

{
  "jsonrpc": "2.0",
  "method": "r5_sendIBANTransaction",
  "params": [
    {
      "from": "XE7338O073KYGTWWZN0F2WZ0R8PX5ZPPZS",
      "to": "XE7338O073KYGTWWZN0F2WZ0R8PX5ZPPZS",
      "value": "0xde0b6b3a7640000"
    }
  ],
  "id": 1
}

Expected Response: &#xNAN;Returns the transaction hash.

Parameters:

  • transactionObject (object)


r5_getTransaction

Description: Retrieves a transaction by its hash.

Sample Request:

{
  "jsonrpc": "2.0",
  "method": "r5_getTransaction",
  "params": ["0xabc123def456..."],
  "id": 1
}

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:

{
  "jsonrpc": "2.0",
  "method": "r5_getTransactionCount",
  "params": ["0x1234567890abcdef1234567890abcdef12345678", "latest"],
  "id": 1
}

Expected Response:

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0x15"
}

Parameters:

  • address (string)

  • block (string)


r5_getTransactionFromBlock

Description: Returns a transaction from a block by its index.

Sample Request:

{
  "jsonrpc": "2.0",
  "method": "r5_getTransactionFromBlock",
  "params": ["0xa", 0],
  "id": 1
}

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:

{
  "jsonrpc": "2.0",
  "method": "r5_getTransactionReceipt",
  "params": ["0xabc123def456..."],
  "id": 1
}

Expected Response:

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "transactionHash": "0xabc123def456...",
    "transactionIndex": "0x1",
    "blockHash": "0xdef456abc789...",
    "blockNumber": "0xa",
    "from": "0x1234567890abcdef1234567890abcdef12345678",
    "to": "0xabcdef1234567890abcdef1234567890abcdef12",
    "cumulativeGasUsed": "0x5208",
    "gasUsed": "0x5208",
    "contractAddress": null,
    "logs": []
  }
}

Parameters:

  • transactionHash (string)


r5_getRawTransaction

Description: Retrieves the raw, RLP-encoded transaction data for a given transaction hash.

Sample Request:

{
  "jsonrpc": "2.0",
  "method": "r5_getRawTransaction",
  "params": ["0xabc123def456..."],
  "id": 1
}

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:

{
  "jsonrpc": "2.0",
  "method": "r5_getRawTransactionFromBlock",
  "params": ["0xa", 0],
  "id": 1
}

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:

{
  "jsonrpc": "2.0",
  "method": "r5_getStorageAt",
  "params": ["0x1234567890abcdef1234567890abcdef12345678", "0x0", "latest"],
  "id": 1
}

Expected Response:

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0x000000000000000000000000000000000000000000000000000000000000002a"
}

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:

{
  "jsonrpc": "2.0",
  "method": "r5_getSyncing",
  "params": [],
  "id": 1
}

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:

{
  "jsonrpc": "2.0",
  "method": "r5_getWork",
  "params": [],
  "id": 1
}

Expected Response:

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": [
    "0xheaderhash...",
    "0xseedhash...",
    "0xtarget..."
  ]
}

Parameters: None.


r5_iban

Description: Converts an International Bank Account Number (IBAN) to a hexadecimal address.

Sample Request:

{
  "jsonrpc": "2.0",
  "method": "r5_iban",
  "params": ["XE7338O073KYGTWWZN0F2WZ0R8PX5ZPPZS"],
  "id": 1
}

Expected Response:

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0x..."
}

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:

{
  "jsonrpc": "2.0",
  "method": "r5_resend",
  "params": ["0xtransactionhash...", { "gasPrice": "0x4a817c800" }],
  "id": 1
}

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:

{
  "jsonrpc": "2.0",
  "method": "r5_sendIBANTransaction",
  "params": [
    {
      "from": "XE7338O073KYGTWWZN0F2WZ0R8PX5ZPPZS",
      "to": "XE7338O073KYGTWWZN0F2WZ0R8PX5ZPPZS",
      "value": "0xde0b6b3a7640000"
    }
  ],
  "id": 1
}

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:

{
  "jsonrpc": "2.0",
  "method": "r5_getTransactionReceipt",
  "params": ["0xabc123def456..."],
  "id": 1
}

Expected Response:

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": {
    "transactionHash": "0xabc123def456...",
    "transactionIndex": "0x1",
    "blockHash": "0xdef456abc789...",
    "blockNumber": "0xa",
    "from": "0x1234567890abcdef1234567890abcdef12345678",
    "to": "0xabcdef1234567890abcdef1234567890abcdef12",
    "cumulativeGasUsed": "0x5208",
    "gasUsed": "0x5208",
    "contractAddress": null,
    "logs": []
  }
}

Parameters:

  • transactionHash (string)


r5_getUncle

Description: Retrieves an uncle block by its index from a specified block.

Sample Request:

{
  "jsonrpc": "2.0",
  "method": "r5_getUncle",
  "params": ["0xa", 0],
  "id": 1
}

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:

{
  "jsonrpc": "2.0",
  "method": "r5_getCode",
  "params": ["0xabcdef1234567890abcdef1234567890abcdef12", "latest"],
  "id": 1
}

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:

{
  "jsonrpc": "2.0",
  "method": "r5_getCoinbase",
  "params": [],
  "id": 1
}

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:

{
  "jsonrpc": "2.0",
  "method": "r5_getCompilers",
  "params": [],
  "id": 1
}

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:

{
  "jsonrpc": "2.0",
  "method": "r5_getHeaderByHash",
  "params": ["0xabc123def456..."],
  "id": 1
}

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:

{
  "jsonrpc": "2.0",
  "method": "r5_getHeaderByNumber",
  "params": ["latest"],
  "id": 1
}

Expected Response: &#xNAN;Returns an object containing header fields.

Parameters:

  • block (string)


r5_getLogs

Description: Returns logs matching a given filter object.

Sample Request:

{
  "jsonrpc": "2.0",
  "method": "r5_getLogs",
  "params": [
    {
      "fromBlock": "0x1",
      "toBlock": "latest",
      "address": "0xabcdef1234567890abcdef1234567890abcdef12"
    }
  ],
  "id": 1
}

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:

{
  "jsonrpc": "2.0",
  "method": "r5_getProof",
  "params": [
    "0x1234567890abcdef1234567890abcdef12345678",
    ["0x0", "0x1"],
    "latest"
  ],
  "id": 1
}

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:

{
  "jsonrpc": "2.0",
  "method": "r5_submitWork",
  "params": [
    "0xnonce",
    "0xmixDigest",
    "0xheaderhash..."
  ],
  "id": 1
}

Expected Response:

{
  "jsonrpc": "2.0",
  "id": 1,
  "result": true
}

Parameters:

  • nonce (string)

  • mixDigest (string)

  • headerhash (string)

PreviousnetNextrpc

Last updated 2 months ago