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

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

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
string
The access list for the transaction
address
string
The address involved in the contract execution
amount
integer
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
string
A list of IDs of contracts created during the execution
error_message
string
The error message, if any, generated during execution
failed_initcode
string
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
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
The actual amount of gas used by the transaction
hash
string
The hash of the transaction
max_fee_per_gas
string
The maximum fee per unit of gas willing to be paid
max_priority_fee_per_gas
string
The maximum priority fee per unit of gas willing to be paid
nonce
integer
The nonce value for the transaction
r
string
The first part of the ECDSA signature
result
string
The result of the transaction execution
s
string
The second part of the ECDSA signature
status
integer
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
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
object
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
string
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
The new value written to the storage slot
Request
1
curl 'https://docs-demo.hedera-testnet.quiknode.pro/api/v1/contracts/results/0x9e2caa04ff8e45ac82beff4250670df9ead500f60c4e6bfdb18c92f1a2483085'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free