Bitcoin Forum

Bitcoin => Bitcoin Technical Support => Topic started by: kakashi9z on May 07, 2018, 08:00:27 AM



Title: How to simulate a transaction between two bitcoin addresses?
Post by: kakashi9z on May 07, 2018, 08:00:27 AM
I installed a bitcoin payment plugin on magento2 and ran on localhost, but I do not have any bitcoin to pay so the invoice always returns the holded state. So is there a way to simulate a transaction between two bitcoin addresses on localhost?


Title: Re: How to simulate a transaction between two bitcoin addresses?
Post by: Sellingaccs on May 07, 2018, 08:13:12 AM
Why don't you just buy or earn a small amount of bitcoin for yourself? Also it is possible, if you run your client on testnet.
Which wallet are you using for the payments? I can tell you how to activate the testnet and how to get free coin to test it out with.


Title: Re: How to simulate a transaction between two bitcoin addresses?
Post by: mocacinno on May 07, 2018, 08:15:58 AM
Why don't you just buy or earn a small amount of bitcoin for yourself? Also it is possible, if you run your client on testnet.
Which wallet are you using for the payments? I can tell you how to activate the testnet and how to get free coin to test it out with.

Testnet would also be my first choice. Another option would be to setup a node in regtest mode:
https://bitcoin.org/en/glossary/regression-test-mode


Title: Re: How to simulate a transaction between two bitcoin addresses?
Post by: onurgozupek on May 07, 2018, 08:19:44 AM
You can use the testnet blockchain to simulate buying and selling. But if you would like to do a real world scenario the best practice is doing transactions with small amounts (equivalent to a few dollars) Also you should test, creating a signed transaction on an offline machine instead of broadcasting directly to the network and then broadcasting it after a while. This will be the practice of how to securely transfer Bitcoins between peers...


Title: Re: How to simulate a transaction between two bitcoin addresses?
Post by: kakashi9z on May 07, 2018, 04:15:26 PM
Why don't you just buy or earn a small amount of bitcoin for yourself? Also it is possible, if you run your client on testnet.
Which wallet are you using for the payments? I can tell you how to activate the testnet and how to get free coin to test it out with.

Thanks for the reply, this plugin uses Bitcoin. I linked this plugin to the address at blockchain.info . how to use testnet? Can you give me a few references?


Title: Re: How to simulate a transaction between two bitcoin addresses?
Post by: ranochigo on May 07, 2018, 04:34:28 PM
Thanks for the reply, this plugin uses Bitcoin. I linked this plugin to the address at blockchain.info . how to use testnet? Can you give me a few references?
If you didn't design the plugin, you probably can't test it yourself. Unless your plugin has an option to accept testnet coins, you have to code it to do so. I suspect it won't be easy with pre-made plugins.


Title: Re: How to simulate a transaction between two bitcoin addresses?
Post by: bob123 on May 07, 2018, 04:47:34 PM
how to use testnet? Can you give me a few references?

You can start your client in testnet mode either by using the -testnet argument. Or, for 'permanent' change, add testnet=1 to your bitcoin.conf file.
The bitcoin.conf file can be found in bitcoins application directory.
Usually %APPDATA%\Bitcoin\ for windows and $HOME/.bitcoin/ for linux.

To get some testcoins, visit https://tpfaucet.appspot.com/ (https://tpfaucet.appspot.com/).

Further useful information: https://bitcoin.org/en/developer-examples (https://bitcoin.org/en/developer-examples)