Search content
Sort by

Showing 15 of 15 results by BitcoinWatcher
Post
Topic
Board Project Development
Re: Bitcoin PHP Tutorial
by
BitcoinWatcher
on 12/07/2018, 23:38:00 UTC
So I found this I'm trying to follow but I dont know how to format JSON as arguments as they are from the command line in Ubuntu

https://bitcoin.org/en/developer-examples#simple-spending

I got a regtest chain but I cant connect to it, I get a server refused error but if I connect t the standard 8332 port thats supposed to be mainnet it can retrieve my wallet data:

Code:

include_once("easybitcoin.php");
$rpcusr "bitcoin";
$rpcpass "pa55word";

$bitcoin = new Bitcoin($rpcusr$rpcpass'localhost''8332');

print_r($bitcoin->getwalletinfo());

echo 
"
";
var_dump($bitcoin);
echo 
"
"
;
?>

This tutorial I'm following is making it so hard to understand how the transactions work with the :JSON stuff so I figured I'd try to do it in PHP where I can use method calls instead of CLI so its easier to write JSON objects. Does anybody know of a tutorial thats easier to follow?

This is my bitcoin.conf

Code:
##
## bitcoin.conf configuration file. Lines beginning with # are comments.
##
 
# Network-related settings:

# Run on the test network instead of the real bitcoin network.
#testnet=0

# Run a regression test network
regtest=1

# Connect via a SOCKS5 proxy
#proxy=127.0.0.1:9050

# Bind to given address and always listen on it. Use [host]:port notation for IPv6
#bind=

# Bind to given address and whitelist peers connecting to it. Use [host]:port notation for IPv6
#whitebind=

##############################################################
##            Quick Primer on addnode vs connect            ##
##  Let's say for instance you use addnode=4.2.2.4          ##
##  addnode will connect you to and tell you about the      ##
##    nodes connected to 4.2.2.4.  In addition it will tell ##
##    the other nodes connected to it that you exist so     ##
##    they can connect to you.                              ##
##  connect will not do the above when you 'connect' to it. ##
##    It will *only* connect you to 4.2.2.4 and no one else.##
##                                                          ##
##  So if you're behind a firewall, or have other problems  ##
##  finding nodes, add some using 'addnode'.                ##
##                                                          ##
##  If you want to stay private, use 'connect' to only      ##
##  connect to "trusted" nodes.                             ##
##                                                          ##
##  If you run multiple nodes on a LAN, there's no need for ##
##  all of them to open lots of connections.  Instead       ##
##  'connect' them all to one node that is port forwarded   ##
##  and has lots of connections.                            ##
##       Thanks goes to [Noodle] on Freenode.               ##
##############################################################

# Use as many addnode= settings as you like to connect to specific peers
#addnode=69.164.218.197
#addnode=10.0.0.2:8333

# Alternatively use as many connect= settings as you like to connect ONLY to specific peers
#connect=69.164.218.197
#connect=10.0.0.1:8333

# Listening mode, enabled by default except when 'connect' is being used
#listen=1

# Maximum number of inbound+outbound connections.
#maxconnections=

#
# JSON-RPC options (for controlling a running Bitcoin/bitcoind process)
#

# server=1 tells Bitcoin-Qt and bitcoind to accept JSON-RPC commands
server=1

# Bind to given address to listen for JSON-RPC connections. Use [host]:port notation for IPv6.
# This option can be specified multiple times (default: bind to all interfaces)
#rpcbind=

# If no rpcpassword is set, rpc cookie auth is sought. The default `-rpccookiefile` name
# is .cookie and found in the `-datadir` being used for bitcoind. This option is typically used
# when the server and client are run as the same user.
#
# If not, you must set rpcuser and rpcpassword to secure the JSON-RPC api. The first
# method(DEPRECATED) is to set this pair for the server and client:
#rpcuser=Ulysseys
#rpcpassword=YourSuperGreatPasswordNumber_DO_NOT_USE_THIS_OR_YOU_WILL_GET_ROBBED_385593
#
# The second method `rpcauth` can be added to server startup argument. It is set at intialization time
# using the output from the script in share/rpcuser/rpcuser.py after providing a username:
#
# ./share/rpcuser/rpcuser.py alice
# String to be appended to bitcoin.conf:
# rpcauth=alice:f7efda5c189b999524f151318c0c86$d5b51b3beffbc02b724e5d095828e0bc8b2456e9ac8757ae3211a5d9b16a22ae
# Your password:
# DONT_USE_THIS_YOU_WILL_GET_ROBBED_8ak1gI25KFTvjovL3gAM967mies3E=
#
# On client-side, you add the normal user/password pair to send commands:
rpcuser=bitcoin
rpcpassword=pa55word
#
# You can even add multiple entries of these to the server conf file, and client can use any of them:
# rpcauth=bob:b2dd077cb54591a2f3139e69a897ac$4e71f08d48b4347cf8eff3815c0e25ae2e9a4340474079f55705f40574f4ec99

