TronRequestDelegateResource class

Delegate bandwidth or energy resources to other accounts in Stake2.0. developers.tron.network.

Inheritance

Constructors

TronRequestDelegateResource({required TronAddress ownerAddress, required TronAddress receiverAddress, required BigInt balance, required String? resource, bool? lock = false, BigInt? lockPeriod, int? permissionId, bool visible = true})
TronRequestDelegateResource.fromContract(DelegateResourceContract contract, {int? permissionId})
factory

Properties

balance BigInt
Resource delegate amount, the unit is sun
final
hashCode int
The hash code for this object.
no setterinherited
lock bool?
Whether to lock the resource delegation, true means locked the delegation, the delegating cannot be canceled within the period specified by lock_period, false means non-locked, the resource delegating can be canceled at any time
final
lockPeriod BigInt?
Lock period, the unit is block interval(3 seconds). Only when lock is true, this field is valid. If the delegate lock period is 1 day, the lock_period is 28800.
final
method TronHTTPMethods
wallet/delegateresource
no setteroverride
ownerAddress TronAddress
Account address
final
permissionId int?
for multi-signature use
final
receiverAddress TronAddress
Resource receiver address
final
resource String?
Resource type
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
visible bool
Indicates whether the address is visible.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onResonse(Map<String, dynamic> result) ParsedContractRequest
Converts the response result to the specified type RESULT.
override
toJson() Map<String, dynamic>
Converts the request parameters to a JSON format.
override
toRequest(int _) TronRequestDetails
Converts the request parameters to TronRequestDetails with a unique identifier.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited