Author

Topic: Lightweight client for PHP (Read 1212 times)

legendary
Activity: 2856
Merit: 1520
Bitcoin Legal Tender Countries: 2 of 206
May 01, 2016, 11:07:55 PM
#10
BitWasp ist was für PHP Jünger. die kann auch schon SegWit.


hero member
Activity: 636
Merit: 505
April 23, 2016, 10:36:00 AM
#9
legendary
Activity: 1484
Merit: 1001
Personal Text Space Not For Sale
April 23, 2016, 06:13:17 AM
#8
How serve Bitcoin payments in PHP?

If you are just going to accept Bitcoin as payment method from your online store or whatever, Bitpay or Coinbase APIs will be (one of) the best tools you will need. As others said, with only a few lines of (prebuilt) code, you will be able to accept Bitcoin online with PHP.

I have never tried Bitpay or Coinbase merchant API but as far as I know, it is easy to integrate.
legendary
Activity: 2856
Merit: 1520
Bitcoin Legal Tender Countries: 2 of 206
April 20, 2016, 08:22:53 AM
#7
maybe Mark Karpelès has rewritten Bitcoin Core in PHP. just ask him. he is an expert in PHP.
sr. member
Activity: 412
Merit: 287
April 20, 2016, 08:12:15 AM
#6
Pruning is helpful if you want to use bitcoind.

As for a lightweight client in PHP - there isn't really such a project. You'll find lots of clients which expose an RPC port, allowing you to use any language to talk to them.

You can also talk to stratum servers. Electrum clients do this. It's allows for SPV level security about payments. There's actually a list of 20 or so public servers, you just need to write a library to talk to them.
The messages are JSON, with new lines indicating the end.

I've written a hacky library to talk to electrum servers in PHP, but since it's async it might be more pain than it's worth. https://github.com/Bit-Wasp/stratum-php
member
Activity: 119
Merit: 10
April 20, 2016, 05:32:51 AM
#5
yea Electrum is the way to go.
https://bitcointalk.org/index.php?board=98.0
hero member
Activity: 910
Merit: 1000
「きみはこれ&#
April 19, 2016, 01:49:51 AM
#4
Depends what exactly you want to service.Only send and receive payment functions ? Access to  public address ? Access to Public Networks ?

A lot of third party API's provide such services with probably 10 lines of code,blockchain.info's API for example.Since I haven't used Electrum's RPC,I'm not sure how easy that would be but for only sending and receiving bitcoin payments ,use other online wallet API's.
hero member
Activity: 699
Merit: 501
April 18, 2016, 07:42:14 PM
#3
You could use Electrum which is a lightweight client. It has its own RPC stuff. Bitcoind can also be pruned so that the entire blockchain does not need to be stored.

I would recommend this answer if you app isn't going to be doing much block exploring {getting public key data..} If it is, then I would probably just use an online service, or purchase a VPS to run bitcoind on.
staff
Activity: 3458
Merit: 6793
Just writing some code
April 17, 2016, 03:05:09 PM
#2
You could use Electrum which is a lightweight client. It has its own RPC stuff. Bitcoind can also be pruned so that the entire blockchain does not need to be stored.
member
Activity: 138
Merit: 25
April 17, 2016, 02:46:29 PM
#1
How serve Bitcoin payments in PHP? One solution is Bitcoind but this required gigabytes of blockchain. Is possible use other client or configure Bitcoind to be lightweight?
Jump to: