Eth module

eth_blockNumber

Returns current block number

Invocation

{"method":"eth_blockNumber","params":[]}

This method doesn't have parameters.

Returned type

Description

Quantity

Example request of eth_blockNumber
Example request of eth_blockNumber
curl --data '{"method":"eth_blockNumber","params":[],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545

See also CLI eth.blockNumber

eth_call

Executes a tx call (does not create a transaction)

Invocation

{"method":"eth_call","params":[transactionCall, blockParameter]}

Parameter

Type

Description

transactionCall

TransactionForRpc object

blockParameter

BlockParameter object

Returned type

Description

String

Example request of eth_call
Objects in eth_call
Example request of eth_call
curl --data '{"method":"eth_call","params":[transactionCall, blockParameter],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
Objects in eth_call

TransactionForRpc

Field name

Type

Hash

Hash

Nonce

Quantity

BlockHash

Hash

BlockNumber

Quantity

TransactionIndex

Quantity

From

Address

To

Address

Value

Quantity

GasPrice

Quantity

Gas

Quantity

Data

Data

Input

Data

V

Quantity

S

Quantity

R

Quantity

BlockParameter

Field name

Type

Type

BlockParameterType object

BlockNumber

Quantity

BlockHash

Hash

RequireCanonical

Boolean

BlockParameterType

  • Quantity or String (latest, earliest, pending)

See also CLI eth.call

eth_chainId

Returns ChainID

Invocation

{"method":"eth_chainId","params":[]}

This method doesn't have parameters.

Returned type

Description

UInt64 object

Example request of eth_chainId
Objects in eth_chainId
Example request of eth_chainId
curl --data '{"method":"eth_chainId","params":[],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
Objects in eth_chainId

UInt64

Field name

Type

See also CLI eth.chainId

eth_estimateGas

Executes a tx call and returns gas used (does not create a transaction)

Invocation

{"method":"eth_estimateGas","params":[transactionCall, blockParameter]}

Parameter

Type

Description

transactionCall

TransactionForRpc object

blockParameter

BlockParameter object

Returned type

Description

Quantity

Example request of eth_estimateGas
Objects in eth_estimateGas
Example request of eth_estimateGas
curl --data '{"method":"eth_estimateGas","params":[transactionCall, blockParameter],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
Objects in eth_estimateGas

TransactionForRpc

Field name

Type

Hash

Hash

Nonce

Quantity

BlockHash

Hash

BlockNumber

Quantity

TransactionIndex

Quantity

From

Address

To

Address

Value

Quantity

GasPrice

Quantity

Gas

Quantity

Data

Data

Input

Data

V

Quantity

S

Quantity

R

Quantity

BlockParameter

Field name

Type

Type

BlockParameterType object

BlockNumber

Quantity

BlockHash

Hash

RequireCanonical

Boolean

BlockParameterType

  • Quantity or String (latest, earliest, pending)

See also CLI eth.estimateGas

eth_getBalance

Returns account balance

Invocation

{"method":"eth_getBalance","params":[address, blockParameter]}

Parameter

Type

Description

address

Address

blockParameter

BlockParameter object

Returned type

Description

Quantity

Example request of eth_getBalance
Objects in eth_getBalance
Example request of eth_getBalance
curl --data '{"method":"eth_getBalance","params":[address, blockParameter],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
Objects in eth_getBalance

BlockParameter

Field name

Type

Type

BlockParameterType object

BlockNumber

Quantity

BlockHash

Hash

RequireCanonical

Boolean

BlockParameterType

  • Quantity or String (latest, earliest, pending)

See also CLI eth.getBalance

eth_getBlockByHash

Retrieves a block by hash

Invocation

{"method":"eth_getBlockByHash","params":[blockHash, returnFullTransactionObjects]}

Parameter

Type

Description

blockHash

Hash

returnFullTransactionObjects

Boolean

Returned type

Description

BlockForRpc object

Example request of eth_getBlockByHash
Objects in eth_getBlockByHash
Example request of eth_getBlockByHash
curl --data '{"method":"eth_getBlockByHash","params":[blockHash, returnFullTransactionObjects],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
Objects in eth_getBlockByHash

BlockForRpc

Field name

Type

Author

Address

Difficulty

Quantity

ExtraData

Data

GasLimit

Quantity

GasUsed

Quantity

Hash

Hash

LogsBloom

Bloom Object

