JSON-RPC API
Last updated
Last updated
Boba Network shares the same JSON-RPC API (opens new window) as Ethereum. Some new custom methods have been introduced and some other have been made unsupported for operation.
You can use the Tenderly node to debug your transactions.
Example
eth_getProof
Returns the account and storage values of the specified account including the Merkle-proof. This call can be used to verify that the data you are pulling from is not tampered with.
Parameters
DATA
- address of the account.
ARRAY
- array of storage-keys which should be proofed and included. See eth_getStorageAt (opens new window).
QUANTITY|TAG
- integer of the ending block number for the range, or the string "earliest"
, "latest"
or "pending"
, as in the default block parameter (opens new window).
Returns
Object
balance
: QUANTITY
- the balance of the account.
codeHash
: DATA
- hash of the code of the account. For a simple Account without code it will return "0xc5d2460186f7233c927e7db2dcc703c0e500b653ca82273b7bfad8045d85a470"
nonce
: QUANTITY
- nonce of the account
storageHash
: DATA
- SHA3 of the StorageRoot. All storage will deliver a MerkleProof starting with this rootHash.
accountProof
: ARRAY
- Array of rlp-serialized MerkleTree-Nodes, starting with the stateRoot-Node, following the path of the SHA3 (address) as key.
storageProof
: ARRAY
- Array of storage-entries as requested. Each entry is a object with these properties:
key
: QUANTITY
- the requested storage key
value
: QUANTITY
- the storage value
proof
: ARRAY
- Array of rlp-serialized MerkleTree-Nodes, starting with the storageHash-Node, following the path of the SHA3 (key) as path.
Example
eth_estimateGas
Generates and returns an estimate of how much gas is necessary to allow the transaction to complete. The transaction will not be added to the blockchain.
Parameters
OBJECT
- the tx call object, nonce field is omitted
QUANTITY|TAG
- integer of the ending block number for the range, or the string "earliest"
, "latest"
or "pending"
, as in the default block parameter (opens new window).
Returns
QUANTITY
- the amount of gas used.
Example
eth_getAccounts
This method is used to retrieve a list of addresses owned by a user. Boba Network nodes do not expose internal wallets for security reasons and therefore block the eth_getAccounts
method by default. You should use external wallet software as an alternative.
eth_sendTransaction
Boba Network nodes also block the eth_sendTransaction
method for the same reasons as eth_getAccounts
. You should use external wallet software as an alternative. Please note that this is not the same as the eth_sendRawTransaction
method, which accepts a signed transaction as an input. eth_sendRawTransaction
is supported by Boba Network.