t

org.bitcoins.core.api.wallet

RescanHandlingApi

trait RescanHandlingApi extends AnyRef

Linear Supertypes
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. RescanHandlingApi
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def discoveryBatchSize(): Int
  2. abstract def findMatches(filters: Vector[FilterResponse], scripts: Vector[ScriptPubKey], parallelismLevel: Int): Future[Vector[BlockMatchingResponse]]
  3. abstract def isRescanning(): Future[Boolean]
  4. abstract def rescanNeutrinoWallet(startOpt: Option[BlockStamp], endOpt: Option[BlockStamp], addressBatchSize: Int, useCreationTime: Boolean, force: Boolean): Future[RescanState]

    Recreates the account using BIP-157 approach

    Recreates the account using BIP-157 approach

    DANGER! This method removes all records from the wallet database and creates new ones while the account discovery process.

    The Wallet UI should check if the database is empty before calling this method and let the end users to decide whether they want to proceed or not.

    This method generates addressBatchSize of addresses, then matches them against the BIP-158 compact filters, and downloads and processes the matched blocks. This method keeps doing the steps until there are WalletConfig.addressGapLimit or more unused addresses in a row. In this case it considers the discovery process completed.

    addressBatchSize - the number of addresses we should generate from a keychain to attempt to match in in a rescan WalletConfig.addressGapLimit - the number of addresses required to go without a match before we determine that our wallet is "discovered". For instance, if addressBatchSize=100, and AddressGapLimit=20 we do a rescan and the last address we find containing funds is at index 75, we would not generate more addresses to try and rescan. However if the last index containing funds was 81, we would generate another 100 addresses from the keychain and attempt to rescan those.

    startOpt

    start block (if None it starts from the genesis block)

    endOpt

    end block (if None it ends at the current tip)

    addressBatchSize

    how many addresses to match in a single pass

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  9. def fullRescanNeutrinoWallet(addressBatchSize: Int, force: Boolean = false): Future[RescanState]

    Helper method to rescan the ENTIRE blockchain.

  10. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  13. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  14. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  15. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  16. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  17. def toString(): String
    Definition Classes
    AnyRef → Any
  18. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  19. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  20. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from AnyRef

Inherited from Any

Ungrouped