eth_syncing
Returns an object with data about the sync status or false.
Parameters
None
Returns
The precise return data varies between client implementations. All clients return False when the node is not syncing, and all clients return the following fields:
Object: [Boolean], An object with sync status data or FALSE, when not syncing.startingBlock: QUANTITY - The block at which the import started (will only be reset, after the sync reached his head)currentBlock: QUANTITY - The current block, same as eth_blockNumberhighestBlock: QUANTITY - The estimated highest block
eth_chainId
Returns the chain ID used for signing replay-protected transactions.
Parameters
None
Returns
chainId: hexadecimal value as a string representing the integer of the current chain ID.
Example
eth_accounts
Returns a list of addresses owned by client.
Parameters
None
Returns
DATA, 20 Bytes - [Array] of addresses owned by the client.
Example
eth_getBalance
Returns the balance of the account of given address.
Parameters
DATA, 20 Bytes - address to check for balance.QUANTITY|TAG- integer block number, or the string “latest”, “earliest”, “pending”, “safe”, or “finalized”, see the default block parameterparams:["0x407d73d8a49eeb85d32cf465507dd71d507100c1", "latest"]
QUANTITY - integer of the current balance in wei.
Example
eth_getStorageAt
Returns the value from a storage position at a given address.
Parameters
DATA, 20 Bytes - address of the storage.QUANTITY- integer of the position in the storage.QUANTITY|TAG- integer block number, or the string “latest”, “earliest”, “pending”, “safe”, “finalized”, see the default block parameter
DATA - the value at this storage position.
Example
eth_getCode
Returns code at a given address.
Parameters
DATA, 20 Bytes - addressQUANTITY|TAG- integer block number, or the string “latest”, “earliest”, “pending”, “safe” or “finalized”, see the default block parameterparams:["0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2", "0x5daf3b", // 6139707]
DATA - the code from the given address.
Example
eth_sign
The sign method calculates an Ethereum specific signature with: sign(keccak256("\x19Ethereum Signed Message:\n" + len(message) + message)).
By adding a prefix to the message it makes the calculated signature recognizable as an Ethereum specific signature. This prevents misuse where a malicious dApp can sign arbitrary data (e.g. transactions) and use the signature to impersonate the victim.
Note: the address to sign with must be unlocked.
Parameters
DATA, 20 Bytes - addressDATA, N Bytes - message to sign
DATA: Signature
Example
eth_call
Executes a new message call immediately without creating a transaction on the blockchain. Often used for executing read-only smart contract functions, for example the balanceOf for an ERC-20 contract.
Parameters
Object- The transaction call objectfrom:DATA, 20 Bytes - (optional) The address the transaction is sent from.to:DATA, 20 Bytes - The address the transaction is directed to.gas:QUANTITY- (optional) Integer of the gas provided for the transaction execution. eth_call consumes zero gas, but this parameter may be needed by some executions.gasPrice:QUANTITY- (optional) Integer of the gasPrice used for each paid gasvalue:QUANTITY- (optional) Integer of the value sent with this transactioninput:DATA- (optional) Hash of the method signature and encoded parameters. For details see Ethereum Contract ABI in the Solidity documentation.QUANTITY|TAG- integer block number, or the string “latest”, “earliest”, “pending”, “safe” or “finalized”, see the default block parameter
DATA - the return value of executed contract.
Example