Hedera · Schema
ContractResult
Distributed LedgerBlockchainDLTHashgraphTransactionsTokensNFTsSmart ContractsEnterprise
Properties
| Name | Type | Description |
|---|---|---|
| access_list | array | The access list of the wrapped ethereum transaction |
| address | string | The hex encoded evm address of contract |
| authorization_list | array | The authorization list of the wrapped EIP-7702 ethereum transaction |
| amount | integernull | 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 | integernull | The total amount of gas used in the block |
| block_hash | stringnull | The hex encoded block (record file chain) hash |
| block_number | integernull | The block height calculated as the number of record files starting from zero since network start. |
| bloom | object | |
| call_result | stringnull | The hex encoded result returned by the function |
| chain_id | stringnull | The hex encoded chain_id of the wrapped ethereum transaction |
| contract_id | object | |
| created_contract_ids | arraynull | The list of smart contracts that were created by the function call. |
| error_message | stringnull | The message when an error occurs during smart contract execution |
| failed_initcode | string | The hex encoded initcode of a failed contract create transaction |
| from | object | |
| function_parameters | stringnull | The hex encoded parameters passed to the function |
| gas_consumed | integernull | 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 | stringnull | The hex encoded gas_price of the wrapped ethereum transaction. When `hbar=true` (default), the value is converted to tinybars. When `hbar=false`, the value is in weibars. |
| gas_used | integernull | The units of gas used to execute contract |
| hash | string | A hex encoded 32 byte hash and it is only populated for Ethereum transaction case |
| max_fee_per_gas | stringnull | The hex encoded max_fee_per_gas of the wrapped ethereum transaction. When `hbar=true` (default), the value is converted to tinybars. When `hbar=false`, the value is in weibars. |
| max_priority_fee_per_gas | stringnull | The hex encoded max_priority_fee_per_gas of the wrapped ethereum transaction. When `hbar=true` (default), the value is converted to tinybars. When `hbar=false`, the value is in weibars. |
| nonce | integernull | The nonce of the wrapped ethereum transaction |
| r | stringnull | The hex encoded signature_r of the wrapped ethereum transaction |
| result | string | The result of the transaction |
| s | stringnull | 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 | object | |
| to | object | |
| transaction_index | integernull | The position of the transaction in the block |
| type | integernull | The type of the wrapped ethereum transaction, 0 (Pre-Eip1559) or 2 (Post-Eip1559) |
| v | integernull | The recovery_id of the wrapped ethereum transaction |
JSON Schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/hedera/refs/heads/main/json-schema/ContractResult.json",
"title": "ContractResult",
"type": "object",
"properties": {
"access_list": {
"description": "The access list of the wrapped ethereum transaction",
"type": "array",
"items": {
"$ref": "#/components/schemas/AccessList"
}
},
"address": {
"description": "The hex encoded evm address of contract",
"example": "0x25fe26adc577cc89172e6156c9e24f7b9751b762",
"type": "string"
},
"authorization_list": {
"description": "The authorization list of the wrapped EIP-7702 ethereum transaction",
"type": "array",
"items": {
"$ref": "#/components/schemas/AuthorizationList"
}
},
"amount": {
"description": "The amount sent to the function. When `hbar=true` (default), the value is in tinybars. When `hbar=false`, the value is in weibars.",
"example": 10,
"format": "int64",
"type": [
"integer",
"null"
]
},
"block_gas_used": {
"description": "The total amount of gas used in the block",
"example": 2000,
"format": "int64",
"type": [
"integer",
"null"
]
},
"block_hash": {
"description": "The hex encoded block (record file chain) hash",
"example": "0x6ceecd8bb224da491",
"type": [
"string",
"null"
]
},
"block_number": {
"description": "The block height calculated as the number of record files starting from zero since network start.",
"example": 10,
"format": "int64",
"type": [
"integer",
"null"
]
},
"bloom": {
"allOf": [
{
"$ref": "#/components/schemas/Bloom"
},
{
"description": "The hex encoded bloom filter of the contract result"
}
]
},
"call_result": {
"description": "The hex encoded result returned by the function",
"example": "0x2b048531b38d2882e86044bc972e940ee0a01938",
"type": [
"string",
"null"
]
},
"chain_id": {
"description": "The hex encoded chain_id of the wrapped ethereum transaction",
"type": [
"string",
"null"
],
"example": "0x127"
},
"contract_id": {
"$ref": "#/components/schemas/EntityId"
},
"created_contract_ids": {
"description": "The list of smart contracts that were created by the function call.",
"items": {
"$ref": "#/components/schemas/EntityId"
},
"type": [
"array",
"null"
]
},
"error_message": {
"description": "The message when an error occurs during smart contract execution",
"example": "Out of gas",
"type": [
"string",
"null"
]
},
"failed_initcode": {
"description": "The hex encoded initcode of a failed contract create transaction",
"example": "0x856739",
"type": "string"
},
"from": {
"$ref": "#/components/schemas/EvmAddressNullable"
},
"function_parameters": {
"description": "The hex encoded parameters passed to the function",
"example": "0xbb9f02dc6f0e3289f57a1f33b71c73aa8548ab8b",
"type": [
"string",
"null"
]
},
"gas_consumed": {
"description": "The units of consumed gas by the EVM to execute contract",
"example": 35000,
"format": "int64",
"type": [
"integer",
"null"
]
},
"gas_limit": {
"description": "The maximum units of gas allowed for contract execution",
"example": 100000,
"format": "int64",
"type": "integer"
},
"gas_price": {
"description": "The hex encoded gas_price of the wrapped ethereum transaction. When `hbar=true` (default), the value is converted to tinybars. When `hbar=false`, the value is in weibars.",
"type": [
"string",
"null"
],
"example": "0x4a817c800"
},
"gas_used": {
"description": "The units of gas used to execute contract",
"example": 80000,
"format": "int64",
"type": [
"integer",
"null"
]
},
"hash": {
"description": "A hex encoded 32 byte hash and it is only populated for Ethereum transaction case",
"example": "0xfebbaa29c513d124a6377246ea3506ad917d740c21a88f61a1c55ba338fc2bb1",
"type": "string"
},
"max_fee_per_gas": {
"description": "The hex encoded max_fee_per_gas of the wrapped ethereum transaction. When `hbar=true` (default), the value is converted to tinybars. When `hbar=false`, the value is in weibars.",
"type": [
"string",
"null"
],
"example": "0x5"
},
"max_priority_fee_per_gas": {
"description": "The hex encoded max_priority_fee_per_gas of the wrapped ethereum transaction. When `hbar=true` (default), the value is converted to tinybars. When `hbar=false`, the value is in weibars.",
"type": [
"string",
"null"
],
"example": "0x100"
},
"nonce": {
"description": "The nonce of the wrapped ethereum transaction",
"format": "int64",
"type": [
"integer",
"null"
],
"example": 1
},
"r": {
"description": "The hex encoded signature_r of the wrapped ethereum transaction",
"type": [
"string",
"null"
],
"example": "0xd693b532a80fed6392b428604171fb32fdbf953728a3a7ecc7d4062b1652c043"
},
"result": {
"description": "The result of the transaction",
"example": "SUCCESS",
"type": "string"
},
"s": {
"description": "The hex encoded signature_s of the wrapped ethereum transaction",
"type": [
"string",
"null"
],
"example": "0x24e9c602ac800b983b035700a14b23f78a253ab762deab5dc27e3555a750b355"
},
"status": {
"description": "The status of the transaction, 0x1 for a SUCCESS transaction and 0x0 for all else",
"example": 1,
"type": "string"
},
"timestamp": {
"$ref": "#/components/schemas/Timestamp"
},
"to": {
"$ref": "#/components/schemas/EvmAddressNullable"
},
"transaction_index": {
"description": "The position of the transaction in the block",
"format": "int64",
"type": [
"integer",
"null"
],
"example": 1
},
"type": {
"description": "The type of the wrapped ethereum transaction, 0 (Pre-Eip1559) or 2 (Post-Eip1559)",
"type": [
"integer",
"null"
],
"example": 2
},
"v": {
"description": "The recovery_id of the wrapped ethereum transaction",
"type": [
"integer",
"null"
],
"example": 1
}
}
}