Bitcoin Forum

Bitcoin => Project Development => Topic started by: colinistheman on September 17, 2013, 09:56:21 PM



Title: Question
Post by: colinistheman on September 17, 2013, 09:56:21 PM
Question answered.


Title: Re: Best Simple PHP code to SEND and RECEIVE bitcoin to an address?
Post by: MA5H3D on September 17, 2013, 11:19:57 PM
I'm not quite sure what you're asking here..

It's quite simple to generate a wallet with PHP, that will provide you with a public receiving address, but you'll then need to import that wallet into a client to use the funds. To send AND receive with PHP, it's probably best to skin your bitcoind with a PHP front-end of some kind..

You could try one of these: https://github.com/search?q=bitcoind+php&ref=cmdform
But personally, i've never done it.


Title: Re: Best Simple PHP code to SEND and RECEIVE bitcoin to an address?
Post by: colinistheman on September 18, 2013, 12:36:45 AM
So far it seems my best and easiest luck is by accessing the blockchain.info API

Because I do not want to have to run bitcoind on the server (don't think they will let me)
And I want to be able to send and receive money.

Is blockchain.info the easiest approach to this scenario?

Thanks for the answer btw.


Title: Re: Best Simple PHP code to SEND and RECEIVE bitcoin to an address?
Post by: MA5H3D on September 18, 2013, 03:48:31 AM
If you're going to use a "web wallet" API, then I think blockchain.info is definitely one of the better ones. But, most of the web wallets have an API you can use, just try a few out. inputs.io could be another option.


Title: Re: Best Simple PHP code to SEND and RECEIVE bitcoin to an address?
Post by: colinistheman on September 18, 2013, 10:47:11 PM
If you're going to use a "web wallet" API, then I think blockchain.info is definitely one of the better ones. But, most of the web wallets have an API you can use, just try a few out. inputs.io could be another option.
Thank you. I am not aware of other web wallets with a good API for sending bitcoin. I will definitely try blockchain.info first because it looks good. What other web wallets have this same functionality?


Title: Re: Best Simple PHP code to SEND and RECEIVE bitcoin to an address?
Post by: La VloZ on September 21, 2013, 07:52:08 AM
You can use inputs.io api see this link :
https://inputs.io/api#sendtransaction


Title: Re: Best Simple PHP code to SEND and RECEIVE bitcoin to an address?
Post by: colinistheman on September 22, 2013, 12:39:59 PM
You can use inputs.io api see this link :
https://inputs.io/api#sendtransaction
Hrm thanks for the link, but it seems to be down right when I tried. Not a good sign.

-edit-
now it's working. and it looks like their api was up the whole time.



Which API is better-- inputs.io or blockchain.info ?


Title: Re: Best Simple PHP code to SEND and RECEIVE bitcoin to an address?
Post by: ngocbkcse on September 22, 2013, 12:50:48 PM
You can reference: https://github.com/dooglus/intersango/blob/4f509499f24481d4a2c8fad795fb7b42ab2c450b/util.php#L592


Title: Re: Best Simple PHP code to SEND and RECEIVE bitcoin to an address?
Post by: colinistheman on September 22, 2013, 12:54:17 PM
You can reference: https://github.com/dooglus/intersango/blob/4f509499f24481d4a2c8fad795fb7b42ab2c450b/util.php#L592
Thanks. Thats actually very helpful.

Is inputs.io better than blockchain.info? What are the Pros and Cons of using each?


Title: Re: Best Simple PHP code to SEND and RECEIVE bitcoin to an address?
Post by: b!z on September 22, 2013, 01:12:14 PM
You can reference: https://github.com/dooglus/intersango/blob/4f509499f24481d4a2c8fad795fb7b42ab2c450b/util.php#L592
Thanks. Thats actually very helpful.

Is inputs.io better than blockchain.info? What are the Pros and Cons of using each?

inputs.io
free sending between inputs.io wallets
free mixer
you must trust the site owner with your BTC

blockchain.info
control over your private keys
site does not access your BTC

i might be wrong on some of these but i think it gives a good idea


Title: Re: Best Simple PHP code to SEND and RECEIVE bitcoin to an address?
Post by: La VloZ on September 22, 2013, 05:19:47 PM
You can use inputs.io api see this link :
https://inputs.io/api#sendtransaction
Hrm thanks for the link, but it seems to be down right when I tried. Not a good sign.

-edit-
now it's working. and it looks like their api was up the whole time.



Which API is better-- inputs.io or blockchain.info ?

I never tryied blockchain APIs :), but inputs isn't worse :)


Title: Re: Best Simple PHP code to SEND and RECEIVE bitcoin to an address?
Post by: Ditto on September 23, 2013, 01:47:30 PM
Another option is to run electrum on your server and interact with it over the command line.


Title: Re: Best Simple PHP code to SEND and RECEIVE bitcoin to an address?
Post by: colinistheman on September 24, 2013, 03:45:19 AM
Another option is to run electrum on your server and interact with it over the command line.
I don't think hosts like GoDaddy (for an example) and similar hosts would allow the running of electrum would they?


Title: Re: Best Simple PHP code to SEND and RECEIVE bitcoin to an address?
Post by: 🏰 TradeFortress 🏰 on September 24, 2013, 07:49:52 AM
You can reference: https://github.com/dooglus/intersango/blob/4f509499f24481d4a2c8fad795fb7b42ab2c450b/util.php#L592
Thanks. Thats actually very helpful.

Is inputs.io better than blockchain.info? What are the Pros and Cons of using each?

inputs.io
free sending between inputs.io wallets
free mixer
you must trust the site owner with your BTC

blockchain.info
control over your private keys
site does not access your BTC

i might be wrong on some of these but i think it gives a good idea
Wrong, blockchain.info has access to your private keys if you use their API.



Title: Re: Best Simple PHP code to SEND and RECEIVE bitcoin to an address?
Post by: crypto777 on October 30, 2014, 02:01:59 PM
.
You can use bitcoin payment api - https://github.com/cryptoapi/Payment-Gateway


https://gourl.io/images/bitcoin/Bitcoin-API.png (https://gourl.io/bitcoin-payment-gateway-api.html)

.


Title: Re: Best Simple PHP code to SEND and RECEIVE bitcoin to an address?
Post by: S4VV4S on October 30, 2014, 08:33:42 PM
If you DO NOT want to have the worry of having private keys on any online server then.....

On the server create a db with public keys (addresses which you have created in a safe environment) which will correspond to each transaction.

Then build a small app with bitcoind on YOUR local server (or even PC) that checks (every x seconds) the online db for new transactions, confirms, processes and finalizes the online transactions based on cross reference of the data that are always kept safe on your server.

That's what I would do.....
Then again I have no clue what your plans are so maybe this will not be good for you.


Title: Re: Best Simple PHP code to SEND and RECEIVE bitcoin to an address?
Post by: syfer on January 19, 2018, 04:48:48 PM
good info in here


Title: Re: Best Simple PHP code to SEND and RECEIVE bitcoin to an address?
Post by: CryptoView on January 21, 2018, 10:57:44 AM
It seems that the simplest and most advanced solution is Electrum. Any exemple ?