Builder

class Builder
delegate resource
Protobuf type TW.Tron.Proto.DelegateResourceContract

Functions

Link copied to clipboard
Amount of TRX staked for resource to be delegated, unit is sun, data type is uint256
int64 balance = 3;
Link copied to clipboard
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
Address of transaction initiator, data type is string
string owner_address = 1;
Link copied to clipboard
Receiver address of resource to be delegated to
string receiver_address = 4;
Link copied to clipboard
Resource type, "BANDWIDTH" or "ENERGY", data type is string
string resource = 2;
Link copied to clipboard
open 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
open 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
Address of transaction initiator, data type is string
string owner_address = 1;
Link copied to clipboard
open fun getOwnerAddressBytes(): ByteString
Address of transaction initiator, data type is string
string owner_address = 1;
Link copied to clipboard
Receiver address of resource to be delegated to
string receiver_address = 4;
Link copied to clipboard
open fun getReceiverAddressBytes(): ByteString
Receiver address of resource to be delegated to
string receiver_address = 4;
Link copied to clipboard
open fun getResource(): String
Resource type, "BANDWIDTH" or "ENERGY", data type is string
string resource = 2;
Link copied to clipboard
open fun getResourceBytes(): ByteString
Resource type, "BANDWIDTH" or "ENERGY", data type is string
string resource = 2;
Link copied to clipboard
Amount of TRX staked for resource to be delegated, unit is sun, data type is uint256
int64 balance = 3;
Link copied to clipboard
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
Address of transaction initiator, data type is string
string owner_address = 1;
Link copied to clipboard
Address of transaction initiator, data type is string
string owner_address = 1;
Link copied to clipboard
Receiver address of resource to be delegated to
string receiver_address = 4;
Link copied to clipboard
Receiver address of resource to be delegated to
string receiver_address = 4;
Link copied to clipboard
Resource type, "BANDWIDTH" or "ENERGY", data type is string
string resource = 2;
Link copied to clipboard
Resource type, "BANDWIDTH" or "ENERGY", data type is string
string resource = 2;