bitcoinjs/bitcoinjs-lib

Tesnet: is not a valid bitcoin testnet address

A2DNEW opened this issue · 3 comments

i use this code and i can get testnet address:

const keyPair = ECPair.makeRandom({
      network: bitcoin.networks.testnet,
    });

    const result = bitcoin.payments.p2pkh({
      pubkey: keyPair.publicKey,
      network: bitcoin.networks.testnet,
    });

    console.log(result.address);

i try to get faucet from https://bitcoinfaucet.uo1.net/send.php
but i get error:
is not a valid bitcoin testnet address

but addresses start with tb works fine

They don't support P2PKH.

"is not valid" is a lie. It should be "We do not support P2PKH" instead.

They don't support P2PKH.

"is not valid" is a lie. It should be "We do not support P2PKH" instead.

How can I receive faucet for P2PKH?