Greedy selection initialization properties.

Hierarchy

  • GreedySelectorProps

Properties

Properties

getChangeAddresses: (() => Promise<Map<PaymentAddress, number>>)

Type declaration

    • (): Promise<Map<PaymentAddress, number>>
    • Callback that returns a map of addresses with their intended proportions expressed as weights.

      The weight is an integer, and relative to other weights in the map. For example, a map with two addresses and respective weights of 1 and 2 means that we expect the selector to assign twice more change to the second address than the first. This means that for every 3 Ada, 1 Ada should go to the first address, and 2 Ada should go to the second.

      If the same distribution is needed for each address use the same weight (e.g. 1).

      This selector will create N change outputs at this change addresses with the given proportions.

      Returns Promise<Map<PaymentAddress, number>>

Generated using TypeDoc