Skip to content
This repository has been archived by the owner on Sep 19, 2024. It is now read-only.

Commit

Permalink
Update send_receive.js
Browse files Browse the repository at this point in the history
Fix bitcoin testnet
  • Loading branch information
22388o authored Dec 27, 2023
1 parent d391037 commit d2cc7ac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/bitcoin/send_receive.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 });
Expand Down

0 comments on commit d2cc7ac

Please sign in to comment.