TronAddress class

Class representing a Tron address, implementing the BaseHexAddress interface

Inheritance
Available extensions

Constructors

TronAddress.new(String address, {bool? visible})
Factory method to create a TronAddress from a Tron address string
factory
TronAddress.fromBytes(List<int> addrBytes)
Factory method to create a TronAddress from hex bytes
factory
TronAddress.fromEthAddress(List<int> addrBytes)
Factory method to create a TronAddress from an Ethereum address represented as bytes
factory
TronAddress.fromPublicKey(List<int> keyBytes)
Factory method to create a TronAddress from a Tron public key represented as a list of integers
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toAddress([bool visible = true]) String
Method to get the Tron address as a string, with an option to visible address (base58) or hex address
toBytes() List<int>
Converts the hexadecimal address to a bytes.
inherited
toEthereumAddress() ETHAddress

Available on SolidityAddress, provided by the ToEthereumAddress extension

toHex() String
inherited
toString([bool visible = true]) String
Method to get the Tron address as a string, with an option to visible address (base58) or hex address
override
toTronAddress() TronAddress

Available on SolidityAddress, provided by the ToTronAddress extension

Operators

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

Constants

lengthInBytes → const int
Constant representing the length of the Tron address in bytes