Skip to main content

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

Get the contract actions from a contract on the network for a given transactionId or ethereum transaction hash

Updated on
Aug 23, 2024

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

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

Path Parameters

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

Query Parameters

index
string
The contract log index
limit
integer
The maximum number of items to return
order
string
The order in which items are listed (asc or desc)

Returns

actions
array
An array of objects, each representing an action taken during a contract execution
call_depth
integer
The depth of the call in the call stack
call_operation_type
string
The type of call operation
call_type
string
The specific type of call being made
caller
string
The ID of the account or contract that initiated the call
caller_type
string
The type of the caller
from
string
The address that initiated the call
gas
integer
The amount of gas allocated for the call
gas_used
integer
The amount of gas used by the call
index
integer
The index of the action within the transaction
input
string
The input data for the call, typically the encoded function call and parameters
recipient
string
The ID of the recipient account or contract
recipient_type
string
The type of the recipient
result_data
string
The data returned by the call, if any
result_data_type
string
The type of data returned
timestamp
string
The timestamp of the action
to
string
The address of the recipient
value
integer
The amount of cryptocurrency transferred as part of the call
links
object
An object containing pagination links
next
string
A URL to fetch the next set of transactions, if available
Request
1
curl 'https://docs-demo.hedera-mainnet.quiknode.pro/api/v1/contracts/results/0x9e2caa04ff8e45ac82beff4250670df9ead500f60c4e6bfdb18c92f1a2483085/actions'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free