delegatecall. Setting this key is a more permissive version of the contractID key, which also requires the code in the active message frame to belong to the contract with the given id. See HIP-206: Hedera Token Service Precompiled Contract for Hedera SmartContract Service for more details.
The delegate contract ID can be set as Key.
Constructor
| Constructor | Type | Description |
|---|---|---|
new DelegateContractId(<shard, realm, num>) | long, long, long | Constructs a DelegateContractId with 0 for shardNum and realmNum (e.g., 0.0.<Num>) |
Methods
| Methods | Type | Description |
|---|---|---|
DelegateContractId.fromString(<id>) | String | Constructs a delegate contract ID from a String |
DelegateContractId.fromBytes(<bytes>) | bytes | Constructs a delegate contract ID from bytes |
DelegateContractId.fromSolidityAddress(address) | address | Constructs a delegate contract ID from Solidity address |