Questions tagged [php]
Integrating Bitcoin services with the help of PHP-based frameworks or using PHP
9
questions
0
votes
2
answers
2k
views
How can I make this PHP merkle root script recursive?
I've been trying to write my own merkle root script in PHP to help with my own understanding, but I've always struggled with recursion.
I've managed to write the function that will hash pairs of ...
7
votes
2
answers
6k
views
How would one monitor an address for a transaction and 1 confirmation in PHP?
I have a small PHP script with my static bitcoin address shown. When someone sends any btc to that address, how can I get the PHP script to check if the transaction has had 1 confirmation? Do I have ...
4
votes
1
answer
3k
views
JSON RPC call from webpage to Bitcoin Core
I want to make API calls to my Bitcoin Core wallet from my webpage but when I try to connect it gives me Internal Server Error
I'm using easybitcoin.php JSON from Github.
I'm trying with this JSON ...
3
votes
3
answers
1k
views
Generating bitcoin wallets for my customers [closed]
I run an application written in PHP and need to add the option to buy services with bitcoins.
So, for each user i need to generate a unique, unused bitcoin address.
I could generate X number wallets ...
3
votes
1
answer
1k
views
jsonRPC calling createrawtransaction in PHP
I can't get createrawtransaction to work in PHP using jsonRPC.
I found this thread https://bitcointalk.org/index.php?topic=133769.0 from a few months ago describing the process. It won't work however,...
3
votes
1
answer
2k
views
Callback not working in program using the blockchain api
I am trying to create automated receive Bitcoin payments via Blockchain API.
I have my API key, xpub, everything. I'm using PHP.
Here is the part of my code for generating wallet address:
$scrt = ...
2
votes
1
answer
613
views
Using PHP with RPC and cookie
Since 0.12 RPC uses a "random cookie":https://github.com/bitcoin/bitcoin/blob/master/doc/release-notes/release-notes-0.12.0.md#rpc-random-cookie-rpc-authentication for authentication, but it's not ...
1
vote
5
answers
6k
views
JSON RPC library unable to connect to bitcoind?
I'm able to connect to bitcoind using my command line and the process is running with the appropriate port but when I try to run it through XAMPP after using the JSON-RPC library (I used the PHP ...
0
votes
0
answers
1k
views
Can I force json_encode in PHP to output 8 digits after dot for RPC?
after reading bitcoin wiki "Proper money handling" I supposed that there shouldn't be any precision problems.
However, sending/moving for instance 16999999.99999999 sends/moves 17000000.
I figured ...