Returns a single ContractResult for a contract's function executions for a given transactionId or ethereum transaction hash.
contracts
Getcontractresultbytransactionidorhash is an example object payload from Hedera, with 8 top-level fields. It illustrates the shape of data this provider's APIs accept or return.
{
"operationId": "getContractResultByTransactionIdOrHash",
"method": "GET",
"path": "/api/v1/contracts/results/{transactionIdOrHash}",
"summary": "Get the contract result from a contract on the network for a given transactionId or ethereum transaction hash",
"description": "Returns a single ContractResult for a contract's function executions for a given transactionId or ethereum transaction hash.",
"tags": [
"contracts"
],
"parameters": [
{
"name": "transactionIdOrHash",
"in": "path",
"description": "Transaction Id or a 32 byte hash with optional 0x prefix",
"required": true
},
{
"name": "hbar",
"in": "query",
"description": "Controls the unit used for monetary fields (`amount`, `gas_price`, `max_fee_per_gas`, `max_priority_fee_per_gas`). When `true` (default), values are returned in tinybars. When `false`, values are returned in weibars (the native Ethereum unit, where 1 tinybar = 10,000,000,000 weibars).",
"required": false
},
{
"name": "nonce",
"in": "query",
"description": "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.",
"required": false
}
],
"responses": {
"200": "OK",
"206": "Partial Content",
"400": "Invalid parameter",
"404": "Not Found"
}
}
Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. See our Privacy Policy and
Terms.