AddressIndex class sealed

Annotations
  • @freezed

Constructors

AddressIndex.increase()
Return a new address after incrementing the current descriptor index.
const
factory
AddressIndex.lastUnused()
Return the address for the current descriptor index if it has not been used in a received transaction. Otherwise return a new address as with AddressIndex.New. Use with caution, if the wallet has not yet detected an address has been used it could return an already used address. This function is primarily meant for situations where the caller is untrusted; for example when deriving donation addresses on-demand for a public web page.
const
factory
AddressIndex.peek({required int index})
Return the address for a specific descriptor index. Does not change the current descriptor index used by AddressIndex and AddressIndex.LastUsed. Use with caution, if an index is given that is less than the current descriptor index then the returned address may have already been used.
const
factory
AddressIndex.reset({required int index})
Return the address for a specific descriptor index and reset the current descriptor index used by AddressIndex and AddressIndex.LastUsed to this value. Use with caution, if an index is given that is less than the current descriptor index then the returned address and subsequent addresses returned by calls to AddressIndex and AddressIndex.LastUsed may have already been used. Also if the index is reset to a value earlier than the Blockchain stopGap (default is 20) then a larger stopGap should be used to monitor for all possibly used addresses.
const
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
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
toString() String
A string representation of this object.
inherited

Operators

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