Tesnet: is not a valid bitcoin testnet address
A2DNEW opened this issue · 3 comments
A2DNEW commented
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
junderw commented
They don't support P2PKH.
"is not valid" is a lie. It should be "We do not support P2PKH" instead.
A2DNEW commented
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?