Skip to main content

/api/v1/contracts/results/{transactionIdOrHash} REST API Endpoint

Returns the contract result from a contract on the network for a given transactionId or ethereum transaction hash

Updated on
Dec 18, 2024

Path Parameters

transactionIdOrHash
string
REQUIRED

The transaction Id or a 32 byte hash with optional 0x prefix

Query Parameters

nonce
integer

Filter the query result by the nonce of the transaction. A zero nonce represents user submitted transactions while a non-zero nonce is generated by main nodes. The filter honors the last value. Default is 0 when not specified

Returns

access_list
array

An array of access list objects for the transaction. This field is empty in all environments until consensus nodes add access list support

address
string

The address that the transaction accesses

storage_keys
array

The storage slot keys the transaction accesses for the address

address
string

The address involved in the contract execution

amount
integer | null

The amount involved in the transaction

block_gas_used
integer

The amount of gas used by the block containing the transaction

block_hash
string

The hash of the block containing the transaction

block_number
integer

The number of the block containing the transaction

bloom
string

The bloom filter for the logs generated by the transaction

call_result
string

The result of the contract call

chain_id
string

The ID of the blockchain network

contract_id
string

The unique identifier of the contract

created_contract_ids
array

A list of IDs of contracts created during the execution

error_message
string | null

The error message, if any, generated during execution

failed_initcode
string | null

The initialization code that failed, if any

from
string

The address that initiated the transaction

function_parameters
string

The parameters provided to the contract function

gas_consumed
integer | null

The amount of gas consumed by the transaction

gas_limit
integer

The maximum amount of gas that could be used by the transaction

gas_price
string

The price per unit of gas

gas_used
integer | null

The actual amount of gas used by the transaction

hash
string

The hash of the transaction

max_fee_per_gas
string | null

The maximum fee per unit of gas willing to be paid

max_priority_fee_per_gas
string | null

The maximum priority fee per unit of gas willing to be paid

nonce
integer | null

The nonce value for the transaction

r
string | null

The first part of the ECDSA signature

result
string

The result of the transaction execution

s
string | null

The second part of the ECDSA signature

status
string

The status of the transaction

timestamp
string

The timestamp of the transaction

to
string

The recipient address of the transaction

transaction_index
integer

The index of the transaction within the block

type
integer

The type of the transaction

v
integer | null

The recovery id of the ECDSA signature

logs
array

An array of objects, each representing a log entry generated by a contract execution

address
string

The address of the contract that generated the log

bloom
string

The bloom filter for the log entry, used for quick searching

contract_id
string

The unique identifier of the contract that generated the log

data
string

The data field of the log entry

index
integer

The index position of the log within the transaction

topics
array

An array of indexed topics associated with the log entry

state_changes
array

An array of objects, each representing a state change resulting from a contract execution

address
string

The address of the contract where the state change occurred

contract_id
string

The unique identifier of the contract that caused the state change

slot
string

The specific storage slot in the contract's storage that was changed

value_read
string

The value read from the storage slot before the change

value_written
string | null

The new value written to the storage slot

Request
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free