Bitcoin Forum
May 10, 2024, 03:20:10 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Lightweight client for PHP  (Read 1192 times)
Frodek (OP)
Member
**
Offline Offline

Activity: 138
Merit: 25


View Profile
April 17, 2016, 07: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?
1715311210
Hero Member
*
Offline Offline

Posts: 1715311210

View Profile Personal Message (Offline)

Ignore
1715311210
Reply with quote  #2

1715311210
Report to moderator
1715311210
Hero Member
*
Offline Offline

Posts: 1715311210

View Profile Personal Message (Offline)

Ignore
1715311210
Reply with quote  #2

1715311210
Report to moderator
Make sure you back up your wallet regularly! Unlike a bank account, nobody can help you if you lose access to your BTC.
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1715311210
Hero Member
*
Offline Offline

Posts: 1715311210

View Profile Personal Message (Offline)

Ignore
1715311210
Reply with quote  #2

1715311210
Report to moderator
1715311210
Hero Member
*
Offline Offline

Posts: 1715311210

View Profile Personal Message (Offline)

Ignore
1715311210
Reply with quote  #2

1715311210
Report to moderator
1715311210
Hero Member
*
Offline Offline

Posts: 1715311210

View Profile Personal Message (Offline)

Ignore
1715311210
Reply with quote  #2

1715311210
Report to moderator
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3388
Merit: 6631


Just writing some code


View Profile WWW
April 17, 2016, 08: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.

NyeFe
Hero Member
*****
Offline Offline

Activity: 699
Merit: 500


View Profile
April 19, 2016, 12:42:14 AM
 #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.

MicroDApp.com—Smart Contract developers. Lets build a decentralized future!
KenR
Hero Member
*****
Offline Offline

Activity: 910
Merit: 1000


「きみはこれ&#


View Profile
April 19, 2016, 06: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.

  ████
█ ████
█ ████
█ ████
█ ████ █
█ ████ █
█ ████ █
█ ████ █
█ ████ █
  ████ █
  ████ █
  ████ █
  ████
  ████
█ ████
█ ████
█ ████
█ ████ █
█ ████ █
█ ████ █
█ ████ █
█ ████ █
  ████ █
  ████ █
  ████ █
  ████
  .WEBSITE.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
  .ANN THREAD.
.
▄▄▄▄▄▄▄▄
  ████
█ ████
█ ████
█ ████
█ ████ █
█ ████ █
█ ████ █
█ ████ █
█ ████ █
  ████ █
  ████ █
  ████ █
  ████
MoneyShot2
Member
**
Offline Offline

Activity: 119
Merit: 10


View Profile
April 20, 2016, 10:32:51 AM
 #5

yea Electrum is the way to go.
https://bitcointalk.org/index.php?board=98.0

▄▄▄▄▄▄▄
▄▄▄▄
▄▄ 【BTC】
fbueller
Sr. Member
****
Offline Offline

Activity: 412
Merit: 275


View Profile
April 20, 2016, 01:12:15 PM
 #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

Bitwasp Developer.
Gyrsur
Legendary
*
Offline Offline

Activity: 2856
Merit: 1520


Bitcoin Legal Tender Countries: 2 of 206


View Profile WWW
April 20, 2016, 01:22:53 PM
 #7

maybe Mark Karpelès has rewritten Bitcoin Core in PHP. just ask him. he is an expert in PHP.

jacktheking
Legendary
*
Offline Offline

Activity: 1484
Merit: 1001


Personal Text Space Not For Sale


View Profile
April 23, 2016, 11: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.

So sad! This profile does not appear as the #1 result (on anonymous) Google searches anymore.

Time to be active on the crypto forums again? Proud to be one of the few Legendary members of the Sparkie Red Dot!

Gonna put this on my resume if I ever join a cryptocurrency/blockchain industry!
qwik2learn
Hero Member
*****
Offline Offline

Activity: 636
Merit: 505


View Profile
April 23, 2016, 03:36:00 PM
 #9

BitcoinJS
Gyrsur
Legendary
*
Offline Offline

Activity: 2856
Merit: 1520


Bitcoin Legal Tender Countries: 2 of 206


View Profile WWW
May 02, 2016, 04:07:55 AM
 #10

BitWasp ist was für PHP Jünger. die kann auch schon SegWit.



Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!