Questions tagged [bitcoin-testnet]

Bitcoin testnet is an alternative blockchain, used for testing. The coins on testnet don't have any value. The API is exactly the same.

testnet is an alternative , used for testing. The coins on testnet don't have any value. The API is exactly the same.

68 questions
36
votes
3 answers

Here's how to send raw transaction BTC using Bitcoin-cli command

Scenario: Michael receives 0.05000000 BTC from Pablo and another 0.01000000 BTC from Kuradang. Michael also wants to send 0.02500000 BTC to Berteng. Each amount that Michael receives has the corresponding txid and other details. Lets check that out…
Michael Blanza
  • 701
  • 2
  • 7
  • 13
10
votes
1 answer

How can I get notified when money has been sent to a particular Bitcoin address on a local regtest network?

I want to programmatically detect whenever someone sends Bitcoin to some address. This happens on a local testnet which I start using this docker-compose.yml file. Once the local testnet runs, I create a new address using docker exec -it…
Glory to Russia
  • 17,289
  • 56
  • 182
  • 325
9
votes
1 answer

Simulate private bitcoin network with random peer discovery

I am looking for a way to simulate a 1000 node bitcoin network on my private LAN/Wifi network. I read the developer's guide: https://bitcoin.org/en/developer-examples#regtest-mode which mentions the regtest mode that works primarily for single…
bawejakunal
  • 1,678
  • 2
  • 25
  • 54
5
votes
2 answers

Blockcypher error Non-canonical signature: wrong length marker

Im trying to sign a bitcoin testnet transaction using blockcypher but when I go to send the transaction I get the error: Error building input: Error generating scriptsig when building transaction: Invalid signature: Non-canonical signature: wrong…
4
votes
1 answer

Go-Ethereum | How to connect to public Ropsten(testnet) running on local

Basically I want to connect to the public Ropsten testnet. I run geth on local with several options. (--testnet, --rpc, --rpcapi, console). I thought I can get my (ropsten) account and check how much 'ether' or 'erc20 tokens' that I have on ropsten…
rachel_hong
  • 471
  • 2
  • 6
  • 15
4
votes
2 answers

How to connect to a Bitcoin testnet running in a docker container

I am testing some Bitcoin related code and in order to test it have installed bitcoin-testnet-box within a docker container. It's running fine, and, within the container I can execute commands and see the results. The Dockerfile is exposing port…
Dave Sag
  • 13,266
  • 14
  • 86
  • 134
3
votes
1 answer

How bitcoin peer discovery works after connecting to hard coded nodes?

I am tinkering with the bitcoin source code and trying to understand the exact working of peer discovery mechanism in the testnet mode for which I have made the following changes: Disabled the DNS seed discovery in order to force bitcoind to…
bawejakunal
  • 1,678
  • 2
  • 25
  • 54
2
votes
2 answers

Public kovan test net

How to get Kovan public test net in metamask as I have tried all the recommended sites but did not get it. These links do not work for me to get it. https://faucet.kovan.network/ https://gitter.im/kovan-testnet/faucet
yamna iftikhar
  • 103
  • 1
  • 5
2
votes
0 answers

How to send transactions from existing wallet with bitcoinj library?

We are trying to use bitcoinj 0.15.10 library to manage Bitcoin wallet. The problem we encountered is how do we connect existing wallet with our code so that we can make transactions. We have tried everything we could find in documentation and in…
2
votes
1 answer

Extract all confirmed transactions from a bitcoin block using python

I want to extract all confirmed transactions from the bitcoin blockchain. I know there are repos out there (e.g. https://github.com/znort987/blockparser) but I want to write something myself for my better understanding. I am have tried the following…
DonkeyKong
  • 465
  • 1
  • 5
  • 16
2
votes
1 answer

Creating bitcoin raw transaction takes all balance

I am creating a raw transaction using the bitcoin testnet, but when I push the raw transaction onto the network it takes all my balance. Am I suppose to send the remaining 'change' back to myself? Here is the code im using to create the raw…
brandbei37
  • 501
  • 3
  • 13
2
votes
2 answers

Getting Hash160 bitcoin address in python

tl;dr How should one perform Hash160, using most basic python tools? ==================================================== Hi, I'm trying to figure out, how transactions work in bitcoin. When I choose inputs for a new tx I want to make sure they…
lotrus28
  • 848
  • 2
  • 10
  • 19
2
votes
1 answer

Right way to make payment via bitcoinj

I am trying to make transaction via bitcoinj (version 0.14.3) and i am expecting to get change back after payment. I am working with testnet, it's not real bitcoins. I have next code: Transaction tx = new Transaction(this.networkParameters); Coin…
yar_resh
  • 41
  • 5
1
vote
0 answers

Android BitcoinJ set up error: "Expected the service [FAILED] to be RUNNING, but the service has FAILED"

Issue: I have two classes MainActivity and BitcoinConfig (see below). Can someone please help me fix issues I'm having syncing the blockchain? The AndroidManifest.xml and build.gradle files are given below. Errors: I’ve attached the full logcat…
kaj202
  • 11
  • 2
1
vote
1 answer

mandatory-script-verify-flag-failed (Script evaluated without error but finished with a false/empty top stack element)

Trying to build Bitcoin raw transaction for Bitcoin Testnet in Golang, but when trying to send getting an error: mandatory-script-verify-flag-failed (Script evaluated without error but finished with a false/empty top stack element) Here is raw…
it4ddict
  • 29
  • 5
1
2 3 4 5