ENSResolver class

Inheritance
Implemented types
Implementers

Constructors

ENSResolver(Uint8List addressBytes, {bool ens = false, ChainBaseApiBase? client})

Properties

addressBytes Uint8List
finalinherited
client ChainBaseApiBase?
read / write
ens String?
read-onlyoverride
hashCode int
The hash code for this object.
read-onlyinherited
hex String
A hexadecimal representation of this address, padded to a length of 40 characters or 20 bytes, and prefixed with "0x".
read-onlyinherited
hexEip55 String
Returns this address in a hexadecimal representation, like with hex. The hexadecimal characters A-F in the address will be in lower- or uppercase depending on EIP 55.
read-onlyinherited
hexNo0x String
A hexadecimal representation of this address, padded to a length of 40 characters or 20 bytes, but not prefixed with "0x".
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

avatarUrl() String
inherited
compareTo(EthereumAddress other) int
Compares this object to another object.
inherited
diceAvatar() String
inherited
formattedAddress({int length = 6}) String
inherited
getEnsName() Future<String?>?
Gets the ENS name associated with the current address.
override
getEnsNameForAddress(EthereumAddress address) Future<String?>?
Converts an Ethereum address to its corresponding ENS name.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toEthAddress() EthereumAddress
inherited
toString() String
A string representation of this object.
inherited
withClient(ChainBaseApiBase client) ENSResolverBase
Returns a new ENSResolver instance with the specified client.
override

Operators

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

Static Methods

fromEns(String name, {ChainBaseApiBase? client}) Future<ENSResolver?>?
Creates an instance of ENSResolver from an ENS name.