Methods
addInput
- addInput(input: CoinInput): number
- addInput(fromHash: string, fromIndex: number, value: number, lockTime?: undefined | number): number
-
Parameters
Returns number
-
Parameters
-
fromHash: string
-
fromIndex: number
-
value: number
-
Optional lockTime: undefined | number
Returns number
addOutput
- addOutput(output: CoinOutput): number
- addOutput(address: Address, value: number, lockTime?: undefined | number): number
-
Parameters
Returns number
-
Parameters
-
-
value: number
-
Optional lockTime: undefined | number
Returns number
getInputsTotalValue
- getInputsTotalValue(): number
getOutputsTotalValue
- getOutputsTotalValue(): number
orderCoins
- orderCoins(coins: Coin[]): void
removeInput
- removeInput(index?: undefined | number): void
- removeInput(item?: CoinInput): void
-
Parameters
-
Optional index: undefined | number
Returns void
-
Parameters
Returns void
removeOutput
- removeOutput(index?: undefined | number): void
- removeOutput(item?: CoinOutput): void
-
Parameters
-
Optional index: undefined | number
Returns void
-
Parameters
Returns void