All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.bitcoin.wallet.CoinSelection Maven / Gradle / Ivy

The newest version!
package com.google.bitcoin.wallet;

import com.google.bitcoin.core.TransactionOutput;

import java.math.BigInteger;
import java.util.Collection;

/**
 * Represents the results of a
 * {@link com.google.bitcoin.wallet.CoinSelector#select(java.math.BigInteger, java.util.LinkedList)} operation. A
 * coin selection represents a list of spendable transaction outputs that sum together to give valueGathered.
 * Different coin selections could be produced by different coin selectors from the same input set, according
 * to their varying policies.
 */
public class CoinSelection {
    public BigInteger valueGathered;
    public Collection gathered;

    public CoinSelection(BigInteger valueGathered, Collection gathered) {
        this.valueGathered = valueGathered;
        this.gathered = gathered;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy