DelegateResourceContract

delegate resource
Protobuf type TW.Tron.Proto.DelegateResourceContract

Types

Link copied to clipboard
class Builder
delegate resource
Protobuf type TW.Tron.Proto.DelegateResourceContract

Functions

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 getDefaultInstance(): DelegateResourceContract
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
Link copied to clipboard
open fun parseDelimitedFrom(input: InputStream): DelegateResourceContract
open fun parseDelimitedFrom(input: InputStream, extensionRegistry: ExtensionRegistryLite): DelegateResourceContract
Link copied to clipboard
open fun parseFrom(data: Array<Byte>): DelegateResourceContract
open fun parseFrom(data: ByteString): DelegateResourceContract
open fun parseFrom(input: CodedInputStream): DelegateResourceContract
open fun parseFrom(input: InputStream): DelegateResourceContract
open fun parseFrom(data: ByteBuffer): DelegateResourceContract
open fun parseFrom(data: Array<Byte>, extensionRegistry: ExtensionRegistryLite): DelegateResourceContract
open fun parseFrom(data: ByteString, extensionRegistry: ExtensionRegistryLite): DelegateResourceContract
open fun parseFrom(input: CodedInputStream, extensionRegistry: ExtensionRegistryLite): DelegateResourceContract
open fun parseFrom(input: InputStream, extensionRegistry: ExtensionRegistryLite): DelegateResourceContract
open fun parseFrom(data: ByteBuffer, extensionRegistry: ExtensionRegistryLite): DelegateResourceContract
Link copied to clipboard
open fun parser(): Parser<DelegateResourceContract>

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard