Bitcoin Forum

Bitcoin => Project Development => Topic started by: zero_kl62 on November 02, 2016, 07:28:38 AM



Title: Need testnet bitcoins for testing
Post by: zero_kl62 on November 02, 2016, 07:28:38 AM
I'm working on a bitcoin service at the moment and have gotten to the point where I need to do some testing with bitcoins.
Unfortunately it looks like the testnet bitcoin faucet is down.

I tried link below but can't get free testnet bitcoins
http://tpfaucet.appspot.com/
https://testnet.manu.backend.hamburg/faucet

Anyone know where I can get some testnet bitcoins...?
Can anybody send some to n49p5ct6GGSy6gfg3NPqcmqmxcoakY9s6v ???

Thanks


Title: Re: Need testnet bitcoins for testing
Post by: doof on November 02, 2016, 07:47:59 AM
Happy to, but that's not a test net address. Should start with m or n


Title: Re: Need testnet bitcoins for testing
Post by: zero_kl62 on November 02, 2016, 08:09:15 AM
Happy to, but that's not a test net address. Should start with m or n

When i creating a new bitcoin key object and extracting the TESTNET address (using bitcoinjs-lib)
---
var bitcoin = require('bitcoinjs-lib');
var key = bitcoin.ECPair.makeRandom();
var address = key.getAddress(bitcoin.networks.testnet).toString();
console.log('new TESTNET address: ['+address+']');
=> with this code, i got "new TESTNET address: 12vd2s3tvsu3DyNr7PY3nMckwb2ZPFzpir "

I changed my code to:
var bitcoin = require('bitcoinjs-lib');
var key = bitcoin.ECPair.makeRandom({network: bitcoin.networks.testnet});
var address = key.getAddress().toString();
console.log('new TESTNET address: ['+address+']');
=> and i got "new TESTNET address: n49p5ct6GGSy6gfg3NPqcmqmxcoakY9s6v"

Thanks


Title: Re: Need testnet bitcoins for testing
Post by: cloverme on November 02, 2016, 12:29:07 PM
doof is right, so something went wrong with your testnet node when that address was generated. I ran validateaddress on the one that started with 1 and got   "isvalid": false. The n49p5ct6GGSy6gfg3NPqcmqmxcoakY9s6v address is valid though. https://en.bitcoin.it/wiki/List_of_address_prefixes

I sent 3 tbct to your n49... address, tx is f2ad02fb42a26bf0a2e63b160e93ec80ddeeca8fe9776f7849c5bbb406569057


Title: Re: Need testnet bitcoins for testing
Post by: zero_kl62 on November 03, 2016, 02:07:32 AM
doof is right, so something went wrong with your testnet node when that address was generated. I ran validateaddress on the one that started with 1 and got   "isvalid": false. The n49p5ct6GGSy6gfg3NPqcmqmxcoakY9s6v address is valid though. https://en.bitcoin.it/wiki/List_of_address_prefixes

I sent 3 tbct to your n49... address, tx is f2ad02fb42a26bf0a2e63b160e93ec80ddeeca8fe9776f7849c5bbb406569057

Thanks so much :D