Bitcoin Forum
November 17, 2018, 10:36:21 PM *
News: Latest Bitcoin Core release: 0.17.0 [Torrent].
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Best Simple PHP code to SEND and RECEIVE bitcoin to an address?  (Read 28046 times)
colinistheman
Legendary
*
Offline Offline

Activity: 994
Merit: 1000



View Profile
September 17, 2013, 09:56:21 PM
 #1

What the title says. Help please
1542494181
Hero Member
*
Offline Offline

Posts: 1542494181

View Profile Personal Message (Offline)

Ignore
1542494181
Reply with quote  #2

1542494181
Report to moderator
"Your bitcoin is secured in a way that is physically impossible for others to access, no matter for what reason, no matter how good the excuse, no matter a majority of miners, no matter what." -- gmaxwell
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1542494181
Hero Member
*
Offline Offline

Posts: 1542494181

View Profile Personal Message (Offline)

Ignore
1542494181
Reply with quote  #2

1542494181
Report to moderator
1542494181
Hero Member
*
Offline Offline

Posts: 1542494181

View Profile Personal Message (Offline)

Ignore
1542494181
Reply with quote  #2

1542494181
Report to moderator
1542494181
Hero Member
*
Offline Offline

Posts: 1542494181

View Profile Personal Message (Offline)

Ignore
1542494181
Reply with quote  #2

1542494181
Report to moderator
MA5H3D
Member
**
Offline Offline

Activity: 99
Merit: 10


View Profile
September 17, 2013, 11:19:57 PM
 #2

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.
colinistheman
Legendary
*
Offline Offline

Activity: 994
Merit: 1000



View Profile
September 18, 2013, 12:36:45 AM
 #3

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.
MA5H3D
Member
**
Offline Offline

Activity: 99
Merit: 10


View Profile
September 18, 2013, 03:48:31 AM
 #4

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.
colinistheman
Legendary
*
Offline Offline

Activity: 994
Merit: 1000



View Profile
September 18, 2013, 10:47:11 PM
 #5

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?
La VloZ
Newbie
*
Offline Offline

Activity: 32
Merit: 0



View Profile
September 21, 2013, 07:52:08 AM
 #6

You can use inputs.io api see this link :
https://inputs.io/api#sendtransaction
colinistheman
Legendary
*
Offline Offline

Activity: 994
Merit: 1000



View Profile
September 22, 2013, 12:39:59 PM
 #7

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 ?
ngocbkcse
Hero Member
*****
Offline Offline

Activity: 509
Merit: 500



View Profile WWW
September 22, 2013, 12:50:48 PM
 #8

You can reference: https://github.com/dooglus/intersango/blob/4f509499f24481d4a2c8fad795fb7b42ab2c450b/util.php#L592

Be a Pioneer,
.Participate in Our Crowdsale!.
Ends on Nov. 30, 2018
██
▐█▌
██
▐█▌
██
▐█▌
██
▐█▌
██
                ▄▄▄▄▄▄▄▄▄▄▄▄
           ▄▄█████▀▀▀▀▀▀▀▀█████▄▄
        ▄███▀▀                ▀▀███▄
      ███▀▀                      ▀▀███
    ▄██▀         ▄▄▄▄▄   ▄▄▄▄▄▄     ▀██▄
   ▄██▀ ▄██████▄ █████   ██████      ▀██▄
  ███   ████████ ▀▀▀▀▀   ▀▀▀▀▀▀        ███
 ▐██▌   ████████ ████ ▄███████▄ ██████ ▐██▌
 ███     ▀▀▀▀▀▀  ▀▀▀▀ █████████ ▀▀▀▀▀▀  ███
▐██▌         ▄██████▄ ▀███████▀ ██████  ▐██▌
 ███   ▄▄▄▄▄ ████████  ▄▄▄▄▄▄▄  ██████  ███
 ▐██▌  █████ ▀██████▀ █████████ ▀▀▀▀▀▀ ▐██▌
  ███  ▀▀▀▀▀ ▄▄▄ ▄▄▄▄ █████████        ███
   ▀██▄      ███ ████  ▀▀▀▀▀▀▀       ▄██▀
    ▀██▄         ████               ▄██▀
      ███▄▄                      ▄▄███
        ▀███▄▄                ▄▄███▀
           ▀▀█████▄▄▄▄▄▄▄▄█████▀▀
                ▀▀▀▀▀▀▀▀▀▀▀▀




       ▄▄▄███████▄▄▄
    ▄█████████████████▄
  ▄█████████████████████▄
 ███████████████▀▀▀ ▐█████