# How many seconds bitcoin will wait for a complete RPC HTTP request.
# after the HTTP connection is established.
#rpcclienttimeout=30

# By default, only RPC connections from localhost are allowed.
# Specify as many rpcallowip= settings as you like to allow connections from other hosts,
# either as a single IPv4/IPv6 or with a subnet specification.

# NOTE: opening up the RPC port to hosts outside your local trusted network is NOT RECOMMENDED,
# because the rpcpassword is transmitted over the network unencrypted.

# server=1 tells Bitcoin-Qt to accept JSON-RPC commands.
# it is also read by bitcoind to determine if RPC should be enabled
#rpcallowip=10.1.1.34/255.255.255.0
#rpcallowip=1.2.3.4/24
#rpcallowip=2001:db8:85a3:0:0:8a2e:370:7334/96

# Listen for RPC connections on this TCP port:
#rpcport=8332

# You can use Bitcoin or bitcoind to send commands to Bitcoin/bitcoind
# running on another host using this option:
#rpcconnect=127.0.0.1

# Create transactions that have enough fees so they are likely to begin confirmation within n blocks (default: 6).
# This setting is over-ridden by the -paytxfee option.
#txconfirmtarget=n

# Miscellaneous options

# Pre-generate this many public/private key pairs, so wallet backups will be valid for
# both prior transactions and several dozen future transactions.
#keypool=100

# Pay an optional transaction fee every time you send bitcoins.  Transactions with fees
# are more likely than free transactions to be included in generated blocks, so may
# be validated sooner.
#paytxfee=0.00

# Enable pruning to reduce storage requirements by deleting old blocks.
# This mode is incompatible with -txindex and -rescan.
# 0 = default (no pruning).
# 1 = allows manual pruning via RPC.
# >=550 = target to stay under in MiB.
prune=550

# User interface options

# Start Bitcoin minimized
#min=1

# Minimize to the system tray
#minimizetotray=1
Post
Topic
Board Project Development
Re: Bitcoin PHP Tutorial
by
BitcoinWatcher
on 12/07/2018, 17:26:24 UTC
It doesnt exactly go into detail and many of those functions like getinfo() are deprecated. Like running in pruning mode I run the normal bitcoind? I'll still be able to generate new addresses for each transaction? Will I be able to use it as  "hot wallet" and then send it to my cold storage wallet after it gets enough confirmations? Will any code I write for pruning mode still work on a full node when I get a VPS with plenty of space?
Post
Topic
Board Project Development
Bitcoin PHP Tutorial
by
BitcoinWatcher
on 08/07/2018, 06:28:11 UTC
I'm looking for some up to date tutorials for using bitcoin for a payment system. I have only used electrum and dont have the space for a full node on my system for the full blockchain required to use bitcoind. I want to build a system that doesnt rely on blockchain.info and gives me complete over private keys. I'm trying to make something where each customer get their own address generated for each payment then my server can verify the transactions after so many confirmations. The bitcoin wiki is seriously out of date and isnt straight forward on how to use it without needing a full node. My final site will be on a Linux VPS and test server is on Linux laptop without enough memory for full blockchain. I've found the easybitcoin.php library and tried using it but of course doesnt work right because bitcoind cant download full blockchain and I'm not understanding how to use bitcoin.conf

I'd really love to find a tutorial that will teach me how to make this system without needing a full node starting all the way from how to set up bitcoin in PHP.
Post
Topic
Board Development & Technical Discussion
What to do for Nov 2017 hard fork.
by
BitcoinWatcher
on 25/10/2017, 00:10:27 UTC
Hey I have my BTC in electrum. What can I do to make sure I will get my fork coin? And are most people planning on selling right away just like BTC Cash and sticking with original BTC?
Post
Topic
Board Exchanges
Re: Are Bitfinex accounts already ready to receive BCH?
by
BitcoinWatcher
on 01/08/2017, 19:07:48 UTC
Yes you might get BCH on your bitfinex but you might have to wait to trade them for real btc or usd.

Quote
We will form a view on whether to list BCH markets based on how the situation evolves. As soon as a decision has been made, we will alert our users via an announcement on https://www.bitfinex.com/posts and via www.twitter.com/bitfinex

