org.tbk.electrum.bitcoinj.model.SimpleBitcoinjUtxo Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tbk-electrum-daemon-client-bitcoinj Show documentation
Show all versions of tbk-electrum-daemon-client-bitcoinj Show documentation
electrum daemon jsonrpc client bitcoinj extension package
The newest version!
package org.tbk.electrum.bitcoinj.model;
import lombok.Builder;
import lombok.NonNull;
import lombok.Value;
import org.bitcoinj.core.Coin;
import org.bitcoinj.core.Sha256Hash;
import org.tbk.electrum.model.Utxo;
import static org.tbk.electrum.bitcoinj.BitcoinjHelper.toCoin;
@Value
@Builder
public class SimpleBitcoinjUtxo implements BitcoinjUtxo {
@NonNull
Utxo utxo;
@Override
public Sha256Hash getTxHash() {
return Sha256Hash.wrap(utxo.getTxHash());
}
@Override
public int getTxPos() {
return utxo.getTxPos();
}
@Override
public long getHeight() {
return utxo.getHeight();
}
@Override
public Coin getValue() {
return toCoin(utxo.getValue());
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy