API Objects
The following objects are parameters for or returned by CIC API methods.
Block object
Returned by eth_getBlockByHash
and eth_getBlockByNumber
.
number
Quantity, Integer
Block number. null
when block is pending.
hash
Data, 32 bytes
Hash of the block. null
when block is pending.
parentHash
Data, 32 bytes
Hash of the parent block.
nonce
Data, 8 bytes
Hash of the generated proof of work. null
when block is pending.
sha3Uncles
Data, 32 bytes
SHA3 of the uncle’s data in the block.
logsBloom
Data, 256 bytes
Bloom filter for the block logs. null
when block is pending.
transactionsRoot
Data, 32 bytes
Root of the transaction trie for the block.
stateRoot
Data, 32 bytes
Root of the final state trie for the block.
receiptsRoot
Data, 32 bytes
Root of the receipts trie for the block.
miner
Data, 20 bytes
Address to pay mining rewards to.
difficulty
Quantity, Integer
Difficulty for this block.
totalDifficulty
Quantity, Integer
Total difficulty of the chain until this block.
extraData
Data
size
Quantity, Integer
Size of block in bytes.
gasLimit
Quantity
Maximum gas allowed in this block.
gasUsed
Quantity
Total gas used by all transactions in this block.
timestamp
Quantity
Unix timestamp for block assembly.
transactions
Array
uncles
Array
Array of uncle hashes.
baseFeePerGas
Quantity
Fee history results object
Returned by eth_feeHistory
for the requested block range. If blocks in the specified block range are not available, then only the fee history for available blocks is returned.
oldestBlock
Quantity, Integer
Lowest number block of the returned range.
baseFeePerGas
Array
gasUsedRatio
Array
Array of block gas used ratios. These are calculated as the ratio of gasUsed
and gasLimit
.
Filter options object
Parameter for eth_newFilter
, eth_getLogs
, and priv_getLogs
. Used to filter logs
.
fromBlock
Quantity | Tag
Optional
toBlock
Quantity | Tag
Optional
address
Data | Array
Optional
topics
Array of Data, 32 bytes each
Optional
eth_getLogs
and priv_getLogs
have an extra key.
blockHash
Data, 32 bytes
Optional.
Hash of block for which to return logs. If you specify blockHash
, you cannot specify fromBlock
and toBlock
.
Log object
Returned by eth_getFilterChanges
and priv_getLogs
. Transaction receipt objects
can contain an array of log objects.
removed
Tag
true
if log removed because of a chain reorganization. false
if a valid log.
logIndex
Quantity, Integer
Log index position in the block. null
when log is pending.
transactionIndex
Quantity, Integer
Index position of the starting transaction for the log. null
when log is pending.
transactionHash
Data, 32 bytes
Hash of the starting transaction for the log. null
when log is pending.
blockHash
Data, 32 bytes
Hash of the block that includes the log. null
when log is pending.
blockNumber
Quantity
Number of block that includes the log. null
when log is pending.
address
Data, 20 bytes
Address the log originated from.
data
Data
Non-indexed arguments of the log.
topics
Array of Data, 32 bytes each
Miner data object
Returned by eth_getMinerDataByBlockHash
and eth_getMinerDataByBlockNumber
.
netBlockReward
Quantity, Integer
The net block reward, in Wei, is staticBlockReward + transactionFee + uncleInclusionReward
.
staticBlockReward
Quantity, Integer
The static block reward, in Wei, is preset on a hard fork.
transactionFee
Quantity, Integer
The transaction fee, in Wei, is sum of upfront cost - refund amount for all transactions
.
uncleInclusionReward
Quantity, Integer
The uncle inclusion reward, in Wei, is static block reward * number of ommers/32
.
uncleRewards
Map
Map of uncle block hashes and uncle miner coinbase addresses.
coinbase
Data, 20 bytes
Coinbase address.
extraData
Data
difficulty
Quantity, Integer
Difficulty of this block.
totalDifficulty
Quantity, Integer
Total difficulty of the chain until this block.
Pending transaction object
Returned by txpool_besuPendingTransactions
.
accessList
Array
from
Data, 20 bytes
Address of the sender.
gas
Quantity
Gas provided by the sender.
gasPrice
Quantity
maxPriorityFeePerGas
Quantity, Integer
maxFeePerGas
Quantity, Integer
hash
Data, 32 bytes
Hash of the transaction.
input
Data
Data sent with the transaction to create or invoke a contract.
nonce
Quantity
Number of transactions made by the sender before this one.
to
Data, 20 bytes
Address of the receiver. null
if a contract creation transaction.
transactionType
String
value
Quantity
Value transferred, in Wei.
v
Quantity
ECDSA Recovery ID.
r
Data, 32 bytes
ECDSA signature r.
s
Data, 32 bytes
ECDSA signature s.
Private transaction object
Returned by priv_getPrivateTransaction
.
from
Data, 20 bytes
Address of the sender.
gas
Quantity
Gas provided by the sender.
gasPrice
Quantity
Gas price, in Wei, provided by the sender.
hash
Data, 32 bytes
Hash of the transaction.
input
Data
The data to create or invoke a contract.
nonce
Quantity
Number of transactions made by the sender to the privacy group before this one.
to
Data, 20 bytes
null
if a contract creation transaction, otherwise, the contract address.
value
Quantity
null
because private transactions cannot transfer Ether.
v
Quantity
ECDSA Recovery ID.
r
Data, 32 bytes
ECDSA signature r.
s
Data, 32 bytes
ECDSA signature s.
privateFrom
Data, 32 bytes
privateFor
Array of Data, 32 bytes each
privacyGroupId
Data, 32 bytes
restriction
String
Range object
Returned by debug_storageRangeAt
.
storage
Object
Key hash and value. Pre-image key is null
if it falls outside the cache.
nextKey
Hash
Hash of next key if further storage in range. Otherwise, not included.
Structured log object
Log information returned as part of the Trace object.
pc
Integer
Current program counter.
op
String
Current OpCode.
gas
Integer
Gas remaining.
gasCost
Integer
Cost in wei of each gas unit.
depth
Integer
Execution depth.
exceptionalHaltReasons
Array
One or more strings representing an error condition causing the EVM execution to terminate. These strings suggest that EVM execution terminated for reasons such as running out of gas or attempting to execute an unknown instruction. Generally a single exceptional halt reason returns but it’s possible for more than one to occur at once.
stack
Array of 32 byte arrays
EVM execution stack before executing current operation.
memory
Array of 32 byte arrays
Memory space of the contract before executing current operation.
storage
Object
Storage entries changed by the current transaction.
Trace object
Returned by debug_traceBlock
, debug_traceBlockByHash
, debug_traceBlockByNumber
, and debug_traceTransaction
.
gas
Integer
Gas used by the transaction.
failed
Boolean
True if transaction failed, otherwise, false.
returnValue
String
Bytes returned from transaction execution (without a 0x
prefix).
structLogs
Array
Array of structured log objects.
Transaction object
Returned by eth_getTransactionByHash
, eth_getTransactionByBlockHashAndIndex
, and eth_getTransactionByBlockNumberAndIndex
.
accessList
Array
blockHash
Data, 32 bytes
Hash of the block containing this transaction. null
when transaction is pending.
blockNumber
Quantity
Block number of the block containing this transaction. null
when transaction is pending.
chainId
Quantity
from
Data, 20 bytes
Address of the sender.
gas
Quantity
Gas provided by the sender.
gasPrice
Quantity
maxPriorityFeePerGas
Quantity, Integer
maxFeePerGas
Quantity, Integer
hash
Data, 32 bytes
Hash of the transaction.
input
Data
nonce
Quantity
Number of transactions made by the sender before this one.
publicKey
Data, 64 bytes
Public key of the sender.
raw
Data
This signed transaction in Recursive Length Prefix (RLP) encoded form.
to
Data, 20 bytes
Address of the receiver. null
if a contract creation transaction.
transactionIndex
Quantity, Integer
Index position of the transaction in the block. null
when transaction is pending.
transactionType
String
value
Quantity
Value transferred, in Wei.
v
Quantity
ECDSA Recovery ID.
r
Data, 32 bytes
ECDSA signature r.
s
Data, 32 bytes
ECDSA signature s.
Transaction call object
Parameter for eth_call
and eth_estimateGas
.
Note
All transaction call object parameters are optional for eth_estimateGas
. Only the to
parameter is required for eth_call
.
from
Data, 20 bytes
Address of the sender.
to
Data, 20 bytes
Address of the action receiver.
gas
Quantity, Integer
Gas provided by the sender. eth_call
consumes zero gas, but other executions might need this parameter. eth_estimateGas
ignores this value.
gasPrice
Quantity, Integer
maxPriorityFeePerGas
Quantity, Integer
maxFeePerGas
Quantity, Integer
value
Quantity, Integer
Value transferred, in Wei.
data
Data
strict
Tag
If true
, checks that the from
account’s ether balance is sufficient to cover the transaction and gas fee. If false
, this balance is not checked. The default is false
.
Transaction receipt object
Returned by eth_getTransactionReceipt
.
blockHash
Data, 32 bytes
Hash of block containing this transaction.
blockNumber
Quantity
Block number of block containing this transaction.
contractAddress
Data, 20 bytes
Contract address created, if contract creation transaction, otherwise, null
.
cumulativeGasUsed
Quantity
Total amount of gas used by previous transactions in the block and this transaction.
effectiveGasPrice
Quantity
from
Data, 20 bytes
Address of the sender.
gasUsed
Quantity
Amount of gas used by this specific transaction.
logs
Array
logsBloom
Data, 256 bytes
Bloom filter for light clients to quickly retrieve related logs.
status
Quantity
Either 0x0
(failure), 0x1
(success), or 0x2
(invalid).
to
Data, 20 bytes
Address of the receiver, if sending ether, otherwise, null.
transactionHash
Data, 32 bytes
Hash of the transaction.
transactionIndex
Quantity, Integer
Index position of transaction in the block.
transactionType
String
revertReason
String
Note
For pre-Byzantium transactions, the transaction receipt object includes the following instead of status
:
root
Data, 32 bytes
Post-transaction state root
Transaction trace object
Returned by trace_replayBlockTransactions
.
output
Boolean
Transaction result. 1 for success and 0 for failure.
stateDiff
Object
trace
Array
vmTrace
Object
transactionHash
Data, 32 bytes
Hash of the replayed transaction.
Private transaction receipt object
Returned by priv_getTransactionReceipt
.
blockHash
Data, 32 bytes
Hash of block containing this transaction.
blockNumber
Quantity
Block number of block containing this transaction.
contractAddress
Data, 20 bytes
Contract address created if a contract creation transaction, otherwise, null
.
from
Data, 20 bytes
Address of the sender.
logs
Array
to
Data, 20 bytes
Address of the receiver, if sending ether, otherwise, null.
transactionHash
Data, 32 bytes
Hash of the private transaction.
transactionIndex
Quantity, Integer
Index position of transaction in the block.
revertReason
String
output
Data
RLP-encoded return value of a contract call if a value returns, otherwise, null
.
commitmentHash
Data, 32 bytes
Hash of the privacy marker transaction.
status
Quantity
Either 0x1
(success) or 0x0
(failure).
privateFrom
Data, 32 bytes
privateFor or privacyGroupId
Array or Data, 32 bytes
logsBloom
Data, 256 bytes
Bloom filter for light clients to quickly retrieve related logs.
Last updated