Miner

Address

MixHash

Hash

Nonce

Data

Number

Quantity

ParentHash

Hash

ReceiptsRoot

Hash

Sha3Uncles

Hash

Signature

Data

Size

Quantity

StateRoot

Hash

Step

Quantity

TotalDifficulty

Quantity

Timestamp

Quantity

Transactions

Array

TransactionsRoot

Hash

Uncles

Array

See also CLI eth.getBlockByHash

eth_getBlockByNumber

Retrieves a block by number

Invocation

{"method":"eth_getBlockByNumber","params":[blockParameter, returnFullTransactionObjects]}

Parameter

Type

Description

blockParameter

BlockParameter object

returnFullTransactionObjects

Boolean

Returned type

Description

BlockForRpc object

Example request of eth_getBlockByNumber
Objects in eth_getBlockByNumber
Example request of eth_getBlockByNumber
curl --data '{"method":"eth_getBlockByNumber","params":[blockParameter, returnFullTransactionObjects],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
Objects in eth_getBlockByNumber

BlockParameter

Field name

Type

Type

BlockParameterType object

BlockNumber

Quantity

BlockHash

Hash

RequireCanonical

Boolean

BlockParameterType

  • Quantity or String (latest, earliest, pending)

BlockForRpc

Field name

Type

Author

Address

Difficulty

Quantity

ExtraData

Data

GasLimit

Quantity

GasUsed

Quantity

Hash

Hash

LogsBloom

Bloom Object

Miner

Address

MixHash

Hash

Nonce

Data

Number

Quantity

ParentHash

Hash

ReceiptsRoot

Hash

Sha3Uncles

Hash

Signature

Data

Size

Quantity

StateRoot

Hash

Step

Quantity

TotalDifficulty

Quantity

Timestamp

Quantity

Transactions

Array

TransactionsRoot

Hash

Uncles

Array

See also CLI eth.getBlockByNumber

eth_getBlockTransactionCountByHash

Returns number of transactions in the block block hash

Invocation

{"method":"eth_getBlockTransactionCountByHash","params":[blockHash]}

Parameter

Type

Description

blockHash

Hash

Returned type

Description

Quantity

Example request of eth_getBlockTransactionCountByHash
Example request of eth_getBlockTransactionCountByHash
curl --data '{"method":"eth_getBlockTransactionCountByHash","params":[blockHash],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545

See also CLI eth.getBlockTransactionCountByHash

eth_getBlockTransactionCountByNumber

Returns number of transactions in the block by block number

Invocation

{"method":"eth_getBlockTransactionCountByNumber","params":[blockParameter]}

Parameter

Type

Description

blockParameter

BlockParameter object

Returned type

Description

Quantity

Example request of eth_getBlockTransactionCountByNumber
Objects in eth_getBlockTransactionCountByNumber
Example request of eth_getBlockTransactionCountByNumber
curl --data '{"method":"eth_getBlockTransactionCountByNumber","params":[blockParameter],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
Objects in eth_getBlockTransactionCountByNumber

BlockParameter

Field name

Type

Type

BlockParameterType object

BlockNumber

Quantity

BlockHash

Hash

RequireCanonical

Boolean

BlockParameterType

  • Quantity or String (latest, earliest, pending)

See also CLI eth.getBlockTransactionCountByNumber

eth_getCode

Returns account code at given address and block

Invocation

{"method":"eth_getCode","params":[address, blockParameter]}

Parameter

Type

Description

address

Address

blockParameter

BlockParameter object

Returned type

Description

Data

Example request of eth_getCode
Objects in eth_getCode
Example request of eth_getCode
curl --data '{"method":"eth_getCode","params":[address, blockParameter],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
Objects in eth_getCode

BlockParameter

Field name

Type

Type

BlockParameterType object

BlockNumber

Quantity

BlockHash

Hash

RequireCanonical

Boolean

BlockParameterType

  • Quantity or String (latest, earliest, pending)

See also CLI eth.getCode

eth_getFilterChanges

Reads filter changes

Invocation

{"method":"eth_getFilterChanges","params":[filterId]}

Parameter

Type

Description

filterId

Quantity

Returned type

Description

Array

Example request of eth_getFilterChanges
Example request of eth_getFilterChanges
curl --data '{"method":"eth_getFilterChanges","params":[filterId],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545

See also CLI eth.getFilterChanges

eth_getFilterLogs

Reads filter changes

Invocation

{"method":"eth_getFilterLogs","params":[filterId]}

Parameter

Type

Description

filterId

Quantity

Returned type

Description

Array

Example request of eth_getFilterLogs
Example request of eth_getFilterLogs
curl --data '{"method":"eth_getFilterLogs","params":[filterId],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545

eth_getLogs

Reads logs

Invocation

{"method":"eth_getLogs","params":[filter]}

Parameter

Type

Description

filter

Filter object

Returned type

Description

Array

Example request of eth_getLogs
Objects in eth_getLogs
Example request of eth_getLogs
curl --data '{"method":"eth_getLogs","params":[filter],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
Objects in eth_getLogs

Filter

Field name

Type

FromBlock

BlockParameter object

ToBlock

BlockParameter object

Address

Object

Topics

Array

BlockParameter

Field name

Type

Type

BlockParameterType object

BlockNumber

Quantity

BlockHash

Hash

RequireCanonical

Boolean

See also CLI eth.getLogs

eth_getProof

https://github.com/ethereum/EIPs/issues/1186

Invocation

{"method":"eth_getProof","params":[accountAddress, hashRate, blockParameter]}

Parameter

Type

Description

accountAddress

Address

hashRate

Data

blockParameter

BlockParameter object

Returned type

Description

AccountProof object

Example request of eth_getProof
Objects in eth_getProof
Example request of eth_getProof
curl --data '{"method":"eth_getProof","params":[accountAddress, hashRate, blockParameter],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
Objects in eth_getProof

BlockParameter

Field name

Type

Type

BlockParameterType object

BlockNumber

Quantity

BlockHash

Hash

RequireCanonical

Boolean

BlockParameterType

  • Quantity or String (latest, earliest, pending)

AccountProof

Field name

Type

Address

Address

Proof

Data

Balance

Quantity

CodeHash

Hash

Nonce

Quantity

StorageRoot

Hash

StorageProofs

StorageProof[] object

StorageProof[]

Field name

Type

Length

Quantity

LongLength

Quantity

Rank

Quantity

SyncRoot

Object

IsReadOnly

Boolean

IsFixedSize

Boolean

IsSynchronized

Boolean

See also CLI eth.getProof

eth_getStorageAt

Returns storage data at address. storage_index

Invocation

{"method":"eth_getStorageAt","params":[address, positionIndex, blockParameter]}

Parameter

Type

Description

address

Address

positionIndex

Quantity

blockParameter

BlockParameter object

Returned type

Description

Data

Example request of eth_getStorageAt
Objects in eth_getStorageAt
Example request of eth_getStorageAt
curl --data '{"method":"eth_getStorageAt","params":[address, positionIndex, blockParameter],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
Objects in eth_getStorageAt

BlockParameter

Field name

Type

Type

BlockParameterType object

BlockNumber

Quantity

BlockHash

Hash

RequireCanonical

Boolean

BlockParameterType

  • Quantity or String (latest, earliest, pending)

See also CLI eth.getStorageAt

eth_getTransactionByBlockHashAndIndex

Retrieves a transaction by block hash and index

Invocation

{"method":"eth_getTransactionByBlockHashAndIndex","params":[blockHash, positionIndex]}

Parameter

Type

Description

blockHash

Hash

positionIndex

Quantity

Returned type

Description

TransactionForRpc object

Example request of eth_getTransactionByBlockHashAndIndex
Objects in eth_getTransactionByBlockHashAndIndex
Example request of eth_getTransactionByBlockHashAndIndex
curl --data '{"method":"eth_getTransactionByBlockHashAndIndex","params":[blockHash, positionIndex],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
Objects in eth_getTransactionByBlockHashAndIndex

TransactionForRpc

Field name

Type

Hash

Hash

Nonce

Quantity

BlockHash

Hash

BlockNumber

Quantity

TransactionIndex

Quantity

From

Address

To

Address

Value

Quantity

GasPrice

Quantity

Gas

Quantity

Data

Data

Input

Data

V

Quantity

S

Quantity

R

Quantity

eth_getTransactionByBlockNumberAndIndex

Retrieves a transaction by block number and index

Invocation

{"method":"eth_getTransactionByBlockNumberAndIndex","params":[blockParameter, positionIndex]}

Parameter

Type

Description

blockParameter

BlockParameter object

positionIndex

