Bitcoin Forum
December 11, 2024, 11:57:37 PM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Need testnet bitcoins for testing  (Read 635 times)
zero_kl62 (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
November 02, 2016, 07:28:38 AM
Last edit: November 03, 2016, 02:34:21 AM by zero_kl62
 #1

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 Huh

Thanks
doof
Hero Member
*****
Offline Offline

Activity: 765
Merit: 503


View Profile WWW
November 02, 2016, 07:47:59 AM
 #2

Happy to, but that's not a test net address. Should start with m or n
zero_kl62 (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
November 02, 2016, 08:09:15 AM
 #3

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
cloverme
Legendary
*
Offline Offline

Activity: 1512
Merit: 1057


SpacePirate.io


View Profile WWW
November 02, 2016, 12:29:07 PM
 #4

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
zero_kl62 (OP)
Newbie
*
Offline Offline

Activity: 3
Merit: 0


View Profile
November 03, 2016, 02:07:32 AM
 #5

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 Cheesy
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!