▐█████████▀▀▀   ▄▄  ██████▌
████▀▀▀      ▄█▀▀  ▐███████
█████▄▄▄  ▄█▀▀     ████████
▐████████ █       ▐███████▌
 ████████▌ ▄▄▄▄   ████████
  ▀█████████████▄▄██████▀
    ▀█████████████████▀
       ▀▀▀███████▀▀▀
Facebook
Twitter
Medium
Github
colinistheman
Legendary
*
Offline Offline

Activity: 994
Merit: 1000



View Profile
September 22, 2013, 12:54:17 PM
 #9

Thanks. Thats actually very helpful.

Is inputs.io better than blockchain.info? What are the Pros and Cons of using each?
b!z
Legendary
*
Offline Offline

Activity: 1582
Merit: 1006



View Profile
September 22, 2013, 01:12:14 PM
 #10

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
La VloZ
Newbie
*
Offline Offline

Activity: 32
Merit: 0



View Profile
September 22, 2013, 05:19:47 PM
 #11

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 Smiley, but inputs isn't worse Smiley
Ditto
Sr. Member
****
Offline Offline

Activity: 330
Merit: 250


View Profile
September 23, 2013, 01:47:30 PM
 #12

Another option is to run electrum on your server and interact with it over the command line.
colinistheman
Legendary
*
Offline Offline

Activity: 994
Merit: 1000



View Profile
September 24, 2013, 03:45:19 AM
 #13

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?
TradeFortress 🏕
Drunk AF
VIP
Legendary
*
Offline Offline

Activity: 1050
Merit: 1023


View Profile
September 24, 2013, 07:49:52 AM
 #14

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.


crypto777
Full Member
***
Offline Offline

Activity: 223
Merit: 100


View Profile WWW
October 30, 2014, 02:01:59 PM
 #15

.
You can use bitcoin payment api - https://github.com/cryptoapi/Payment-Gateway




.

Bitcoin, Litecoin, Dogecoin, Quarkcoin... 200+ cryptocurrencies LIVE Analytics @ http://altcoins.wiki

Cryptocurrency Payment API - https://gourl.io

.
S4VV4S
Hero Member
*****
Offline Offline

Activity: 994
Merit: 500



View Profile
October 30, 2014, 08:33:42 PM
 #16

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.

       ▄▄█████████▄▄
    ▄█████████████████
  ▄████████▀▀▀▀▀▀▀▀▀▀
 ▄███████▀   ▄▄   ▄▄▄▄▄▄▄▄
▄████████▄▄▄████  ▄▄▄▄▄▄▄▄
█████████▀▀▀▀▀▀▀  █████████
█████████   ▄▄▄▄   ▀███████
█████████   █████   ███████
 ▀▀▀▀▀▀▀▀   █████   ██████▀
 ▀▀▀▀▀▀▀▀   ███▀▀   █████▀
      ▄▄▄▄▄▄███▄▄▄▄█████▀
     █████████████████▀
       ▀▀█████████▀▀
Bitcoin Air 
 
.
█      ███
█      ███
  ██
  ██  ███
  ██  ███
  ██  ███
      ███
█  ██
  ███
█  ██
  ███
   ██
  ███
█  ██  ███
█  ██  ███
█  ██
....MEDIUM....
.....GITHUB....
.....REDDIT....
     ██  █
███  ██  █
███  ██
███  ██  █
███  ██  █
███  ██  █
███      █
███  ██ 
███  ██ 
     ██ 
███
  ██ 
███
  ██ 
     ██
 
.
.
syfer
Newbie
*
Offline Offline

Activity: 22
Merit: 0


View Profile
January 19, 2018, 04:48:48 PM
 #17

good info in here
CryptoView
Newbie
*
Offline Offline

Activity: 52
Merit: 0


View Profile WWW
January 21, 2018, 10:57:44 AM
 #18

It seems that the simplest and most advanced solution is Electrum. Any exemple ?
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!