Ens class

Available Extensions

Constructors

Ens({EthereumAddress? address, required Web3Client client, int? chainId})

Properties

chainId int?
finalinherited
client → Web3Client
finalinherited
ensAddress → EthereumAddress?
no setter
ensName String?
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
self → DeployedContract
finalinherited
textRecord EnsTextRecord?
no setter

Methods

abi(Uint8List node, BigInt contentTypes, {BlockNum? atBlock}) Future<ABI>
The optional atBlock parameter can be used to view historical data. When set, the function will be evaluated in the specified block. By default, the latest on-chain block will be used.
aBIChangedEvents({BlockNum? fromBlock, BlockNum? toBlock}) Stream<ABIChanged>
Returns a live stream of all ABIChanged events emitted by this contract.
addr(Uint8List node, {BlockNum? atBlock}) Future<EthereumAddress>
The optional atBlock parameter can be used to view historical data. When set, the function will be evaluated in the specified block. By default, the latest on-chain block will be used.
addr$2(Uint8List node, BigInt coinType, {BlockNum? atBlock}) Future<Uint8List>
The optional atBlock parameter can be used to view historical data. When set, the function will be evaluated in the specified block. By default, the latest on-chain block will be used.
addrChangedEvents({BlockNum? fromBlock, BlockNum? toBlock}) Stream<AddrChanged>
Returns a live stream of all AddrChanged events emitted by this contract.
addressChangedEvents({BlockNum? fromBlock, BlockNum? toBlock}) Stream<AddressChanged>
Returns a live stream of all AddressChanged events emitted by this contract.
authorisationChangedEvents({BlockNum? fromBlock, BlockNum? toBlock}) Stream<AuthorisationChanged>
Returns a live stream of all AuthorisationChanged events emitted by this contract.
authorisations(Uint8List $param5, EthereumAddress $param6, EthereumAddress $param7, {BlockNum? atBlock}) Future<bool>
The optional atBlock parameter can be used to view historical data. When set, the function will be evaluated in the specified block. By default, the latest on-chain block will be used.
checkSignature(ContractFunction function, String expected) bool
Returns whether the function has the expected selector.
inherited
clearDNSZone(Uint8List node, {required Credentials credentials, Transaction? transaction}) Future<String>
The optional transaction parameter can be used to override parameters like the gas price, nonce and max gas. The data and to fields will be set by the contract.
contenthash(Uint8List node, {BlockNum? atBlock}) Future<Uint8List>
The optional atBlock parameter can be used to view historical data. When set, the function will be evaluated in the specified block. By default, the latest on-chain block will be used.
contenthashChangedEvents({BlockNum? fromBlock, BlockNum? toBlock}) Stream<ContenthashChanged>
Returns a live stream of all ContenthashChanged events emitted by this contract.
dnsRecord(Uint8List node, Uint8List name, BigInt resource, {BlockNum? atBlock}) Future<Uint8List>
The optional atBlock parameter can be used to view historical data. When set, the function will be evaluated in the specified block. By default, the latest on-chain block will be used.
dNSRecordChangedEvents({BlockNum? fromBlock, BlockNum? toBlock}) Stream<DNSRecordChanged>
Returns a live stream of all DNSRecordChanged events emitted by this contract.
dNSRecordDeletedEvents({BlockNum? fromBlock, BlockNum? toBlock}) Stream<DNSRecordDeleted>
Returns a live stream of all DNSRecordDeleted events emitted by this contract.
dNSZoneClearedEvents({BlockNum? fromBlock, BlockNum? toBlock}) Stream<DNSZoneCleared>
Returns a live stream of all DNSZoneCleared events emitted by this contract.
hasDNSRecords(Uint8List node, Uint8List name, {BlockNum? atBlock}) Future<bool>
The optional atBlock parameter can be used to view historical data. When set, the function will be evaluated in the specified block. By default, the latest on-chain block will be used.
interfaceChangedEvents({BlockNum? fromBlock, BlockNum? toBlock}) Stream<InterfaceChanged>
Returns a live stream of all InterfaceChanged events emitted by this contract.
interfaceImplementer(Uint8List node, Uint8List interfaceID, {BlockNum? atBlock}) Future<EthereumAddress>
The optional atBlock parameter can be used to view historical data. When set, the function will be evaluated in the specified block. By default, the latest on-chain block will be used.
name(Uint8List node, {BlockNum? atBlock}) Future<String>
The optional atBlock parameter can be used to view historical data. When set, the function will be evaluated in the specified block. By default, the latest on-chain block will be used.
nameChangedEvents({BlockNum? fromBlock, BlockNum? toBlock}) Stream<NameChanged>
Returns a live stream of all NameChanged events emitted by this contract.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pubkey(Uint8List node, {BlockNum? atBlock}) Future<Pubkey>
The optional atBlock parameter can be used to view historical data. When set, the function will be evaluated in the specified block. By default, the latest on-chain block will be used.
pubkeyChangedEvents({BlockNum? fromBlock, BlockNum? toBlock}) Stream<PubkeyChanged>
Returns a live stream of all PubkeyChanged events emitted by this contract.
read(ContractFunction function, List params, BlockNum? atBlock) Future<List>
inherited
reverseEns(EthereumAddress addr) Ens
setABI(Uint8List node, BigInt contentType, Uint8List data, {required Credentials credentials, Transaction? transaction}) Future<String>
The optional transaction parameter can be used to override parameters like the gas price, nonce and max gas. The data and to fields will be set by the contract.
setAddr(Uint8List node, BigInt coinType, Uint8List a, {required Credentials credentials, Transaction? transaction}) Future<String>
The optional transaction parameter can be used to override parameters like the gas price, nonce and max gas. The data and to fields will be set by the contract.
setAddr$2(Uint8List node, EthereumAddress a, {required Credentials credentials, Transaction? transaction}) Future<String>
The optional transaction parameter can be used to override parameters like the gas price, nonce and max gas. The data and to fields will be set by the contract.
setAuthorisation(Uint8List node, EthereumAddress target, bool isAuthorised, {required Credentials credentials, Transaction? transaction}) Future<String>
The optional transaction parameter can be used to override parameters like the gas price, nonce and max gas. The data and to fields will be set by the contract.
setContenthash(Uint8List node, Uint8List hash, {required Credentials credentials, Transaction? transaction}) Future<String>
The optional transaction parameter can be used to override parameters like the gas price, nonce and max gas. The data and to fields will be set by the contract.
setDNSRecords(Uint8List node, Uint8List data, {required Credentials credentials, Transaction? transaction}) Future<String>
The optional transaction parameter can be used to override parameters like the gas price, nonce and max gas. The data and to fields will be set by the contract.
setEnsTextRecord(EnsTextRecord? _) → void
setInterface(Uint8List node, Uint8List interfaceID, EthereumAddress implementer, {required Credentials credentials, Transaction? transaction}) Future<String>
The optional transaction parameter can be used to override parameters like the gas price, nonce and max gas. The data and to fields will be set by the contract.
setName(Uint8List node, String name, {required Credentials credentials, Transaction? transaction}) Future<String>
The optional transaction parameter can be used to override parameters like the gas price, nonce and max gas. The data and to fields will be set by the contract.
setPubkey(Uint8List node, Uint8List x, Uint8List y, {required Credentials credentials, Transaction? transaction}) Future<String>
The optional transaction parameter can be used to override parameters like the gas price, nonce and max gas. The data and to fields will be set by the contract.
setText(Uint8List node, String key, String value, {required Credentials credentials, Transaction? transaction}) Future<String>
The optional transaction parameter can be used to override parameters like the gas price, nonce and max gas. The data and to fields will be set by the contract.
supportsInterface(Uint8List interfaceID, {BlockNum? atBlock}) Future<bool>
The optional atBlock parameter can be used to view historical data. When set, the function will be evaluated in the specified block. By default, the latest on-chain block will be used.
text(Uint8List node, String key, {BlockNum? atBlock}) Future<String>
The optional atBlock parameter can be used to view historical data. When set, the function will be evaluated in the specified block. By default, the latest on-chain block will be used.
textChangedEvents({BlockNum? fromBlock, BlockNum? toBlock}) Stream<TextChanged>
Returns a live stream of all TextChanged events emitted by this contract.
toString() String
A string representation of this object.
inherited
withAddress(Object? _) Ens
withName(String? _name) Ens
write(Credentials credentials, Transaction? base, ContractFunction function, List parameters) Future<String>
inherited

Operators

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