Integrating Bitcoin services with the help of PHP-based frameworks or using PHP
Questions tagged [php]
173 questions
8
votes
6 answers
API for converting currency such as Euro/USD to BTC
Basically what I'm looking for is a reliable API that allows for the conversion of an imputed currency amount such as USD/Euro amount and a conversion would be made that would convert the amount to BTC.
I want to also point out that I am not…
Green
- 91
- 1
- 3
7
votes
2 answers
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 to run something on cron to have it check every…
Patoshi パトシ
- 10,956
- 18
- 80
- 151
7
votes
1 answer
How can I convert a bitcoin public key to a bitcoin address?
How can I convert a bitcoin public key to a bitcoin address?
Note: I am using PHP.
Is there an existing bitcoin API or PHP-API to do that converting ?
Dev777
- 301
- 1
- 4
- 10
6
votes
2 answers
How to generate addresses in PHP
I need some PHP code to generate bitcoin addresses from a given public key.
I can only find algorithms to generate addresses from the master private key but according to…
Gianluca Ghettini
- 322
- 1
- 4
- 11
6
votes
3 answers
How to create bitcoin wallet by PHP
I'm new to Bitcoin. I want to use PHP to create a bitcoin wallet on my own website. I came to here https://blockchain.info/api/create_wallet but I don't know how to apply it.
Would like to have good tutorials from some websites or videos.
GarlicBread
- 85
- 1
- 1
- 4
5
votes
7 answers
Converting satoshis to bitcoins issue using PHP
I am having PHP calculation problems (I think - i am reasonably new to PHP).
I am using
function convertToBTCFromSatoshi($value){
$BTC = ($value / 100000000 );
return (float)$BTC;
}
If $value = 10000 the result is correct of "0.0001"
Yet…
Ford
- 243
- 1
- 2
- 6
4
votes
2 answers
convert private key to bitcoin address using python or php
I have private key like this 5JYJWrRd7sbqEzL9KR9dYTGrxyLqZEhPtnCtcvhC5t8ZvWgS9iC how to convert to bicoin address using python or php?
example bitcoin address
18V7u8YNHKwG944TCkzYYj32hb6fdFPvQf
R ford
- 71
- 2
- 4
4
votes
1 answer
How to retrieve POST data that contains JSON
I have never used JSON before and am trying to retrieve the values POSTed to my site from coinbase. But I have no idea how to.
Information about the IPN and callback can be found here: https://coinbase.com/docs/merchant_tools/callbacks
To be more…
fwho
- 71
- 1
- 1
- 8
4
votes
1 answer
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 RPC call:
require_once('easybitcoin.php');
…
Carlos De la Garza
- 37
- 1
- 4
4
votes
1 answer
How to use BlockChain API?
I am a complete noob to PHP. But I just wanted to know how can you use the BlockChain API to get your wallet balance. I tried but could get no result. I do not even know how to print it. Please help. This is my current code :-
rahulgarg12342
- 247
- 1
- 5
- 10
3
votes
3 answers
How can I accept Bitcoin as a payment without a 3rd party gateway
I want to create a website where users can pay with Bitcoin. However I want to create my own payment gateway because I do not want to rely on services like BitPay. I want a unique BTC address for every user where the users can send money to this…
Emil Engler
- 253
- 1
- 8
3
votes
3 answers
Generating bitcoin wallets for my customers
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 with Electrum and assing 1 address to each user,…
im7xs
- 53
- 1
- 5
3
votes
1 answer
Sweeping a bitcoin private key using PHP
Is there a PHP script where it validates a bitcoin private key and also gets the public address from the key?
My goal was to:
verify the private key
Get the public address using that private key
Check the balance using an external api
Sweep if…
Toxnyc
- 303
- 1
- 8
3
votes
4 answers
Are there any opensource PHP cryptocurrency exchange/marketplace
As the title suggest, are there any opensource PHP cryptocurrency exchange/marketplace.
Most of the ones I found does not seem to work or are abandoned.
Manish
- 41
- 1
- 3
3
votes
0 answers
HD Wallets - Generating P2SH-P2WSH Addresses from a ypub-type mpks in PHP?
I am writing a webapp in PHP that needs to generate Bitcoin addresses from their mpk.
I have successfully done it for P2SH addresses (starting with a 1, with a xpub mpk) using the BitWasp php library, roughly using the method outlined here.
I wanted…
Precision Muppet
- 31
- 1