Hierarchy

  • ObservableWallet

Implemented by

Properties

addresses$: Observable<WalletAddress[]>
assetInfo$: Observable<Assets>

All owned and historical assets

currentEpoch$: Observable<EpochInfo>
delegation: DelegationTracker

dRepDelegatee from delegation.rewardAccounts$ is not always up-to-date. It is refreshed when either the DReps currently delegated to change (usually detected while inspecting the transaction history), or when a TxBuilder created with createTxBuilder() is used to build() and either inspect() or sign() a transaction.

eraSummaries$: Observable<EraSummary[]>
genesisParameters$: Observable<CompactGenesis>
governance: {
    isRegisteredAsDRep$: Observable<boolean>;
    getPubDRepKey(): Promise<undefined | Ed25519PublicKeyHex>;
}

Type declaration

  • Readonly isRegisteredAsDRep$: Observable<boolean>

    true this wallet is registered as drep

  • getPubDRepKey:function
handles$: Observable<HandleInfo[]>
protocolParameters$: Observable<ProtocolParameters>
publicStakeKeys$: Observable<PubStakeKeyAndStatus[]>
syncStatus: SyncStatus
tip$: Observable<PartialBlockHeader>
transactions: TransactionsTracker

Methods

  • Discover addresses that might have been created by other applications. This is run automatically when the wallet is first created.

    Returns

    Promise that resolves when discovery is complete, with an updated array of wallet addresses

    Returns Promise<WalletAddress[]>

  • Get the next unused address for the wallet.

    Returns

    Promise that resolves with the next unused addresses. Return an empty array if there are no available unused addresses (I.E Single address wallets such as script wallets which already used up their only address).

    Returns Promise<WalletAddress[]>

Generated using TypeDoc