Quantity

Returned type

Description

TransactionForRpc object

Example request of eth_getTransactionByBlockNumberAndIndex
Objects in eth_getTransactionByBlockNumberAndIndex
Example request of eth_getTransactionByBlockNumberAndIndex
curl --data '{"method":"eth_getTransactionByBlockNumberAndIndex","params":[blockParameter, positionIndex],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
Objects in eth_getTransactionByBlockNumberAndIndex

BlockParameter

Field name

Type

Type

BlockParameterType object

BlockNumber

Quantity

BlockHash

Hash

RequireCanonical

Boolean

BlockParameterType

  • Quantity or String (latest, earliest, pending)

TransactionForRpc

Field name

Type

Hash

Hash

Nonce

Quantity

BlockHash

Hash

BlockNumber

Quantity

TransactionIndex

Quantity

From

Address

To

Address

Value

Quantity

GasPrice

Quantity

Gas

Quantity

Data

Data

Input

Data

V

Quantity

S

Quantity

R

Quantity

See also CLI eth.getTransactionByBlockNumberAndIndex

eth_getTransactionByHash

Retrieves a transaction by hash

Invocation

{"method":"eth_getTransactionByHash","params":[transactionHash]}

Parameter

Type

Description

transactionHash

Hash

Returned type

Description

TransactionForRpc object

Example request of eth_getTransactionByHash
Objects in eth_getTransactionByHash
Example request of eth_getTransactionByHash
curl --data '{"method":"eth_getTransactionByHash","params":[transactionHash],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
Objects in eth_getTransactionByHash

TransactionForRpc

Field name

Type

Hash

Hash

Nonce

Quantity

BlockHash

Hash

BlockNumber

Quantity

TransactionIndex

Quantity

From

Address

To

Address

Value

Quantity

GasPrice

Quantity

Gas

Quantity

Data

Data

Input

Data

V

Quantity

S

Quantity

R

Quantity

See also CLI eth.getTransactionByHash

eth_getTransactionCount

Returns account nonce (number of trnsactions from the account since genesis) at the given block number

Invocation

{"method":"eth_getTransactionCount","params":[address, blockParameter]}

Parameter

Type

Description

address

Address

blockParameter

BlockParameter object

Returned type

Description

Quantity

Example request of eth_getTransactionCount
Objects in eth_getTransactionCount
Example request of eth_getTransactionCount
curl --data '{"method":"eth_getTransactionCount","params":[address, blockParameter],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
Objects in eth_getTransactionCount

BlockParameter

Field name

Type

Type

BlockParameterType object

BlockNumber

Quantity

BlockHash

Hash

RequireCanonical

Boolean

BlockParameterType

  • Quantity or String (latest, earliest, pending)

See also CLI eth.getTransactionCount

eth_getTransactionReceipt

Retrieves a transaction receipt by tx hash

Invocation

{"method":"eth_getTransactionReceipt","params":[txHashData]}

Parameter

Type

Description

txHashData

Hash

Returned type

Description

ReceiptForRpc object

Example request of eth_getTransactionReceipt
Objects in eth_getTransactionReceipt
Example request of eth_getTransactionReceipt
curl --data '{"method":"eth_getTransactionReceipt","params":[txHashData],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
Objects in eth_getTransactionReceipt

ReceiptForRpc

Field name

Type

TransactionHash

Hash

TransactionIndex

Quantity

BlockHash

Hash

BlockNumber

Quantity

CumulativeGasUsed

Quantity

GasUsed

Quantity

From

Address

To

Address

ContractAddress

Address

Logs

LogEntryForRpc[] object

LogsBloom

Bloom Object

Root

Hash

Status

Quantity

Error

String

LogEntryForRpc[]

Field name

Type

Length

Quantity

LongLength

Quantity

Rank

Quantity

SyncRoot

Object

IsReadOnly

Boolean

IsFixedSize

Boolean

IsSynchronized

Boolean

See also CLI eth.getTransactionReceipt

eth_getUncleByBlockHashAndIndex

Retrieves an uncle block header by block hash and uncle index

Invocation

{"method":"eth_getUncleByBlockHashAndIndex","params":[blockHashData, positionIndex]}

Parameter

Type

Description

blockHashData

Hash

positionIndex

Quantity

Returned type

Description

BlockForRpc object

