Bitcoin Forum
May 02, 2024, 07:36:31 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Integrated any blockchain and run command to show on website  (Read 150 times)
Protrader1220 (OP)
Newbie
*
Offline Offline

Activity: 41
Merit: 0


View Profile
July 08, 2020, 09:33:25 PM
 #1

First of all, i was struggled to understand this takes me months.

But let me help you all developers how to want to run commands on website for bitcoin or any coin which is based on the bitcoin blockchain.

Simple what you need to do is just install
1 -> Nginx or Apache2 and any version of PHP

2 -> go to cd /var/www/html

3 -> sudo nano easybitcoin.php

4 -> paste the raw code of easybitcoin.php (https://github.com/aceat64/EasyBitcoin-PHP)

5-> If you want to run just bitcoin commands then leave it as it is. If any other coin is based on the bitcoin blockchain.  Just search for port and change with your blockchain RPC Port.

6-> sudo nano command.php


7-> in command just php code
       require_once('easybitcoin.php');
      $bitcoin = new Bitcoin('username','password'); // remember it should be your daemon .conf username and password
      $info = $bitcoin->getinfo();
      $err = $bitcoin->error;
      echo $err; echo $info;

if any server issue you are facing then you need to install php curl

then do it
-> sudo apt update
-> sudo apt install php7.0-curl
-> sudo phpenmod curl
-> sudo systemctl restart apache2.service

Then you are done.
Remember that Bitcoin is still beta software. Don't put all of your money into BTC!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1714678591
Hero Member
*
Offline Offline

Posts: 1714678591

View Profile Personal Message (Offline)

Ignore
1714678591
Reply with quote  #2

1714678591
Report to moderator
1714678591
Hero Member
*
Offline Offline

Posts: 1714678591

View Profile Personal Message (Offline)

Ignore
1714678591
Reply with quote  #2

1714678591
Report to moderator
stmar
Member
**
Offline Offline

Activity: 196
Merit: 52


View Profile
August 28, 2020, 05:01:11 PM
 #2

Interesting development, but here is silence.
243 forks on github.
 Huh
Protrader1220 (OP)
Newbie
*
Offline Offline

Activity: 41
Merit: 0


View Profile
December 08, 2020, 07:49:40 PM
 #3

Interesting development, but here is silence.
243 forks on github.
 Huh

What do you mean?
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!