Keep an eye on their twitter handler, when difficulty of bitcoincash chain will be adjusted we may see few blocks than bitfinex along with many other exchange platforms will list bitcoincash for trading.

So its safe for me to use shapeshift.io to convert my BTC into ethereum in my coinbase wallet where I intend to cash it out right now and I will still have my BCH in bitfinex and will appear after they allow withdrawals? Really need to know because I've been missing out on growth I saw coming on ETH today -.-
Post
Topic
Board Exchanges
Are Bitfinex accounts already ready to receive BCH?
by
BitcoinWatcher
on 01/08/2017, 17:55:17 UTC
So I've had all my coin in bitfinex for the last couple days because I want my BCH hand out. Well Bitfinex published this today:
https://www.bitfinex.com/posts/213

From what I've read they already took the coin they would account for the distribute BCH and you receive that many based on your walets at that time, correct? As in, for example I have 0.5 BTC at August 1st, 2017, 12 13:16:14 UTC and if I were to trade it for ethereum and take it off the exchange I would still receive .5 * ~1.09 (the coefficient they listed in original post) BCH right?

I would like to know because I'd rather switch the BTC I have right now into ethereum beause bitcoin is being more stagnant and facing a downtrend and ethereum is taking an up trend and I plan on cashing out soon anyway. I'd rather hang on to my BTC and receive my BCH if trading my BTC for ETH will make bitfinex not give me my BCH.
Post
Topic
Board Micro Earnings
Re: FreeBitco.in is High-Low game is a sham
by
BitcoinWatcher
on 01/08/2017, 12:57:09 UTC
You ever heard of counting cards and table bias? Blackjack is gambling if you're just the average person but you can actually manipulate the odds with strategy because there are people who make millions off blackjack and roulette tables they discovered the bias of. The law of averages says if you use a strategy that changes the odds (which counting cards and bet rules changes ever so slightly into your favor) will over time reflect what it should be according to probability and therefore over time you win more than you lose and make millions. Just take a Google search. There are people who have done it. I havent made millions but I've just started going to casinos and only play blackjack and roulette and I've walked out with at least double my money everytime stating with $100 and $5 base bets.

I didnt find that site to gamble, I actually just was looking at the different bitcoin faucets and thought those features were interesting on the site. I clearly dont expect to make money from that site. I plan on just collecting my free BTC and doing a couple bets here and there until I can cash them out and never use the site again because its so slow its a waste of time to try and make money that way.
Post
Topic
Board Micro Earnings
Re: FreeBitco.in is High-Low game is a sham
by
BitcoinWatcher
on 01/08/2017, 10:37:56 UTC
I think you know that gambling is based in your luck, if you are not lucky you will loose but if you are lucky you can win, gambling also is not profitable it is just for fun but if you are looking for a profit gambling is not ideal for that, most of the users said that site is scam if they lost not only freebitcoin even other trusted site. Those users are insane.

Luck or not its still ultimately math. There are strategies based on changing bets that actually work and I do pretty damn well in IRL casinos at blackjack which has similar odds just by that bet strategy. I've also ran simulations with java. If you ever took a statistics course it will tell you that reality tends to match the probabilities. It's satoshi, not even a cent so its not a big deal to me, I'm just saying for anyone that actually wants to make money from the site just stick to collecting the free satoshi every hour and do maybe 10 bets before it starts skewing the odds. It's pretty easy for them to have a "if (play has won x satoshi or player has won x turns then make random generator only use numbers in the range not choosen by player for x turns)". It's not very hard to do..
Post
Topic
Board Micro Earnings
Re: FreeBitco.in is High-Low game is a sham
by
BitcoinWatcher
on 01/08/2017, 08:41:14 UTC
How? I only used a base of .5 because that would be a easy rough estimate if you were trying to make a quick estimate to the probability. A base of .525 likelihood of the site winning the same side each time. .525^n is the true probability of you losing n times in a row betting on the same side, you learn this in high school Algebra and in detail in an introductory statistics course. Statistically there is only (.525^4)^3 chance of having 3 outcomes where n>4 in a row. Thats why in real life I tend to beat the casino by having enough money to keep doubling my bet everytime I lose until I win going in with only $100 playing blackjack everytime in real life but never with 72 satoshi on this site.
Post
Topic
Board Micro Earnings
FreeBitco.in is High-Low game is a sham
by
BitcoinWatcher
on 01/08/2017, 08:29:05 UTC
It's totally a scam. They have real legit odds your first 10 rolls but if you're using a double up strategy (have a base bet and keep betting high/low repeatedly doubling your bet until you win then start with base bet again) it works just like roulette odds black/red in the casino where you should win by the fourth or 5th time of placing bets on the same color. However I tried this three times in a row with the free give out. The first 10 rolls will work like the odds should then after the site notices you're winning more BTC than you lose it suddenly rigs the game to land somewhere not in your bet until you run out of BTC. I literally lost 5 and 6 times in a row each time betting on the same side and lost that many times in a row. No fucking way, the odds of that are ~(1/2)^n [the actual base would be more like .525 rather than .5 because they have a 5% advantage] where "n" is the number of times a coin lands on the same side in a row (or in our example numbers that are higher or lower than 5000 where each represents a side of a coin) where getting n=5 times of landing on the opposite side is less than 3% likely and n=6 turns is under 2% and it happened every single time I've played the game after my free satoshi and then when I decided to test it three hours in a row it happened three times in a row where each time it was under 3% likelihood so 3%*3%*3% = .0027% maximum probability of these three attempts ending with 5 or more times of the wheel hitting low or high in a row. On other attempts I alternated and somehow again it would end up with me taking a loss that many times in a row. It's crazy. If you use that site for free BTC don't make more than a couple bets because after you play so many bets with honest odds it gets rigged against you. Just collect the free BTC if you want to keep it. They must be making a killing. The odds should be close to roulette and blackjack (assuming unadvantaged players) and I've spent 3 hours in the casino playing blackjack and came out doubling my money before multiple times using the same betting scheme I did on this site.

I'm only making this conclusion after thoroughly testing it for myself. It's very believable to me they would set it up where it will be honest for the first few turns to get gambling addicts hooked and then switch rig the game after so many turns so people don't really keep their 72 satoshi and end up wasting time visiting that site because they always lose their money. I actually programmed a simulator in java to see if I could reproduce that in a simulation using my strategy and about 48% of the time I won like I should have and had zero times of the numbers being high or low 6 times in a row after 1000 games were simulated, though there were a couple 3-peats and 4-peats. Just thought I'd make others aware to avoid the frustration I had trying out different faucets.
Post
Topic
Board Mining (Altcoins)
Will Bitcoin Cash be more profitable for mining?
by
BitcoinWatcher
on 31/07/2017, 05:10:46 UTC
Will it be worth it to try mining Bitcoin Cash? I'm keeping my coins in bitfinex so I get both coin after the spplit and since there is less miners and the coin will start out speculatory is the profit potential as a miner going to be there initially for BCC like BTC was originally or will it be the same and need specialized hardware?
Post
Topic
Board Web Wallets
Re: Transaction Not Confirming after 24 hours
by
BitcoinWatcher
on 14/05/2017, 09:17:29 UTC
Your transaction is already confirmed. If you ever need to accelerate your delayed bitcoin transactions, you can use either viabtc.com for free or pay a little fee on pushtx.btc.com

Yeah I found out about them shortly after I found this site and viaBTC worked. I just had to hit it right at the hour because thats when the counter restarts.
Post
Topic
Board Web Wallets
Re: 2 unconfirmed transactions for 3 days - can a miner please lend a hand?
by
BitcoinWatcher
on 13/05/2017, 22:01:40 UTC
well I'm trying viaBTC to accelerate my transaction but I'm getting error message Submissions are beyond limit. Please try later. 

I'm having the same exact problem with one transaction thats taken 25 hours now.

The counter resets every hour like 1.00, 2.00 etc. So try accelerating it when a hour switches and it will succeed with much higher rate.


I got acceleration succeeded when I just did it on the hour. Still says unconfirmed, how long does it normally take?
Post
Topic
Board Web Wallets
Topic OP
Transaction Not Confirming after 24 hours
by
BitcoinWatcher
on 13/05/2017, 20:55:11 UTC
So yesterday when the crash happened I panicked and tied to send my BTC to my Coinbase account from my Blockchain wallet. Blockchain thought it would be a good idea to only give 41.414 sat/B so its been stuck for over 25 hours saying 0/3 confirmation. I used Blockchain so I cant attempt to do a double spend with a higher fee so I'm basically stuck waiting for miners to confirm the trade. I'll give $5 to the wallet of the miner who confirms this transaction for me so I can actually use my money.
Post
Topic
Board Web Wallets
Re: 2 unconfirmed transactions for 3 days - can a miner please lend a hand?
by
BitcoinWatcher
on 13/05/2017, 20:43:21 UTC
well I'm trying viaBTC to accelerate my transaction but I'm getting error message Submissions are beyond limit. Please try later. 

I'm having the same exact problem with one transaction thats taken 25 hours now.