New answers tagged

2

You are on the right track. The address is derived correctly, it is just not encoded with the right version. You need to add the testnet network version to the btc.payments.p2pkh call as well. Something like this should work: console.log(btc.payments.p2pkh({pubkey, network: btc.networks.testnet}).address); The address should then start with m... instead ...


2

Testnet coins have no value - there is no way to transfer them to any exchange or broker and exchange for fiat. If someone is paying you on a testnet and claiming it is valid reimbursement or payment for anything, they are scamming you.


Top 50 recent answers are included