TronRequestDeployContract class

Deploys a contract. Returns TransactionExtention, which contains an unsigned transaction. developers.tron.network.

Inheritance

Constructors

TronRequestDeployContract({required List<Map<String, dynamic>> abi, required String byteCode, int? feeLimit, int? originEnergyLimit, required TronAddress ownerAddress, required String name, int? callValue, int? consumeUserResourcePercent, int? permissionId, String? parameter, bool visible = true})

Properties

abi List<Map<String, dynamic>>
Smart Contract's Application Binary Interface
final
byteCode String
The compiled contract's identifier, used to interact with the Virtual Machine.
final
callValue int?
Amount of TRX transferred with this transaction, measured in SUN (1TRX = 1,000,000 SUN)
final
consumeUserResourcePercent int?
The same as User Pay Ratio. The percentage of resources specified for users who use this contract. This field accepts integers between 0, 100. If it is 0, it means the user does not consume resources until the developer resources are exhausted. However, it is strongly recommended to set the value between 1 and 99 (inclusive). This is prevent the contract developer from potential malicious infinite loop time out attacks.
final
feeLimit int?
Maximum TRX consumption, measured in SUN (1 TRX = 1,000,000 SUN).
final
hashCode int
The hash code for this object.
no setterinherited
method TronHTTPMethods
method for the request.
no setteroverride
name String
Contract name
final
originEnergyLimit int?
The max energy which will be consumed by the owner in the process of execution or creation of the contract, is an integer which should be greater than 0.
final
ownerAddress TronAddress
Contract owner address
final
parameter String?
Parameter passed to the constructor of the contract. Call the virtual machine format of the parameter 1, 2, use the js tool provided by remix, convert the parameter array 1, 2 called by the contract caller into the parameter format required by the virtual machine.
final
permissionId int?
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