chainId
net_version
String
- The current network ID58
- Ontology Mainnet5851
- Ontology Polaris Testnet12345
- Solo nodeeth_chainId
chainId
.String
- the current chainId
eth_blockNumber
QUANTITY
- integer of the current block number the client is oneth_getBalance
DATA
, 20 Bytes - address to check for balance.QUANTITY|TAG
- integer block number, or the string "latest"
, "earliest"
or "pending"
QUANTITY
- integer of the current balance in wei.eth_protocolVersion
String
- The current Ethereum protocol versioneth_syncing
Object|Boolean
,An object with sync status data or FALSE. Object structure:startingBlock
: QUANTITY
- The block at which the import startedcurrentBlock
: QUANTITY
- The current block, same as eth_blockNumber
highestBlock
: QUANTITY
- The estimated highest blocketh_gasPrice
QUANTITY
- integer of the current gas price in wei.eth_getStorageAt
DATA
, 20 Bytes - address of the storageQUANTITY
- integer of the position in the storageQUANTITY|TAG
- integer block number, or the string "latest"
, "earliest"
or pending"
DATA
- the value at this storage position.0x295a70b2de5e3953354a6a8344e616ed314d7251
by address 0x391694e7e0b0cce554cb130d723a9d27458f9298
:pos1["0x391694e7e0b0cce554cb130d723a9d27458f9298"]
we need to calculate the position with:eth_getTransactionCount
DATA
, 20 Bytes - address.QUANTITY|TAG
integer block number, or the string "latest"
, "earliest"
or "pending"
QUANTITY
- integer of the number of transactions send from this addresseth_getBlockTransactionCountByHash
DATA
, 32 Bytes - hash of a blockQUANTITY
- integer of the number of transactions in this blocketh_getBlockTransactionCountByNumber
QUANTITY|TAG
,- integer of a block number, or the string "earliest"
, "latest"
or "pending"
.QUANTITY
- integer of the number of transactions in this blocketh_getCode
DATA
, 20 Bytes - address.QUANTITY|TAG
- integer of a block number, or the string "earliest"
, "latest"
or "pending"
(Invalid Parameter).DATA
- the code from the given addresseth_getTransactionLogs
txHash
- transaction hasheth_sendRawTransaction
DATA
- The signed transaction dataDATA
32 Bytes - the transaction hash, or the zero hash if the transaction is not yet available.eth_call
Object
- The transaction call object:from
: DATA
,20 Bytes, 20 Bytes - (optional) The address the transaction is sent from.to
: DATA
, 20 Bytes, 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 gas.value
:QUANTITY
- (optional) Integer of the value sent with this transaction.data
: DATA
- (optional) Hash of the method signature and encoded parameters.QUANTITY|TAG
- integer of a block number, or the string "earliest"
, "latest"
or "pending"
.DATA
- the return value of executed contract.eth_estimateGas
eth_call
parameters. All properties are optional. If no gas limit is specified geth uses the block gas limit from the pending block as an upper bound. As a result the returned estimate might not be enough to execute the call/transaction when the amount of gas is higher than the pending block gas limit.QUANTITY
- the estimated amount of gas.eth_getBlockByNumber
QUANTITY|TAG
- integer of a block number, or the string "earliest"
, "latest"
or "pending"
.Boolean
- If true
it returns the full transaction objects, if false
only the hashes of the transactions.Object
- A block object, or null
when no block was found:number
: QUANTITY
- the block number.hash
: DATA
, 32 Bytes - hash of the block.parentHash
: DATA
, 32 Bytes - hash of the parent block.nonce
: DATA
, 8 Bytes - nulllogsBloom
: DATA
, 256 Bytes - nulltransactionsRoot
: DATA
, 32 Bytes - the root of the transaction tree of the block.stateRoot
: DATA
, 32 Bytes - nullreceiptsRoot
: DATA
, 32 Bytes - nullminer
: DATA
, 20 Bytes - nulldifficulty
: QUANTITY
- nulltotalDifficulty
: QUANTITY
- nullextraData
: DATA
- nullsize
: QUANTITY
- the size of this block in bytes.gasLimit
: QUANTITY
- the maximum gas allowed in this block.gasUsed
: QUANTITY
- the total used gas by all transactions in this block.timestamp
: QUANTITY
- the timestamp for when the block was collated.transactions
: Array
- Array of transaction objects, or 32 Bytes transaction hashes depending on the last given parameter.uncles
: Array
- nulleth_getBlockByHash
DATA
, 32 Bytes - Hash of a block.Boolean
- If true
it returns the full transaction objects, if false
only the hashes of the transactions.eth_getTransactionByHash
DATA
, 32 Bytes - hash of a block.Object
- A transaction object, or null
when no transaction was found:hash
: DATA
- 32 Bytes, transaction hash.nonce
: QUANTITY
- the number of transactions made by the sender using Ontology EVM prior to this one.blockHash
: DATA
, 32 Bytes - hash of the block where this transaction was in. null when its pending.blockNumber
: QUANTITY
- block number where this transaction was in. null when its pending.transactionIndex
: QUANTITY
- integer of the transactions index position in the block. null when its pending.from
: DATA
, 20 Bytes - address of the sender.to
: DATA
, 20 Bytes - address of the receiver. null when its a contract creation transaction.value
: QUANTITY
- value transferred in wei.gasPrice
: QUANTITY
- gas price provided by the sender in wei.gas
: QUANTITY
- gas provided by the sender.input
: DATA
- the data send along with the transaction.eth_getTransactionByBlockHashAndIndex
DATA
, 32 Bytes - hash of a block.QUANTITY
- integer of the transaction index position.eth_getTransactionByBlockNumberAndIndex
QUANTITY|TAG
- integer of a block number, or the string "earliest"
, "latest"
or "pending"
.QUANTITY
- the transaction index position.eth_getTransactionReceipt
DATA
, 32 Bytes - hash of a transaction.Object
- A transaction receipt object, or null
when no receipt was found:transactionHash
: DATA
, 32 Bytes - hash of the transaction.transactionIndex
: QUANTITY
- integer of the transactions index position in the block.blockHash
: DATA
, 32 Bytes - hash of the block where this transaction was in.blockNumber
: QUANTITY
- block number where this transaction was in.from
: DATA
, 20 Bytes - address of the sender.to
: DATA
, 20 Bytes - address of the receiver. null when its a contract creation transaction.cumulativeGasUsed
:QUANTITY
- The total amount of gas used when this transaction was executed in the block.gasUsed
: QUANTITY
- The amount of gas used by this specific transaction alone.contractAddress
: DATA
, 20 Bytes - The contract address created, if the transaction was a contract creation, otherwise null
.logs
: Array
- Array of log objects, which this transaction generated.logsBloom
: DATA
, 256 Bytes - Bloom filter, nullstatus
: QUANTITY
, either 1
(success) or 0
(failure)eth_pendingTransactions
eth_pendingTransactionsByHash