View Source BitcoinAccounting.XpubManager.AddressGenerator (bitcoin_accounting v0.1.32)

Loops on an xpub to create addresses up until a certain threshold is met

Link to this section Summary

Functions

Loops on an xpub to create addresses up until a certain threshold is met, executing the manage_address function for each address in the process

Link to this section Functions

Link to this function

until_gap(xpub, gap_limit, manage_address)

View Source
@spec until_gap(binary(), integer(), function()) :: [
  {%BitcoinAccounting.XpubManager.AddressInfo{
     address: term(),
     change?: term(),
     index: term()
   }, list()}
]

Loops on an xpub to create addresses up until a certain threshold is met, executing the manage_address function for each address in the process