diff --git a/app/bitcoin/send_receive.js b/app/bitcoin/send_receive.js index a0aa710f..72c4397b 100644 --- a/app/bitcoin/send_receive.js +++ b/app/bitcoin/send_receive.js @@ -12,6 +12,7 @@ const destinationAddress = 'DESTINATION_ADDRESS'; // Connect to the Bitcoin testnet network const provider = 'https://testnet.blockchain.info/api'; const explorer = 'https://live.blockcypher.com/btc-testnet/tx/'; +const NETWORK = bitcoin.networks.testnet; // Create a new Bitcoin testnet wallet const wallet = new bitcoin.ECPair.fromPrivateKey(Buffer.from(privateKey, 'hex'), { network: testnet });