Get Contract Results

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

This method will use 20 Compute Units.


List contract results from a contract on the network

get

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

Path parameters
contractIdOrAddressstringRequired

The ID or hex encoded EVM address (with or without 0x prefix) associated with this contract.

Pattern: ^(\d{1,10}\.){0,2}(\d{1,10}|(0x)?[A-Fa-f0-9]{40})$
Query parameters
block.hashstringOptional

The block's hash

Example: {"summary":"--","value":""}Pattern: ^(eq:)?(0x)?([0-9A-Fa-f]{64}|[0-9A-Fa-f]{96})$
block.numberstringOptional

The block's number

Example: {"summary":"--","value":""}Pattern: ^(eq:)?(\d{1,19}|0x[a-fA-f0-9]+)$
fromstringOptional

Account ID or EVM address executing the contract

Pattern: ^\d{1,10}\.\d{1,10}\.\d{1,10}|(0x)?[A-Fa-f0-9]{40}$
internalbooleanOptional

Whether to include child transactions or not

Default: falseExample: true
limitinteger · int32 · min: 1 · max: 100Optional

The maximum number of items to return

Default: 25Example: 2
orderundefined · enumOptional

The order in which items are listed

Default: descExample: ascPossible values:
timestampstring[]Optional

The consensus timestamp in seconds.nanoseconds format with an optional comparison operator

Example: {"summary":"--","value":""}
transaction.indexinteger · int32Optional

The transaction index in the block

Example: 1
Responses
get
/api/v1/contracts/{contractIdOrAddress}/results

Last updated

Was this helpful?