Example request of eth_getUncleByBlockHashAndIndex
Objects in eth_getUncleByBlockHashAndIndex
Example request of eth_getUncleByBlockHashAndIndex
curl --data '{"method":"eth_getUncleByBlockHashAndIndex","params":[blockHashData, positionIndex],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
Objects in eth_getUncleByBlockHashAndIndex

BlockForRpc

Field name

Type

Author

Address

Difficulty

Quantity

ExtraData

Data

GasLimit

Quantity

GasUsed

Quantity

Hash

Hash

LogsBloom

Bloom Object

Miner

Address

MixHash

Hash

Nonce

Data

Number

Quantity

ParentHash

Hash

ReceiptsRoot

Hash

Sha3Uncles

Hash

Signature

Data

Size

Quantity

StateRoot

Hash

Step

Quantity

TotalDifficulty

Quantity

Timestamp

Quantity

Transactions

Array

TransactionsRoot

Hash

Uncles

Array

See also CLI eth.getUncleByBlockHashAndIndex

eth_getUncleByBlockNumberAndIndex

Retrieves an uncle block header by block number and uncle index

Invocation

{"method":"eth_getUncleByBlockNumberAndIndex","params":[blockParameter, positionIndex]}

Parameter

Type

Description

blockParameter

BlockParameter object

positionIndex

Quantity

Returned type

Description

BlockForRpc object

Example request of eth_getUncleByBlockNumberAndIndex
Objects in eth_getUncleByBlockNumberAndIndex
Example request of eth_getUncleByBlockNumberAndIndex
curl --data '{"method":"eth_getUncleByBlockNumberAndIndex","params":[blockParameter, positionIndex],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
Objects in eth_getUncleByBlockNumberAndIndex

BlockParameter

Field name

Type

Type

BlockParameterType object

BlockNumber

Quantity

BlockHash

Hash

RequireCanonical

Boolean

BlockParameterType

  • Quantity or String (latest, earliest, pending)

BlockForRpc

Field name

Type

Author

Address

Difficulty

Quantity

ExtraData

Data

GasLimit

Quantity

GasUsed

Quantity

Hash

Hash

LogsBloom

Bloom Object

Miner

Address

MixHash

Hash

Nonce

Data

Number

Quantity

ParentHash

Hash

ReceiptsRoot

Hash

Sha3Uncles

Hash

Signature

Data

Size

Quantity

StateRoot

Hash

Step

Quantity

TotalDifficulty

Quantity

Timestamp

Quantity

Transactions

Array

TransactionsRoot

Hash

Uncles

Array

See also CLI eth.getUncleByBlockNumberAndIndex

eth_getUncleCountByBlockHash

Returns number of uncles in the block by block hash

Invocation

{"method":"eth_getUncleCountByBlockHash","params":[blockHash]}

Parameter

Type

Description

blockHash

Hash

Returned type

Description

Quantity

Example request of eth_getUncleCountByBlockHash
Example request of eth_getUncleCountByBlockHash
curl --data '{"method":"eth_getUncleCountByBlockHash","params":[blockHash],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545

eth_getUncleCountByBlockNumber

Returns number of uncles in the block by block number

Invocation

{"method":"eth_getUncleCountByBlockNumber","params":[blockParameter]}

Parameter

Type

Description

blockParameter

BlockParameter object

Returned type

Description

Quantity

Example request of eth_getUncleCountByBlockNumber
Objects in eth_getUncleCountByBlockNumber
Example request of eth_getUncleCountByBlockNumber
curl --data '{"method":"eth_getUncleCountByBlockNumber","params":[blockParameter],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
Objects in eth_getUncleCountByBlockNumber

BlockParameter

Field name

Type

Type

BlockParameterType object

BlockNumber

Quantity

BlockHash

Hash

RequireCanonical

Boolean

BlockParameterType

  • Quantity or String (latest, earliest, pending)

See also CLI eth.getUncleCountByBlockNumber

eth_newBlockFilter

Creates an update filter

Invocation

{"method":"eth_newBlockFilter","params":[]}

This method doesn't have parameters.

Returned type

Description

Quantity

Example request of eth_newBlockFilter
Example request of eth_newBlockFilter
curl --data '{"method":"eth_newBlockFilter","params":[],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545

eth_newFilter

Creates an update filter

Invocation

{"method":"eth_newFilter","params":[filter]}

Parameter

Type

Description

filter

Filter object

Returned type

