Bitcoin Forum
May 13, 2024, 05:50:18 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
  Home Help Search Login Register More  
  Show Posts
Pages: [1] 2 »
1  Bitcoin / Project Development / Cant pull RPC credentials from my config.php file on: April 07, 2023, 01:07:37 PM
Hi all

So I want to display several things on a webpage in php ie getbalance, getblockheight etc etc

This was fine and everything was displaying as I wanted it too, but I found I was typing a lot of the same stuff so thought I would create a config to pull the info in from, however I am having issues as it wont connect to the wallet now.

My config:

Code:
<?php

$rpc_user 
'xxxxxxxxx';
$rpc_pass 'xxxxxxxxxxxxxxxxxxxxxx';
$rpc_host 'localhost';
$rpc_port 'xxxxx';

?>


My webpage:

Code:
<?php
include('config.php')
require_once(
'easybitcoin.php');

$bitcoin = new Bitcoin('$rpc_user','$rpc_pass','$rpc_host','$rpc_port');

$getbalance $bitcoin->getbalance();

print_r($getbalance);

?>

The above is a snipet of the webpage but if I can solve this bit then I can solve the rest, the config file is in the correct directory (the same as the index page)
I know the easybitcoin works because if i replace the $rpc_user etc with the actual details its is fine.

Any help would be most welcome, I suspect it is something real easy, that I can no longer see as im stressed out over it Smiley

Thanks
TT

2  Bitcoin / Project Development / easybitcoin.php on: October 28, 2022, 08:45:01 PM
A nice little handy opensource bit of code........

This seems to work good on calling one response items such as getconnectioncount where just one figure is needed, but I am trying to display on my website single bits of information.

So I am stuck here

Code:
require_once('easybitcoin.php');

$bitcoin = new Bitcoin('user','pass','localhost','port');

$getinfo = $bitcoin->getinfo();

print_r($getinfo);

This of coarse returns something similar to this:

Code:
Array ( [version] => 1040203 [protocolversion] => 70929 [services] => NETWORK/BLOOM/ [walletversion] => 169900 [balance] => 6000.96068 [zerocoinbalance] => 0 [staking status] => Staking Active [blocks] => 1823565 [timeoffset] => 0 [connections] => 242 [proxy] => [difficulty] => 114235.22515094 [testnet] => [moneysupply] => 1114119657.5589 [keypoololdest] => 1666243740 [keypoolsize] => 99 [paytxfee] => 0 [relayfee] => 0.0001 [errors] => )

So my question is what would I alter here to get "staking status" for example:

Code:
$getinfo = $bitcoin->getinfo();

I have tried allsorts such as:

Code:
$getinfo = $bitcoin->getinfo(stakingstatus);
$getinfo = $bitcoin->getinfo->stakingstatus();
$getinfo = $bitcoin->getinfo=>stakingstatus();

But to no avail, so if anyone could point me int the correct direction I woud be very grateful

Thanks
TT
3  Economy / Services / WANTED - Website Developer Required on: September 14, 2022, 10:59:01 AM
I need a web developer for several projects.

Must have experience in HTML, PHP and the ability to pull in information via API from several sources.

A solid grasp of the masternode world is a must as that is where I frequent and all the projects originate from.

