SmartContract class
- Inheritance
-
- Object
- TronProtocolBufferImpl
- SmartContract
Constructors
-
SmartContract({required TronAddress originAddress, TronAddress? contractAddress, required SmartContractABI? abi, required List<
int> bytecode, BigInt? callValue, BigInt? consumeUserResourcePercent, String? name, BigInt? originEnergyLimit, List<int> ? codeHash, List<int> ? trxHash, int? version}) - Create a new SmartContract instance with specified parameters.
-
SmartContract.fromJson(Map<
String, dynamic> json) -
Create a new SmartContract instance by parsing a JSON map.
factory
Properties
- abi → SmartContractABI?
-
final
-
bytecode
→ List<
int> -
final
- callValue → BigInt?
-
final
-
codeHash
→ List<
int> ? -
final
- consumeUserResourcePercent → BigInt?
-
final
- contractAddress → TronAddress?
-
final
-
fieldIds
→ List<
int> -
List of field IDs corresponding to the values.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String?
-
final
- originAddress → TronAddress
-
final
- originEnergyLimit → BigInt?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- toHex → String
-
Gets the hexadecimal representation of the protocol buffer data.
no setterinherited
-
trxHash
→ List<
int> ? -
final
- values → List
-
List of dynamic values to be encoded.
no setteroverride
- version → int?
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toBuffer(
) → List< int> -
Converts the protocol buffer data to a byte buffer.
inherited
-
toJson(
) → Map< String, dynamic> -
Convert the SmartContract object to a JSON representation.
override
-
toString(
) → String -
Convert the SmartContract object to its string representation.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited