Search in sources :

Example 1 with ElectrumServer

use of com.sparrowwallet.sparrow.net.ElectrumServer in project sparrow by sparrowwallet.

the class SparrowDataSource method pushTx.

@Override
public void pushTx(String txHex) throws Exception {
    Transaction transaction = new Transaction(Utils.hexToBytes(txHex));
    ElectrumServer electrumServer = new ElectrumServer();
    electrumServer.broadcastTransactionPrivately(transaction);
}
Also used : ElectrumServer(com.sparrowwallet.sparrow.net.ElectrumServer) Transaction(com.sparrowwallet.drongo.protocol.Transaction)

Aggregations

Transaction (com.sparrowwallet.drongo.protocol.Transaction)1 ElectrumServer (com.sparrowwallet.sparrow.net.ElectrumServer)1