Thanks
TT
4  Bitcoin / Project Development / API help needed - Easy answer for some of you I guess, But not for me :( on: April 17, 2022, 08:15:30 PM
I know this dosn't really belong here as it isn't specifically BTC but I shall be using the same for my BTC api calls, and you have been kind and helped me before.

This is an official IHost example and the address given are fictitious

Real quick one so I am trying to get a specific bit of information from an API.

It's an IHost api I am calling and i get a response similar to this:

Code:
{
    "result": {
        "deposits": [
            {
                "deposit_id": 36,
                "share_id": 2,
                "current_amount": 53.077553,
                "total_deposited": 24.91567,
                "total_earned": 28.146885,
                "withdraw_address": "GcUgnY5fFwTv9ef8rsggdxbdQzLEUxpp4c",
                "deposit_address": "GfUgnY5sFwTf9ez8rovtdxdEQzLcbxpb4c"
            },
            {
                "deposit_id": 37,
                "share_id": 5,
                "current_amount": 885.9591,
                "total_deposited": 521.92,
                "total_earned": 472.30566,
                "withdraw_address": "gHWHPs21H8UsSNcbfWxvn5XssAxFkcuZYe",
                "deposit_address": "g4sbWWtD3tf16Dsd8wiaJkar3zhJ82qNKP"
            },
            {
                "deposit_id": 38,
                "share_id": 6,
                "current_amount": 754.5115,
                "total_deposited": 548.52997,
                "total_earned": 416.25214,
                "withdraw_address": "LLqWFFJkNSog6VwsbPWEWE4KcXJrzB6t1K",
                "deposit_address": "LW5Vbt1gEkvVQzfVcpLmidLPpcED1Yp3yu"
            }
        ]
    },
    "error": ""
}

by using

Code:
print_r($obj->result->deposits);

BUT how do I just get a specific bit of info for example if I want to display total_earned on deposit ID38 what would I have to alter

Code:
print_r($obj->result->deposits);

to to make it work ?

Many Thanks for any help offered Smiley

TT
5  Alternate cryptocurrencies / Altcoin Discussion / Any API guru's here ? on: April 17, 2022, 07:48:14 PM
This is an official IHost example and the address given are fictitious

Real quick one so I am trying to get a specific bit of information from an API.

It's an IHost api I am calling and i get a response similar to this:

Code:
{
    "result": {
        "deposits": [
            {
                "deposit_id": 36,
                "share_id": 2,
                "current_amount": 53.077553,
                "total_deposited": 24.91567,
                "total_earned": 28.146885,
                "withdraw_address": "GcUgnY5fFwTv9ef8rsggdxbdQzLEUxpp4c",
                "deposit_address": "GfUgnY5sFwTf9ez8rovtdxdEQzLcbxpb4c"
            },
            {
                "deposit_id": 37,
                "share_id": 5,
                "current_amount": 885.9591,
                "total_deposited": 521.92,
                "total_earned": 472.30566,
                "withdraw_address": "gHWHPs21H8UsSNcbfWxvn5XssAxFkcuZYe",
                "deposit_address": "g4sbWWtD3tf16Dsd8wiaJkar3zhJ82qNKP"
            },
            {
                "deposit_id": 38,
                "share_id": 6,
                "current_amount": 754.5115,
                "total_deposited": 548.52997,
                "total_earned": 416.25214,
                "withdraw_address": "LLqWFFJkNSog6VwsbPWEWE4KcXJrzB6t1K",
                "deposit_address": "LW5Vbt1gEkvVQzfVcpLmidLPpcED1Yp3yu"
            }
        ]
    },
    "error": ""
}

By using
Code:
print_r($obj->result->deposits);

BUT how do I just get a specific bit of info for example if I want to display total_earned on deposit ID38 what would I have to alter
Code:
print_r($obj->result->deposits);
to to make it work ?

Many Thanks for any help offered Smiley

TT
6  Bitcoin / Project Development / My code is wrong and I cant figure it out :-\ on: March 07, 2022, 04:18:50 PM


I am trying to display information from my vps wallet onto my php webpage, I have spent 2 days googling but to no avail, perhaps some one here could laugh at my code and correct it - or - suggest a better way to achieve what I am looking for.


   
Code:
  require_once 'jsonRPCClient.php';
  
  $bitcoin = new jsonRPCClient('http://xxxxxxxx:xxxxxxxxxxxxxxxxxxxxxx@176.31.183.107:27772/');
  
  echo "<pre>\n";
  print_r($bitcoin->getbalance());
  echo "</pre>";


The result of the above is a white page, and on view source it displays

Code:
<pre>

Many thanks
7  Economy / Service Discussion / Looking for a Stake Pool script- Cant find one anywhere :-\ on: February 06, 2022, 10:31:53 AM
So as per the title I am looking for a website php script that runs a POS pool as opposed to the standard POW pools, something similar to stakecube I guess but with out all the other stuff they offer ie: exchange,fauctes and god knows what else.

I am really surprised this is so hard to find out there on the big WWW it seems everyone is still playing around with mpos, yimmp etc

Anyway if any one can point me in the right direction it would be most appreciated, oh and a while I have you here reading this I am also looking for masternodes scripts, I have a few MN's myself and am thinking of setting up a hosted service for either full MN's or shared MN's but again everything I have looked at so far have not really been fit for purpose, and these types of scripts seem to be pretty thin on the ground.

Thanks for any advice and the time taken to reply to this!

TT
8  Alternate cryptocurrencies / Altcoin Discussion / Altcoin address widget - is their one ? on: January 29, 2022, 12:21:57 PM
I am looking for either a widget that can take info from an altcoin address.... Example it will show balance of a specific address on my website (html/php).
I don't mind either a pre made widget or raw code.

Thanks
TT
9  Bitcoin / Project Development / Multiplying and API output by another API output on: May 20, 2021, 09:11:39 AM
Hi all

So I have built myself a php page to track my BTC holdings, and I am trying to add a value in $ box on the page.

I have an API output that is the current price of BTC (A) and I have an output of my BTC holdings (B) they are both via API.

Is it possible to multiply A by B to get (C - my holding value in $)

Thanks in advance for any help with this, I am on a rented OVH box running command line ubuntu 20xx.

TT

10  Alternate cryptocurrencies / Marketplace (Altcoins) / Looking to buy some ColossusXT on: May 16, 2021, 03:43:12 AM
As per title I am looking to buy some of these.

UK bank transfer, Paypal, or BTC

Thanks
TT
11  Alternate cryptocurrencies / Altcoin Discussion / Displaying my coin balance on a website using PHP on: May 15, 2021, 09:53:53 AM
Hi so its been a while since I needed to do this and it looks like my coding knowledge is well behind.

So I have a dedicated server with several wallets running on, and I want to display my coin balance amongst other things on a webpage (PHP)

In the past I would have created  a config file with :
rpcuser=
rpcpassword=
And simply connected with the daemon to fetch the info I required, however I have just tried this with colossusxt and my terminal has thrown this out at me:
Error: There is no RPC client functionality in colxd anymore. Use the colx-cli utility instead.

Could some one explain what the cli utility is or even better does anyone have an example bit of code used for pulling the info from the deamon and displaying on a web page?

Many Thanks
TT
12  Alternate cryptocurrencies / Marketplace (Altcoins) / Looking to buy some Verus on: May 10, 2021, 07:12:23 PM
As per title, is anyone selling Verus ?

Looking to buy 40-50 coins if the price is good.

Happy to pay in BTC or Fiat

Thanks
TT
13  Alternate cryptocurrencies / Altcoin Discussion / I guess personal wallets are a thing of the past now. on: May 05, 2021, 06:05:58 PM
I was just going through my appdata on my old comp (been in the shed for 4 years) and boy I used to run a lot of wallets on it.

And guess how many I have on my new comp = zero

So I started looking around the forum and can't really find a single wallet I can download onto my comp, add a few coins and start staking.

Amazing how fast it has all moved on in just a couple of years.

Nostalgic moment over now Smiley

Cheers
TT
14  Alternate cryptocurrencies / Mining (Altcoins) / $500 Solo staking - no pool. on: May 03, 2021, 06:23:27 PM
So what are peoples advice here as to which coin I should throw $500 at and stake solo ?
I currently stake:

DAI
XTZ
ALGO
ATOM

But these are NOT solo they are pooled, and I would like to stake on my own.

Thanks
TT
15  Economy / Computer hardware / [WTB] [UK Bristol] SHA256 miners on: May 01, 2021, 08:09:31 PM
HI all
Interested in buying a few more miners (Sha256).
Unless you are trusted on here I would prefer pick up so I can see them working.

Let me know what you all have.

Thanks
TT
16  Economy / Currency exchange / [UK] I am looking to buy a small amount of BTC happy to pay via bacs or PP. on: May 23, 2020, 05:06:15 PM
As per topic title.
I want to buy a small amount of BTC say around 0.005 I am happy to send a bank transfer or paypal . no newbies please, I know you all have to start somewhere but I will not deal with you.

Thanks
TT
17  Bitcoin / Project Development / A little help please - im guessing its php - single click redirect and vanish on: April 09, 2019, 03:08:31 AM
Man I'm so fucked off  Cheesy

4 hours on google and i still cant figure it out.

And breath !!!!

So I am trying to figure out how this dude does this :



So basically you click on the blue button and it opens his youtube page up in another browser tab, well that's simple code even for me but the bit I cant get my head around is when you go back to his page that button has gone and the download link has been revealed.

How the hell is he doing that ?

I want to use similar for a faucet i am creating and would love to be able to add that feature.

Im not worried about the download link its just the redirect and un-veil bit im interested in

His link is http://ramindigital.com/template10/free-intro-6.php

I thought to start with perhaps it was a meta refresh but thats not the case

Any help would be great

TT
18  Economy / Services / Video Intro's - Youtube - Website etc - Crypto Intro - Quick Turn Around on: April 04, 2019, 09:10:50 PM

There is currently 6 Templates to choose from , but more are being added weekly.

Templates length range from 8 - 23 seconds.

Video Output:

HD 1080p
59.94fps
MP4
Royalty Free Music track

Perfect for Youtube.

Your Logo and/or Text added.

Other custom work done.





Links:
Youtube Channel
Demo Video
Buy on Fiverr  Price on Fiverr = $10

BTC also accepted at the current rate for the price of $9

Thanks
TT








19  Economy / Invites & Accounts / Anyone want a bitspyder invite ? on: April 01, 2019, 11:33:39 AM
havn't been on a torrent site in ages, but just came across my .txt file containing my logins for trackers.

Most were "accounts disabled for not visiting" but my bitspyder account is still active and has some invites on there.

If anyone wants one let me know BCT Members or above only please.

Thanks
TT
20  Economy / Services / [SERVICE] Amazon Affiliate Websites and Stores on: March 31, 2019, 09:14:08 AM

Hi there.

I create and sell websites on eBay and obviously off eBay too.

My main focus is Amazon Affiliate websites.

They are simple to use and create some great passive incomes for my customers.

Here is an image of a recent one I built selling trainers/sneakers.





The sites all use Wordpress + Amazon + some really cool plugins that when put together look amazing.

My most recent build was for a youtuber that has 50k+ subscribers and wanted to re brand his channel and add Amazon as a passive income.

I created a new youtube banner for his channel and a website reflecting the graphical change so they are linked:

Youtiube channel: https://www.youtube.com/channel/UCkoD5eMbk8EykuFSsyc0LuA
Website/Store: https://wwesnapchat.com/




Affiliate websites are the best way by far to compliment your main income, they take up very little of your time infact most require less than a few hours a week and offer you a great source of passive income.

Our websites come fully stocked and are completely automated, so if the seller alters the price then the price displayed on your site will also change without you doing a thing.

The Sky's The Limit - Your Earning Potential Is HUGE.

Fact One
Did You Know AMAZON Pay Out MILLIONS In Commissions Every Year To Owners of Automated Websites Just Like Ours?

Fact Two
This is NOT A Get Rich Quick Scheme - It Is Though Possibly The Most GENUINE Opportunity To Earn A Passive Income Online You Will Ever Find Without Having To Get Naked.

Fact Three
A Work From Home Business With No Stock To Pay For - The Website Updates All Stock Levels And Prices Automatically.

FREE Domain

We will purchase a brand new domain name to setup your website on.
Once installation has been completed and the site passed over to you, we will also pass ownership of the newly registered domain name.
Please note the domain will be a .site domain if you wish for a different TLD please let me know and we will tell you how much extra it will cost, or you can purchase/use your own.

FREE Hosting

This sale has 1 months full cPanel webhosting included as a gift from us.
Your site will be hosted on the same servers we use, and are super fast and very reliable. Hosting after the initial month is charged at just £2.99 per /mth or you can move it to another host. You are not stuck with my hosting.

FREE Support

Unlike some of the horror stories we have been told, we wont grab your money and run, I mean what is the point of setting you up with a website and then watching you fail?
We believe that if you succeed and make money from this site, logic would then dictate you may aswell by another, after all two revenue streams are better than one right?
So with that in mind we offer full and free support via our live help widget on our sales site which you will be directed to after purchase.  

So lets have a little recap on everything:

You are buying a fully operational website, that is automated and populated with products, we will install everything needed including  all legal requirments for example the GDPR compliant cookie acceptance code.
This purchase includes domain name, hosting and support.



Lets talk now about how it works.

So the website is linked to Amazon by way of an affiliate code.
Amazon offers an affiliate account where by if you sell a product that they have listed you will earn a commission on the sale, the commission paid varies per category  from 0% to 10% for example if you sold an item that Amazon has listed in their "PC, PC Components, DVD & Blu-Ray" category you would  receive a commission of 2.50% on the other hand if you listed a product from the "Furniture, Home, Home Improvement, Lawn & Garden,  Pets Products, Pantry" category you would get 8.00% per sale.

We will add hundreds of products to your website, and show you how to add more in case you want to.

We will also add the following pages and or plugins:

  • Privacy Policy
  • Terms & Conditions
  • About us
  • Contact us
  • Automated
  • Analytics
  • Social media sharing

Other options
There is no reason why you can not add other passive income streams to your new website, for example google adsense, clickbank or pretty much anything that that is PPC, or PPS.



There really is no reason why this can fail

Most people now have facebook, instagram, and twitter accounts so why not use them, we have added a social plugin to your new website so be sure to use it, one share from you could end up being shared 100's of times by your friends and family.... social media is massive when it comes to advertising so use it!






Theses images are from sites I have created !







 
Pages: [1] 2 »
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!