AddressEntity class
Address entity for efficient address lookup and metadata
- Annotations
-
- @collection
Constructors
- AddressEntity()
-
AddressEntity.fromJson(Map<
String, dynamic> json) -
Deserialize from JSON for restore
factory
Properties
- address ↔ String
-
Bitcoin address (base58) or payment destination identifier
getter/setter pair
- balance ↔ String
-
Current balance (as string for BigInt)
getter/setter pair
- chain ↔ int?
-
The address's chain, as AddressChain.index: the key is at
m/{chain}/{derivationIndex}. Null in a row written before the delegated
chain existed, whose chain isChange alone records.
getter/setter pair
- createdAt ↔ DateTime
-
When this address was generated/discovered
getter/setter pair
- derivationIndex ↔ int?
-
Derivation index (for quick range queries)
getter/setter pair
- derivationPath ↔ String?
-
Derivation path (e.g., "m/44'/0'/0'/0/0")
getter/setter pair
- firstUsedAt ↔ DateTime?
-
First time this address was used (received funds)
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- id ↔ int
-
getter/setter pair
- isChange ↔ bool
-
Whether the address is on the change chain. Written with chain for
every row, and the only chain record of a row written before chain
existed; read it through AddressChain.fromRecord, never on its own.
getter/setter pair
- isWatched ↔ bool
-
Is this address currently being watched?
getter/setter pair
- label ↔ String?
-
Address label (user-friendly name)
getter/setter pair
- lastUsedAt ↔ DateTime?
-
Last time this address was used
getter/setter pair
- purpose ↔ String
-
Address purpose ('receive', 'change', 'invoice', 'import')
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- scriptType ↔ String
-
Script type: 'p2pkh', 'p2pk', 'p2ms', 'p2sh', 'custom', 'unknown'
getter/setter pair
- type42AnchorContext ↔ String?
-
getter/setter pair
- type42AnchorPublicKey ↔ String?
-
The anchor key (compressed hex) a type-42 address was derived from, and
the context (hex) the wallet issued it for (bead libspiffy-fdal).
getter/setter pair
- type42InvoiceNumber ↔ String?
-
The invoice number of a type-42 address, with type42SenderPublicKey.
getter/setter pair
- type42SenderPublicKey ↔ String?
-
The payer's public key (compressed hex) of a type-42 address: one a
payer derived from the wallet's anchor key (bead libspiffy-zxkd,
Type42Derivation). Null for every other address; a type-42 row has no chain and no derivationIndex.getter/setter pair - usageCount ↔ int
-
Number of times this address has been used
getter/setter pair
- walletId ↔ String
-
Wallet ID this address belongs to
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Serialize to JSON for backup
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited