Skip to main content

/api/v1/contracts/results REST API Endpoint

Returns a list of all ContractResults for all contract's function executions.

Updated on
Aug 23, 2024

/api/v1/contracts/results REST API Endpoint

Please note that this method is currently available only on the testnet and will be accessible on the mainnet soon.

Query Parameters

block.hash
string
The consensus timestamp as a Unix timestamp in seconds.nanoseconds format with an optional comparison operator
block.number
string
The block's number
from
string
The account ID or EVM address executing the contract
internal
boolean
Whether to include child transactions or not
limit
integer
The maximum number of items to return
order
string
The order in which items are listed (asc or desc)
timestamp
array
The consensus timestamp as a Unix timestamp in seconds.nanoseconds format with an optional comparison operator
transaction.index
integer
The transaction index in the block

Returns

result
object
The result object which contains the following fields:
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
object
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
Request
1
curl 'https://docs-demo.hedera-mainnet.quiknode.pro/api/v1/contracts/results'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free