DelegateResourceContractOrBuilder

Functions

Link copied to clipboard
abstract fun getBalance(): Long
Amount of TRX staked for resource to be delegated, unit is sun, data type is uint256
int64 balance = 3;
Link copied to clipboard
abstract fun getLock(): Boolean
Whether it is locked, if it is set to true, the delegated resources cannot be undelegated within 3 days.
When the lock time is not over, if the owner delegates the same resources using the lock to the same address,
the lock time will be reset to 3 days
bool lock = 5;
Link copied to clipboard
abstract fun getOwnerAddress(): String
Address of transaction initiator, data type is string
string owner_address = 1;
Link copied to clipboard
abstract fun getOwnerAddressBytes(): ByteString
Address of transaction initiator, data type is string
string owner_address = 1;
Link copied to clipboard
abstract fun getReceiverAddress(): String
Receiver address of resource to be delegated to
string receiver_address = 4;
Link copied to clipboard
abstract fun getReceiverAddressBytes(): ByteString
Receiver address of resource to be delegated to
string receiver_address = 4;
Link copied to clipboard
abstract fun getResource(): String
Resource type, "BANDWIDTH" or "ENERGY", data type is string
string resource = 2;
Link copied to clipboard
abstract fun getResourceBytes(): ByteString
Resource type, "BANDWIDTH" or "ENERGY", data type is string
string resource = 2;

Inheritors

Link copied to clipboard