Class CbfBuilder

  • All Implemented Interfaces:
    java.lang.AutoCloseable , org.bitcoindevkit.CbfBuilderInterface , org.bitcoindevkit.Disposable

    public class CbfBuilder
     implements Disposable, AutoCloseable, CbfBuilderInterface
                        

    Build a BIP 157/158 light client to fetch transactions for a Wallet.

    Options:

    • List of Peer: Bitcoin full-nodes for the light client to connect to. May be empty.

    • connections: The number of connections for the light client to maintain.

    • scan_type: Sync, recover, or start a new wallet. For more information see `ScanType`.

    • data_dir: Optional directory to store block headers and peers.

    A note on recovering wallets. Developers should allow users to provide an approximate recovery height and an estimated number of transactions for the wallet. When determining how many scripts to check filters for, the Wallet lookahead value will be used. To ensure all transactions are recovered, the lookahead should be roughly the number of transactions in the wallet history.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
      CbfBuilder(Pointer pointer)
      CbfBuilder(NoPointer noPointer) This constructor can be used to instantiate a fake object.
      CbfBuilder() Start a new `CbfBuilder`
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

      • CbfBuilder

        CbfBuilder(Pointer pointer)
      • CbfBuilder

        CbfBuilder(NoPointer noPointer)
        This constructor can be used to instantiate a fake object.
      • CbfBuilder

        CbfBuilder()
        Start a new `CbfBuilder`