Class ContractCallResult
Represents the results returned from a contract call.
Implements
Inherited Members
Namespace: Hiero
Assembly: Hiero.dll
Syntax
public sealed record ContractCallResult : IEquatable<ContractCallResult>
Properties
| Edit this page View SourceBloom
Bloom filter for record
Declaration
public ReadOnlyMemory<byte> Bloom { get; }
Property Value
| Type | Description |
|---|---|
| ReadOnlyMemory<byte> |
Contract
ID of the contract that was called.
Declaration
public EntityId Contract { get; }
Property Value
| Type | Description |
|---|---|
| EntityId |
Error
An error returned from the system if there was a problem.
Declaration
public EncodedParams Error { get; }
Property Value
| Type | Description |
|---|---|
| EncodedParams |
Events
Log events returned by the function.
Declaration
public ReadOnlyCollection<ContractEvent> Events { get; }
Property Value
| Type | Description |
|---|---|
| ReadOnlyCollection<ContractEvent> |
EvmAddress
The contract's 20-byte EVM address, may or may not
correspond to the shard.realm.num encoded, an
EIP-1014 derived address or
None
if not returned from the network.
Declaration
public EvmAddress EvmAddress { get; }
Property Value
| Type | Description |
|---|---|
| EvmAddress |
GasLimit
The amount of gas available for the call.
Declaration
public long GasLimit { get; }
Property Value
| Type | Description |
|---|---|
| long |
GasUsed
The amount of gas that was used.
Declaration
public ulong GasUsed { get; }
Property Value
| Type | Description |
|---|---|
| ulong |
Input
The encoded selector parameters passed into the contract call.
Declaration
public EncodedParams Input { get; }
Property Value
| Type | Description |
|---|---|
| EncodedParams |
MessageSender
The account that is the "message.sender" of the contract call, if not present it is the transaction Payer.
Declaration
public EntityId MessageSender { get; }
Property Value
| Type | Description |
|---|---|
| EntityId |
Nonces
A list of updated contract account nonces containing the new nonce value for each contract account involved in this transaction. For query transactions, this should be empty as a contract query call does not change the state of the EVM.
Declaration
public ReadOnlyDictionary<EntityId, long> Nonces { get; }
Property Value
| Type | Description |
|---|---|
| ReadOnlyDictionary<EntityId, long> |
PayableAmount
Number of tinybars sent into this contract transaction call (the function must be payable if this is nonzero).
Declaration
public long PayableAmount { get; }
Property Value
| Type | Description |
|---|---|
| long |
Result
The values returned from the contract call.
Declaration
public EncodedParams Result { get; }
Property Value
| Type | Description |
|---|---|
| EncodedParams |