---
title: "Get the contract result from a contract on the network executed at a given timestamp"
method: GET
path: "/api/v1/contracts/{contractIdOrAddress}/results/{timestamp}"
tags: ["contracts"]
---

# Get the contract result from a contract on the network executed at a given timestamp

`GET /api/v1/contracts/{contractIdOrAddress}/results/{timestamp}`

Returns a single ContractResult for a contract's function executions at a specific timestamp.

## Path parameters

- `contractIdOrAddress` string, required
- `timestamp` string, required

## Query parameters

- `hbar` boolean

## Response `200`

OK

- ContractResultDetails
  - `access_list` string, nullable — The hex encoded access_list of the wrapped ethereum transaction
  - `address` string — The hex encoded evm address of contract
  - `amount` integer, nullable — The amount sent to the function. When `hbar=true` (default), the value is in tinybars. When `hbar=false`, the value is in weibars.
  - `block_gas_used` integer, nullable — The total amount of gas used in the block
  - `block_hash` string, nullable — The hex encoded block (record file chain) hash
  - `block_number` integer, nullable — The block height calculated as the number of record files starting from zero since network start.
  - `bloom` string, binary, nullable — The hex encoded bloom filter of the contract result
  - `call_result` string, nullable — The hex encoded result returned by the function
  - `chain_id` string, nullable — The hex encoded chain_id of the wrapped ethereum transaction
  - `contract_id` string, nullable — Network entity ID in the format of `shard.realm.num`
  - `created_contract_ids` EntityId[], nullable — The list of smart contracts that were created by the function call.
  - `error_message` string, nullable — The message when an error occurs during smart contract execution
  - `failed_initcode` string — The hex encoded initcode of a failed contract create transaction
  - `from` string, binary, nullable — A network entity encoded as an EVM address in hex.
  - `function_parameters` string, nullable — The hex encoded parameters passed to the function
  - `gas_consumed` integer, nullable — The units of consumed gas by the EVM to execute contract
  - `gas_limit` integer — The maximum units of gas allowed for contract execution
  - `gas_price` string, nullable — The hex encoded gas_price of the wrapped ethereum transaction
  - `gas_used` integer, nullable — The units of gas used to execute contract
  - `hash` string — The hex encoded transaction hash
  - `max_fee_per_gas` string, nullable — The hex encoded max_fee_per_gas of the wrapped ethereum transaction
  - `max_priority_fee_per_gas` string, nullable — The hex encoded max_priority_fee_per_gas of the wrapped ethereum transaction
  - `nonce` integer, nullable — The nonce of the wrapped ethereum transaction
  - `r` string, nullable — The hex encoded signature_r of the wrapped ethereum transaction
  - `result` string — The result of the transaction
  - `s` string, nullable — The hex encoded signature_s of the wrapped ethereum transaction
  - `status` string — The status of the transaction, 0x1 for a SUCCESS transaction and 0x0 for all else
  - `timestamp` string — A Unix timestamp in seconds.nanoseconds format
  - `to` string, binary, nullable — A network entity encoded as an EVM address in hex.
  - `transaction_index` integer, nullable — The position of the transaction in the block
  - `type` integer, nullable — The type of the wrapped ethereum transaction, 0 (Pre-Eip1559) or 2 (Post-Eip1559)
  - `v` integer, nullable — The recovery_id of the wrapped ethereum transaction
  - `logs` ContractResultLog[]
    - `address` string — The hex encoded EVM address of the contract
    - `bloom` string, binary, nullable — The hex encoded bloom filter of the contract log
    - `contract_id` string, nullable — Network entity ID in the format of `shard.realm.num`
    - `data` string, nullable — The hex encoded data of the contract log
    - `index` integer — The index of the contract log in the chain of logs for an execution
    - `topics` string[] — A list of hex encoded topics associated with this log event
  - `state_changes` ContractResultStateChange[]
    - `address` string, binary — A network entity encoded as an EVM address in hex.
    - `contract_id` string, nullable — Network entity ID in the format of `shard.realm.num`
    - `slot` string, binary — The hex encoded storage slot changed.
    - `value_read` string, binary — The hex encoded value read from the storage slot.
    - `value_written` string, binary, nullable — The hex encoded value written to the slot. `null` implies no value written.

## Other responses

- `206` — Partial Content
- `400` — Invalid parameter
- `404` — Not Found

---

[API](https://skmtc.dev/hedera/apis/mirror-node-rest-api.md) · [All operations](https://skmtc.dev/hedera/apis/mirror-node-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/hedera/mirror-node-rest-api/revisions/45f5ccac560c/schema)
