TronRequestEstimateEnergy class
Estimate the energy required for the successful execution of smart contract transactions or deploying a contract. developers.tron.network.
Constructors
- TronRequestEstimateEnergy({required TronAddress ownerAddress, required TronAddress contractAddress, required String functionSelector, required String parameter, String? data, BigInt? callValue, BigInt? callTokenValue, BigInt? tokenId, bool visible = true})
Properties
- callTokenValue → BigInt?
-
Amount of TRC10 token transferred with this transaction
final
- callValue → BigInt?
-
Amount of TRX transferred with this transaction, measured in SUN (1 TRX = 1,000,000 SUN).
final
- contractAddress → TronAddress
-
Smart contract address
final
- data → String?
-
The bytecode of the contract or the data for interacting with smart contracts,
including the contract function and parameters. You can choose to use this field, or you can choose to use function_selector and parameter for contract interaction. When both of data and function_selector exist, function_selector is preferred
final
- functionSelector → String
-
Function call, must not be left blank.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- method → TronHTTPMethods
-
wallet/estimateenergy
no setteroverride
- ownerAddress → TronAddress
-
Owner address that triggers the contract
final
- parameter → String
-
Parameter encoding needs to be in accordance with the ABI rules, the rules are more complicated, users can use the ethers library to encode,For details,
please refer to the document-Guide-Smart Contract-Best Practice-Parameter Encoding and Decoding.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- tokenId → BigInt?
-
TRC10 token id
final
- 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) → Map<String, dynamic> -
Converts the response result to the specified type
RESULT
.inherited -
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