Module com.hedera.hashgraph.sdk
Package com.hedera.hashgraph.sdk.proto
Interface ContractIDOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
- All Known Implementing Classes:
ContractID,ContractID.Builder
@Generated
public interface ContractIDOrBuilder
extends com.google.protobuf.MessageLiteOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionlong* A whole number contract identifier, unique within its realm and shard.com.google.protobuf.ByteString* A 20-byte EVM address of the contract to call.long* A whole number realm identifier.long* A whole number shard identifier.boolean* A whole number contract identifier, unique within its realm and shard.boolean* A 20-byte EVM address of the contract to call.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getShardNum
long getShardNum()* A whole number shard identifier.
int64 shardNum = 1;- Returns:
- The shardNum.
-
getRealmNum
long getRealmNum()* A whole number realm identifier.
int64 realmNum = 2;- Returns:
- The realmNum.
-
hasContractNum
boolean hasContractNum()* A whole number contract identifier, unique within its realm and shard.
int64 contractNum = 3;- Returns:
- Whether the contractNum field is set.
-
getContractNum
long getContractNum()* A whole number contract identifier, unique within its realm and shard.
int64 contractNum = 3;- Returns:
- The contractNum.
-
hasEvmAddress
boolean hasEvmAddress()* A 20-byte EVM address of the contract to call. <p> A contract created via a HAPI `ContractCreate` call SHALL have an EVM address determined by its `shard.realm.num` identifier.<br/> This address is as follows <ol> <li>4 byte big-endian shard number</li> <li>8 byte big-endian realm number</li> <li>8 byte big-endian contract number</li> </ol> This address is not stored in state, but is computed when needed. <p> Contracts created by any other means, including a HAPI `EthereumTransaction` whose `to` address is the zero address, SHALL have the EVM address prescribed by the `CREATE` or `CREATE2` opcode, as applicable.
bytes evm_address = 4;- Returns:
- Whether the evmAddress field is set.
-
getEvmAddress
com.google.protobuf.ByteString getEvmAddress()* A 20-byte EVM address of the contract to call. <p> A contract created via a HAPI `ContractCreate` call SHALL have an EVM address determined by its `shard.realm.num` identifier.<br/> This address is as follows <ol> <li>4 byte big-endian shard number</li> <li>8 byte big-endian realm number</li> <li>8 byte big-endian contract number</li> </ol> This address is not stored in state, but is computed when needed. <p> Contracts created by any other means, including a HAPI `EthereumTransaction` whose `to` address is the zero address, SHALL have the EVM address prescribed by the `CREATE` or `CREATE2` opcode, as applicable.
bytes evm_address = 4;- Returns:
- The evmAddress.
-
getContractCase
ContractID.ContractCase getContractCase()
-