Skip to content

Cold Wave

Compare
Choose a tag to compare
@snowypowers snowypowers released this 03 Apr 06:49
· 591 commits to master since this release
055d91b
  • Transaction

    • Add calculation strategies to modify how inputs are selected. Current available strategies are smallestFirst, biggestFirst and balancedApproach. Currently only available as a global setting.
    import { tx, settings } from '@cityofzion/neon-js'
    
    // Change the strategy to use the biggest valued output available.
    settings.defaultCalculationStrategy = tx.calculationStrategy.biggestFirst
    // See all available strategies
    console.log(tx.calculationStrategy)