Comments (5)
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.
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.
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.
I’m currently using their latest version, 0.17.1. I hope you find out what went wrong.
from php-bitcoinrpc.
Maybe related to denpamusic/laravel-bitcoinrpc#8.
Should be completely fixed now.
from php-bitcoinrpc.
Related Issues (20)
- Different requirements in README.md and in composer.json HOT 3
- Support multi-wallet RPC calls
- Danger! Re-sends RPC call on failure HOT 4
- withdrawal Requests
- bitcoin.conf options HOT 6
- Batch support HOT 2
- ListTransactions HOT 4
- Supporting wallet passphrase in configs HOT 4
- How to create createrawtransaction i meet something wrong
- Command orders are important, whereas it shouldn't be on non-static usages.
- composer fails due to new Guzzle 7.0.1 with Laravel 7 HOT 2
- sendmany fails when passing valid json string HOT 4
- How library works HOT 1
- Method adrressbylabel response answer all directions HOT 1
- In simple HOT 3
- setaccount can only be used with own address
- Should not use set_exception_handler HOT 3
- How connect to third party RPC
- $bitcoind->sendToAddress and next steps
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from php-bitcoinrpc.