Get Contract Actions by ID or Hash
Get the contract actions from a contract on the network for a given transactionId or ethereum transaction hash.
This method will use 20
Compute Units.
Get the contract actions from a contract on the network for a given transactionId or ethereum transaction hash
get
Returns a list of ContractActions for a contract's function executions for a given transactionId or ethereum transaction hash.
Path parameters
transactionIdOrHashstringRequiredExample:
Transaction Id or a 32 byte hash with optional 0x prefix
{"value":"0.0.10-1234567890-000000000"}
Pattern: ^(0x)?[A-Fa-f0-9]{64}|(\d{1,10})\.(\d{1,10})\.(\d{1,10})-(\d{1,19})-(\d{1,9})$
Query parameters
indexstringOptionalExample:
The index of a contract action
{"summary":"--","value":""}
Pattern: ^((gte?|lte?|eq|ne)\:)?\d{1,10}$
limitinteger · int32 · min: 1 · max: 100OptionalDefault:
The maximum number of items to return
25
Example: 2
orderundefined · enumOptionalDefault:
The order in which items are listed
asc
Example: desc
Possible values: Responses
200
OK
application/json
400
Invalid parameter
application/json
404
Not Found
application/json
get
GET /v1/YOUR_API_KEY/api/v1/contracts/results/{transactionIdOrHash}/actions HTTP/1.1
Host: mainnet.hedera.validationcloud.io
Accept: */*
{
"actions": [
{
"call_depth": 1,
"call_operation_type": "CALL",
"call_type": "CALL",
"caller": "0.1.2",
"caller_type": "ACCOUNT",
"from": "0x0000000000000000000000000000000000000065",
"gas": 50000,
"gas_used": 50000,
"index": 0,
"input": "0x123456",
"recipient": "0.1.2",
"recipient_type": "ACCOUNT",
"result_data": "0x123456",
"result_data_type": "OUTPUT",
"timestamp": "1586567700.453054000",
"to": "0x0000000000000000000000000000000000001f41",
"value": 50000
}
],
"links": {
"next": "/api/v1/transactions?timestamp=lt:1657598275.517984411"
}
}
Last updated
Was this helpful?