Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
Interface ContractFunctionResultOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
- All Known Implementing Classes:
ContractFunctionResult,ContractFunctionResult.Builder
@Generated
public interface ContractFunctionResultOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionlong* An amount, in tinybar, sent by this function call.<br/> This SHALL be zero(0) if the function called is not `payable`.<br/> This field SHALL NOT be populated when the associated `TransactionBody` in the block stream is a `ContractCreateTransactionBody` or a `ContractCallTransactionBody`.com.google.protobuf.ByteStringgetBloom()* A bloom filter produced by this contract call.<br/> Ethereum uses this bloom filter to search for call results in the Ethereum block history.com.google.protobuf.ByteString* Result data from the function call.* A contract identifier.<br/> This identifies the smart contract that defines the function called.getContractNonces(int index) * A list of contract account nonce values.<br/> This list SHALL contain a nonce value for each contract account modified as a result of this contract call.int* A list of contract account nonce values.<br/> This list SHALL contain a nonce value for each contract account modified as a result of this contract call.* A list of contract account nonce values.<br/> This list SHALL contain a nonce value for each contract account modified as a result of this contract call.getCreatedContractIDs(int index) Deprecated.intDeprecated.Deprecated.* Any error message produced by the contract call.com.google.protobuf.ByteString* Any error message produced by the contract call.com.google.protobuf.BytesValue* A created contract address.<br/> If the function created a new contract (e.g.com.google.protobuf.ByteString* The smart contract function to call, and the parameters to pass to that function.<br/> These SHALL be presented in EVM bytecode function call format.<br/> This field SHALL NOT be populated when the associated `TransactionBody` in the block stream is a `ContractCreateTransactionBody` or a `ContractCallTransactionBody`.longgetGas()* The amount of gas available for this call, sometimes referred to as the gasLimit.<br/> This field SHALL NOT be populated when the associated `TransactionBody` in the block stream is a `ContractCreateTransactionBody` or a `ContractCallTransactionBody`.long* A quantity of "gas" used.<br/> This represents the resource units expended to execute this contract call, and correlates to transaction costs.getLogInfo(int index) * Any Log events produced by this contract call.int* Any Log events produced by this contract call.* Any Log events produced by this contract call.* The account that was the "sender" for this contract call.<br/> If this is not set it SHALL be read from the accountId in the transactionId for the contract call.<br/> This field SHALL NOT be populated when the associated `TransactionBody` in the block stream is a `ContractCreateTransactionBody` or a `ContractCallTransactionBody`.com.google.protobuf.Int64Value* A nonce value for the "signer account".<br/> If the contract call updated the signer nonce for the signer account (i.e.boolean* A contract identifier.<br/> This identifies the smart contract that defines the function called.boolean* A created contract address.<br/> If the function created a new contract (e.g.boolean* The account that was the "sender" for this contract call.<br/> If this is not set it SHALL be read from the accountId in the transactionId for the contract call.<br/> This field SHALL NOT be populated when the associated `TransactionBody` in the block stream is a `ContractCreateTransactionBody` or a `ContractCallTransactionBody`.boolean* A nonce value for the "signer account".<br/> If the contract call updated the signer nonce for the signer account (i.e.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
hasContractID
boolean hasContractID()* A contract identifier.<br/> This identifies the smart contract that defines the function called.
.proto.ContractID contractID = 1;- Returns:
- Whether the contractID field is set.
-
getContractID
ContractID getContractID()* A contract identifier.<br/> This identifies the smart contract that defines the function called.
.proto.ContractID contractID = 1;- Returns:
- The contractID.
-
getContractCallResult
com.google.protobuf.ByteString getContractCallResult()* Result data from the function call. <p> This SHALL be encoded in RLP bytecode format.
bytes contractCallResult = 2;- Returns:
- The contractCallResult.
-
getErrorMessage
String getErrorMessage()* Any error message produced by the contract call. <p> This SHALL be unset if the contract call succeeded.
string errorMessage = 3;- Returns:
- The errorMessage.
-
getErrorMessageBytes
com.google.protobuf.ByteString getErrorMessageBytes()* Any error message produced by the contract call. <p> This SHALL be unset if the contract call succeeded.
string errorMessage = 3;- Returns:
- The bytes for errorMessage.
-
getBloom
com.google.protobuf.ByteString getBloom()* A bloom filter produced by this contract call.<br/> Ethereum uses this bloom filter to search for call results in the Ethereum block history. High false positive rates make the bloom filters quite limited value.
bytes bloom = 4;- Returns:
- The bloom.
-
getGasUsed
long getGasUsed()* A quantity of "gas" used.<br/> This represents the resource units expended to execute this contract call, and correlates to transaction costs.
uint64 gasUsed = 5;- Returns:
- The gasUsed.
-
getLogInfoList
List<ContractLoginfo> getLogInfoList()* Any Log events produced by this contract call.
repeated .proto.ContractLoginfo logInfo = 6; -
getLogInfo
* Any Log events produced by this contract call.
repeated .proto.ContractLoginfo logInfo = 6; -
getLogInfoCount
int getLogInfoCount()* Any Log events produced by this contract call.
repeated .proto.ContractLoginfo logInfo = 6; -
getCreatedContractIDsList
Deprecated.* Replaced by values in transaction records to support `CREATE2` calls.<br/> <p> The list of smart contracts that were created by the function call.<br/> The created ids will now _also_ be externalized through internal transaction records, where each record has its alias field populated with the new contract's EVM address.<br/> This is needed for contracts created with CREATE2, which removes the trivial relationship between a new contract's Identifier and its Solidity address.
repeated .proto.ContractID createdContractIDs = 7 [deprecated = true]; -
getCreatedContractIDs
Deprecated.* Replaced by values in transaction records to support `CREATE2` calls.<br/> <p> The list of smart contracts that were created by the function call.<br/> The created ids will now _also_ be externalized through internal transaction records, where each record has its alias field populated with the new contract's EVM address.<br/> This is needed for contracts created with CREATE2, which removes the trivial relationship between a new contract's Identifier and its Solidity address.
repeated .proto.ContractID createdContractIDs = 7 [deprecated = true]; -
getCreatedContractIDsCount
Deprecated.* Replaced by values in transaction records to support `CREATE2` calls.<br/> <p> The list of smart contracts that were created by the function call.<br/> The created ids will now _also_ be externalized through internal transaction records, where each record has its alias field populated with the new contract's EVM address.<br/> This is needed for contracts created with CREATE2, which removes the trivial relationship between a new contract's Identifier and its Solidity address.
repeated .proto.ContractID createdContractIDs = 7 [deprecated = true]; -
hasEvmAddress
boolean hasEvmAddress()* A created contract address.<br/> If the function created a new contract (e.g. `CREATE2`), this is the primary 20-byte EVM address for that contract. <p> Every contract SHALL have a "base" EVM address that is determined by its `shard.realm.num` contract ID.<br/> This address is constructed as follows <ol> <li>The first 4 bytes are the big-endian representation of the shard.</li> <li>The next 8 bytes are the big-endian representation of the realm.</li> <li>The final 8 bytes are the big-endian representation of the number.</li> </ol> <p> Contracts created via `CREATE2` SHALL have an _additional_, primary, address that is derived from the <a href="https://eips.ethereum.org/EIPS/eip-1014"><tt>EIP-1014</tt></a> specification. This additional address SHALL NOT be directly related to the `shard.realm.num` contract ID.<br/> It should be emphasized that Contracts created via a `CREATE2` call can also be referenced via the same "base" EVM address as described above.
.google.protobuf.BytesValue evm_address = 9;- Returns:
- Whether the evmAddress field is set.
-
getEvmAddress
com.google.protobuf.BytesValue getEvmAddress()* A created contract address.<br/> If the function created a new contract (e.g. `CREATE2`), this is the primary 20-byte EVM address for that contract. <p> Every contract SHALL have a "base" EVM address that is determined by its `shard.realm.num` contract ID.<br/> This address is constructed as follows <ol> <li>The first 4 bytes are the big-endian representation of the shard.</li> <li>The next 8 bytes are the big-endian representation of the realm.</li> <li>The final 8 bytes are the big-endian representation of the number.</li> </ol> <p> Contracts created via `CREATE2` SHALL have an _additional_, primary, address that is derived from the <a href="https://eips.ethereum.org/EIPS/eip-1014"><tt>EIP-1014</tt></a> specification. This additional address SHALL NOT be directly related to the `shard.realm.num` contract ID.<br/> It should be emphasized that Contracts created via a `CREATE2` call can also be referenced via the same "base" EVM address as described above.
.google.protobuf.BytesValue evm_address = 9;- Returns:
- The evmAddress.
-
getGas
long getGas()* The amount of gas available for this call, sometimes referred to as the gasLimit.<br/> This field SHALL NOT be populated when the associated `TransactionBody` in the block stream is a `ContractCreateTransactionBody` or a `ContractCallTransactionBody`.
int64 gas = 10;- Returns:
- The gas.
-
getAmount
long getAmount()* An amount, in tinybar, sent by this function call.<br/> This SHALL be zero(0) if the function called is not `payable`.<br/> This field SHALL NOT be populated when the associated `TransactionBody` in the block stream is a `ContractCreateTransactionBody` or a `ContractCallTransactionBody`.
int64 amount = 11;- Returns:
- The amount.
-
getFunctionParameters
com.google.protobuf.ByteString getFunctionParameters()* The smart contract function to call, and the parameters to pass to that function.<br/> These SHALL be presented in EVM bytecode function call format.<br/> This field SHALL NOT be populated when the associated `TransactionBody` in the block stream is a `ContractCreateTransactionBody` or a `ContractCallTransactionBody`.
bytes functionParameters = 12;- Returns:
- The functionParameters.
-
hasSenderId
boolean hasSenderId()* The account that was the "sender" for this contract call.<br/> If this is not set it SHALL be read from the accountId in the transactionId for the contract call.<br/> This field SHALL NOT be populated when the associated `TransactionBody` in the block stream is a `ContractCreateTransactionBody` or a `ContractCallTransactionBody`.
.proto.AccountID sender_id = 13;- Returns:
- Whether the senderId field is set.
-
getSenderId
AccountID getSenderId()* The account that was the "sender" for this contract call.<br/> If this is not set it SHALL be read from the accountId in the transactionId for the contract call.<br/> This field SHALL NOT be populated when the associated `TransactionBody` in the block stream is a `ContractCreateTransactionBody` or a `ContractCallTransactionBody`.
.proto.AccountID sender_id = 13;- Returns:
- The senderId.
-
getContractNoncesList
List<ContractNonceInfo> getContractNoncesList()* A list of contract account nonce values.<br/> This list SHALL contain a nonce value for each contract account modified as a result of this contract call. These nonce values SHALL be the value after the contract call is completed.
repeated .proto.ContractNonceInfo contract_nonces = 14; -
getContractNonces
* A list of contract account nonce values.<br/> This list SHALL contain a nonce value for each contract account modified as a result of this contract call. These nonce values SHALL be the value after the contract call is completed.
repeated .proto.ContractNonceInfo contract_nonces = 14; -
getContractNoncesCount
int getContractNoncesCount()* A list of contract account nonce values.<br/> This list SHALL contain a nonce value for each contract account modified as a result of this contract call. These nonce values SHALL be the value after the contract call is completed.
repeated .proto.ContractNonceInfo contract_nonces = 14; -
hasSignerNonce
boolean hasSignerNonce()* A nonce value for the "signer account".<br/> If the contract call updated the signer nonce for the signer account (i.e. by creating another contract), this field SHALL contain the updated value.<br/> If the signer account nonce was not updated, this field SHALL be `null`.
.google.protobuf.Int64Value signer_nonce = 15;- Returns:
- Whether the signerNonce field is set.
-
getSignerNonce
com.google.protobuf.Int64Value getSignerNonce()* A nonce value for the "signer account".<br/> If the contract call updated the signer nonce for the signer account (i.e. by creating another contract), this field SHALL contain the updated value.<br/> If the signer account nonce was not updated, this field SHALL be `null`.
.google.protobuf.Int64Value signer_nonce = 15;- Returns:
- The signerNonce.
-