GithubHelp home page GithubHelp logo

Comments (5)

denpamusic avatar denpamusic commented on September 2, 2024

Hi, I don't know how it worked before(probably you're using a really old version), but the syntax you provided is incorrect.
Try calling it like this:

$bitcoind->getwalletinfo()->get();

If that was not the problem, please provide error log, I wouldn't be able to help you without it.

from php-bitcoinrpc.

Axiver avatar Axiver commented on September 2, 2024

Thanks for the reply, the error log is as follows:

[Sat Sep 08 06:22:17.838825 2018] [:error] [pid 18382] [client 174.85.255.102:44458] PHP Fatal error: ?Uncaught Denpa\Bitcoin\Exceptions\BitcoindException: getwalletinfo
Returns an object containing various wallet state info.

Result:
{
"walletname": xxxxx, (string) the wallet name
"walletversion": xxxxx, (numeric) the wallet version
"balance": xxxxxxx, (numeric) the total confirmed balance of the wallet in TUX
"unconfirmed_balance": xxx, (numeric) the total unconfirmed balance of the wallet in TUX
"immature_balance": xxxxxx, (numeric) the total immature balance of the wallet in TUX
"txcount": xxxxxxx, (numeric) the total number of transactions in the wallet
"keypoololdest": xxxxxx, (numeric) the timestamp (seconds since Unix epoch) of the oldest pre-generated key in the key pool
"keypoolsize": xxxx, (numeric) how many new keys are pre-generated (only counts external keys)
"keypoolsize_hd_internal": xxxx, (numeric) how many new keys are pre-generated for internal use
(used for change outputs, only appears if the wall in .../vendor/denpa/php-bitcoinrpc/src/Client.php on line 151, referer:
ipaddress/index.php

Edit: Oh! I've somehow got it working now, all it took was a full restart of the server ;-;

from php-bitcoinrpc.

denpamusic avatar denpamusic commented on September 2, 2024

Glad it worked for you in the end!
Though I really wonder what went wrong in the first place.
From your log it seems that you're using tuxcoin daemon.
Could you please specify which version.
I'll install it to the test server, just in case it happens again.

from php-bitcoinrpc.

Axiver avatar Axiver commented on September 2, 2024

I’m currently using their latest version, 0.17.1. I hope you find out what went wrong.

from php-bitcoinrpc.

denpamusic avatar denpamusic commented on September 2, 2024

Maybe related to denpamusic/laravel-bitcoinrpc#8.
Should be completely fixed now.

from php-bitcoinrpc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.