Description

Quantity

Example request of eth_newFilter
Objects in eth_newFilter
Example request of eth_newFilter
curl --data '{"method":"eth_newFilter","params":[filter],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
Objects in eth_newFilter

Filter

Field name

Type

FromBlock

BlockParameter object

ToBlock

BlockParameter object

Address

Object

Topics

Array

BlockParameter

Field name

Type

Type

BlockParameterType object

BlockNumber

Quantity

BlockHash

Hash

RequireCanonical

Boolean

eth_newPendingTransactionFilter

Creates an update filter

Invocation

{"method":"eth_newPendingTransactionFilter","params":[]}

This method doesn't have parameters.

Returned type

Description

Quantity

Example request of eth_newPendingTransactionFilter
Example request of eth_newPendingTransactionFilter
curl --data '{"method":"eth_newPendingTransactionFilter","params":[],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545

See also CLI eth.newPendingTransactionFilter

eth_pendingTransactions

Returns the pending transactions list

Invocation

{"method":"eth_pendingTransactions","params":[]}

This method doesn't have parameters.

Returned type

Description

TransactionForRpc object

Example request of eth_pendingTransactions
Objects in eth_pendingTransactions
Example request of eth_pendingTransactions
curl --data '{"method":"eth_pendingTransactions","params":[],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
Objects in eth_pendingTransactions

TransactionForRpc

Field name

Type

Hash

Hash

Nonce

Quantity

BlockHash

Hash

BlockNumber

Quantity

TransactionIndex

Quantity

From

Address

To

Address

Value

Quantity

GasPrice

Quantity

Gas

Quantity

Data

Data

Input

Data

V

Quantity

S

Quantity

R

Quantity

See also CLI eth.pendingTransactions

eth_protocolVersion

Returns ETH protocol version

Invocation

{"method":"eth_protocolVersion","params":[]}

This method doesn't have parameters.

Returned type

Description

String

Example request of eth_protocolVersion
Example request of eth_protocolVersion
curl --data '{"method":"eth_protocolVersion","params":[],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545

See also CLI eth.protocolVersion

eth_sendRawTransaction

Send a raw transaction to the tx pool and broadcasting

Invocation

{"method":"eth_sendRawTransaction","params":[transaction]}

Parameter

Type

Description

transaction

Data

Returned type

Description

Hash

Example request of eth_sendRawTransaction
Example request of eth_sendRawTransaction
curl --data '{"method":"eth_sendRawTransaction","params":[transaction],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545

See also CLI eth.sendRawTransaction

eth_sendTransaction

Send a transaction to the tx pool and broadcasting

Invocation

{"method":"eth_sendTransaction","params":[rpcTx]}

Parameter

Type

Description

rpcTx

TransactionForRpc object

Returned type

Description

Hash

Example request of eth_sendTransaction
Objects in eth_sendTransaction
Example request of eth_sendTransaction
curl --data '{"method":"eth_sendTransaction","params":[rpcTx],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
Objects in eth_sendTransaction

TransactionForRpc

Field name

Type

Hash

Hash

Nonce

Quantity

BlockHash

Hash

BlockNumber

Quantity

TransactionIndex

Quantity

From

Address

To

Address

Value

Quantity

GasPrice

Quantity

Gas

Quantity

Data

Data

Input

Data

V

Quantity

S

Quantity

R

Quantity

See also CLI eth.sendTransaction

eth_syncing

Returns syncing status

Invocation

{"method":"eth_syncing","params":[]}

This method doesn't have parameters.

Returned type

Description

SyncingResult object

Example request of eth_syncing
Objects in eth_syncing
Example request of eth_syncing
curl --data '{"method":"eth_syncing","params":[],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545
Objects in eth_syncing

SyncingResult

Field name

Type

IsSyncing

Boolean

StartingBlock

Quantity

CurrentBlock

Quantity

HighestBlock

Quantity

See also CLI eth.syncing

eth_uninstallFilter

Creates an update filter

Invocation

{"method":"eth_uninstallFilter","params":[filterId]}

Parameter

Type

Description

filterId

Quantity

Returned type

Description

Boolean

Example request of eth_uninstallFilter
Example request of eth_uninstallFilter
curl --data '{"method":"eth_uninstallFilter","params":[filterId],"id":1,"jsonrpc":"2.0"}' -H "Content-Type: application/json" -X POST localhost:8545