Giter Site home page Giter Site logo

denpamusic / laravel-bitcoinrpc Goto Github PK

View Code? Open in Web Editor NEW
88.0 8.0 40.0 330 KB

Bitcoin JSON-RPC Service Provider for Laravel.

Home Page: https://laravel-bitcoinrpc.denpa.pro

License: MIT License

PHP 99.62% Shell 0.38%
laravel bitcoinrpc cryptocurrencies bitcoin cryptocurrency api json-rpc php api-client laravel-package

laravel-bitcoinrpc's Introduction

Bitcoin JSON-RPC Service Provider for Laravel

Latest Stable Version License ci Code Climate Code Coverage

About

This package allows you to make JSON-RPC calls to Bitcoin Core JSON-RPC server from your laravel project. It's based on denpa/php-bitcoinrpc project - fully unit-tested Bitcoin JSON-RPC client powered by GuzzleHttp.

Quick Installation

  1. Install package:
composer require denpa/laravel-bitcoinrpc "^1.3"
  1. Publish config file
php artisan vendor:publish --provider="Denpa\Bitcoin\Providers\ServiceProvider"

Visit Installation for detailed installation guide.

Usage

This package provides simple and intuitive API to make RPC calls to Bitcoin Core (and some altcoins)

$hash = '000000000001caba23d5a17d5941f0c451c4ac221cbaa6c60f27502f53f87f68';
$block = bitcoind()->getBlock($hash);
dd($block->get());

Check Usage for more information and examples.

Documentation

Documentation is available here.

Requirements

  • PHP 8.0 or higher
  • Laravel 9.0 or higher

For PHP 5.6 to 7.0 use laravel-bitcoinrpc v1.2.8.
For PHP 7.0 to 7.4 use laravel-bitcoinrpc v1.2.11.

License

This product is distributed under the MIT license.

Donations

If you like this project, please consider donating:
BTC: 3L6dqSBNgdpZan78KJtzoXEk9DN3sgEQJu
Bech32: bc1qyj8v6l70c4mjgq7hujywlg6le09kx09nq8d350

❤Thanks for your support!❤

laravel-bitcoinrpc's People

Contributors

agherasachin avatar crydetaan avatar denpamusic avatar dependabot[bot] avatar kemalevren avatar reinierkors avatar zerglinggo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

laravel-bitcoinrpc's Issues

Bitcoin with ssl and domain get 401 error response

Hi there,

Before this, I already tried using this library to connect with my bitcoin node by using ip and custom ports and it was successful. Just now, im thinking about putting a domain and ssl cert to the connection and tried it but failed. It keep gives me error 401 when i tried getbalance command.

When i put the domain and port on web browser, it gives me no error and this message displayed "JSONRPC server handles only POST requests" and i assume this is considered my jsonrpc connection from remote host successful as this also displayed when im using ip address and no ssl.

How to configure my bitcoind.php so that i can do connection with domain instead of ip address and how im gonna implement ssl on the connection ? I tried including ssl cert path in bitcoind.php but nothing happens.

Kindly assist me on this matter

My setup:
Bitcoin node:
Core: Bitcoin Core Daemon version v0.18.0
OS: Ubuntu 18.04.3 LTS
SSL: certbot 0.31.0
Domain Handler: Cloudflare

Remote:
Laragon Lite
PHP 7.2
Windows 10

Entity Too Large

Client error: POST <public IP address removed> resulted in a 413 Request Entity Too Large response:

I got error when using decoderawtransaction. I already set the post_max_size = 2G and upload_max_filesize = 2G in php.ini. In apache, I already set the bodylimitrequest = 100MB.

Where do I need to change in order to pass this error? Thank you.

ZMQ implementation

Hi,

Is there any way to contact you outside of Github?
I would like to know where to implement:

bitcoind()->on('hashblock', function ($blockhash, $sequence)

The idea is that bitcoind sends eventdata over ZMQ to the service that is listening by your laravel-zmq package, correct?
Where would I implement the 'event handlers' so to speak, to be able to act upon them?

Thanks you

Request response containing an object with multiple same key is merged and data is missing

Describe the bug
The request results are merged when the keys are the same. This causes issues with some RPC commands that have results containing the same "key" part. For instance, a masternode outputs rpc command that have multiple results with the same txid as key and a different index as value.

To Reproduce
a bitcoind()->client()->request('masternode','outputs')->get(); should give you the bug as long as there is multiple outputs that have the same txid but different output index.

Expected behavior
I would expect the results be returned unaltered or to the very least, expose a method that would return the raw results.

Logs
This is a sample of an answer to the masternode output command from the wallet console

{
  "1fff541fd048b032aca39cd4ed1a864b05cfa3b596bd02a471d807eb7cee4981": "1",
  "1fff541fd048b032aca39cd4ed1a864b05cfa3b596bd02a471d807eb7cee4981": "2",
  "1fff541fd048b032aca39cd4ed1a864b05cfa3b596bd02a471d807eb7cee4981": "3",
  "11c07462fd35e438b6587c255e765912c8482c8fdc37191b102a1a2758eb4177": "1"
}

in that example, laravel-bitcoinrpc will return

{
  "1fff541fd048b032aca39cd4ed1a864b05cfa3b596bd02a471d807eb7cee4981": "3",
  "11c07462fd35e438b6587c255e765912c8482c8fdc37191b102a1a2758eb4177": "1"
}

Cryptocurrency
Describe used software and network:

  • Software: PACGlobal Core v0.14.0.3
  • Network: mainnet and testnet

Environment
Describe your runtime environment:

  • Laravel: 6.0.3
  • PHP: 7.3.9
  • Web Server (if applicable): nginx/1.17.1
  • System: macOS

JSON value is not a string as expected

Code:

public function index() {

	$blockHash = '31e0cee91eb6a718b856dd451b2ef5592d03a087b1eb878564f13c6f9055697f';
	$blockInfo = bitcoind()->getblock($blockHash);
	return response()->json($blockInfo->get());

}

Error:

Denpa\Bitcoin\Exceptions\BitcoindException thrown with message "JSON value is not a string as expected"
Stacktrace:
#54 Denpa\Bitcoin\Exceptions\BitcoindException in C:\OSPanel\domains\btc.loc\vendor\denpa\php-bitcoinrpc\src\Client.php:151
#53 Denpa\Bitcoin\Client:request in C:\OSPanel\domains\btc.loc\vendor\denpa\php-bitcoinrpc\src\Client.php:213
#52 Denpa\Bitcoin\Client:__call in C:\OSPanel\domains\btc.loc\vendor\denpa\laravel-bitcoinrpc\src\ClientFactory.php:125
#51 Denpa\Bitcoin\ClientFactory:__call in C:\OSPanel\domains\btc.loc\app\Http\Controllers\BitcoinController.php:12
#50 App\Http\Controllers\BitcoinController:index in C:\OSPanel\domains\btc.loc\vendor\laravel\framework\src\Illuminate\Routing\Controller.php:54
#49 call_user_func_array in C:\OSPanel\domains\btc.loc\vendor\laravel\framework\src\Illuminate\Routing\Controller.php:54
#48 Illuminate\Routing\Controller:callAction in C:\OSPanel\domains\btc.loc\vendor\laravel\framework\src\Illuminate\Routing\ControllerDispatcher.php:45
#47 Illuminate\Routing\ControllerDispatcher:dispatch in C:\OSPanel\domains\btc.loc\vendor\laravel\framework\src\Illuminate\Routing\Route.php:212
#46 Illuminate\Routing\Route:runController in C:\OSPanel\domains\btc.loc\vendor\laravel\framework\src\Illuminate\Routing\Route.php:169
#45 Illuminate\Routing\Route:run in C:\OSPanel\domains\btc.loc\vendor\laravel\framework\src\Illuminate\Routing\Router.php:679
#44 Illuminate\Routing\Router:Illuminate\Routing{closure} in C:\OSPanel\domains\btc.loc\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:30
#43 Illuminate\Routing\Pipeline:Illuminate\Routing{closure} in C:\OSPanel\domains\btc.loc\vendor\laravel\framework\src\Illuminate\Routing\Middleware\SubstituteBindings.php:41
#42 Illuminate\Routing\Middleware\SubstituteBindings:handle in C:\OSPanel\domains\btc.loc\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:151
#41 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline{closure} in C:\OSPanel\domains\btc.loc\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:53
#40 Illuminate\Routing\Pipeline:Illuminate\Routing{closure} in C:\OSPanel\domains\btc.loc\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\VerifyCsrfToken.php:75
#39 Illuminate\Foundation\Http\Middleware\VerifyCsrfToken:handle in C:\OSPanel\domains\btc.loc\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:151
#38 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline{closure} in C:\OSPanel\domains\btc.loc\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:53
#37 Illuminate\Routing\Pipeline:Illuminate\Routing{closure} in C:\OSPanel\domains\btc.loc\vendor\laravel\framework\src\Illuminate\View\Middleware\ShareErrorsFromSession.php:49
#36 Illuminate\View\Middleware\ShareErrorsFromSession:handle in C:\OSPanel\domains\btc.loc\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:151
#35 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline{closure} in C:\OSPanel\domains\btc.loc\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:53
#34 Illuminate\Routing\Pipeline:Illuminate\Routing{closure} in C:\OSPanel\domains\btc.loc\vendor\laravel\framework\src\Illuminate\Session\Middleware\StartSession.php:63
#33 Illuminate\Session\Middleware\StartSession:handle in C:\OSPanel\domains\btc.loc\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:151
#32 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline{closure} in C:\OSPanel\domains\btc.loc\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:53
#31 Illuminate\Routing\Pipeline:Illuminate\Routing{closure} in C:\OSPanel\domains\btc.loc\vendor\laravel\framework\src\Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse.php:37
#30 Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse:handle in C:\OSPanel\domains\btc.loc\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:151
#29 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline{closure} in C:\OSPanel\domains\btc.loc\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:53
#28 Illuminate\Routing\Pipeline:Illuminate\Routing{closure} in C:\OSPanel\domains\btc.loc\vendor\laravel\framework\src\Illuminate\Cookie\Middleware\EncryptCookies.php:66
#27 Illuminate\Cookie\Middleware\EncryptCookies:handle in C:\OSPanel\domains\btc.loc\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:151
#26 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline{closure} in C:\OSPanel\domains\btc.loc\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:53
#25 Illuminate\Routing\Pipeline:Illuminate\Routing{closure} in C:\OSPanel\domains\btc.loc\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:104
#24 Illuminate\Pipeline\Pipeline:then in C:\OSPanel\domains\btc.loc\vendor\laravel\framework\src\Illuminate\Routing\Router.php:681
#23 Illuminate\Routing\Router:runRouteWithinStack in C:\OSPanel\domains\btc.loc\vendor\laravel\framework\src\Illuminate\Routing\Router.php:656
#22 Illuminate\Routing\Router:runRoute in C:\OSPanel\domains\btc.loc\vendor\laravel\framework\src\Illuminate\Routing\Router.php:622
#21 Illuminate\Routing\Router:dispatchToRoute in C:\OSPanel\domains\btc.loc\vendor\laravel\framework\src\Illuminate\Routing\Router.php:611
#20 Illuminate\Routing\Router:dispatch in C:\OSPanel\domains\btc.loc\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php:176
#19 Illuminate\Foundation\Http\Kernel:Illuminate\Foundation\Http{closure} in C:\OSPanel\domains\btc.loc\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:30
#18 Illuminate\Routing\Pipeline:Illuminate\Routing{closure} in C:\OSPanel\domains\btc.loc\vendor\fideloper\proxy\src\TrustProxies.php:57
#17 Fideloper\Proxy\TrustProxies:handle in C:\OSPanel\domains\btc.loc\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:151
#16 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline{closure} in C:\OSPanel\domains\btc.loc\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:53
#15 Illuminate\Routing\Pipeline:Illuminate\Routing{closure} in C:\OSPanel\domains\btc.loc\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\TransformsRequest.php:31
#14 Illuminate\Foundation\Http\Middleware\TransformsRequest:handle in C:\OSPanel\domains\btc.loc\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:151
#13 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline{closure} in C:\OSPanel\domains\btc.loc\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:53
#12 Illuminate\Routing\Pipeline:Illuminate\Routing{closure} in C:\OSPanel\domains\btc.loc\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\TransformsRequest.php:31
#11 Illuminate\Foundation\Http\Middleware\TransformsRequest:handle in C:\OSPanel\domains\btc.loc\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:151
#10 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline{closure} in C:\OSPanel\domains\btc.loc\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:53
#9 Illuminate\Routing\Pipeline:Illuminate\Routing{closure} in C:\OSPanel\domains\btc.loc\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\ValidatePostSize.php:27
#8 Illuminate\Foundation\Http\Middleware\ValidatePostSize:handle in C:\OSPanel\domains\btc.loc\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:151
#7 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline{closure} in C:\OSPanel\domains\btc.loc\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:53
#6 Illuminate\Routing\Pipeline:Illuminate\Routing{closure} in C:\OSPanel\domains\btc.loc\vendor\laravel\framework\src\Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode.php:62
#5 Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode:handle in C:\OSPanel\domains\btc.loc\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:151
#4 Illuminate\Pipeline\Pipeline:Illuminate\Pipeline{closure} in C:\OSPanel\domains\btc.loc\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:53
#3 Illuminate\Routing\Pipeline:Illuminate\Routing{closure} in C:\OSPanel\domains\btc.loc\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:104
#2 Illuminate\Pipeline\Pipeline:then in C:\OSPanel\domains\btc.loc\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php:151
#1 Illuminate\Foundation\Http\Kernel:sendRequestThroughRouter in C:\OSPanel\domains\btc.loc\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php:116
#0 Illuminate\Foundation\Http\Kernel:handle in C:\OSPanel\domains\btc.loc\public\index.php:55

Bitcoin.conf:

rpcuser=userrpc
rpcpassword=rpcpassw
rpcport=18443
regtest=1
server=1

Spoiler bitcoind()->getbestblockhash();

getbestblockhash Returns the hash of the best (tip) block in the longest blockchain. Result: "hex" (string) the block hash hex encoded Examples: > bitcoin-cli getbestblockhash > curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getbestblockhash", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:8332/

Connection Refused

Hello,

I receive a connection refused.

bitcoin.conf

prune=600
rpcuser=username
rpcpassword=password
daemon=1
keypool=10000

I have tried this on a VPS DO, Ubuntu 18 also on localhost, getting the same error:

cURL error 7: Failed to connect to localhost port 8332: Connection refused (see http://curl.haxx.se/libcurl/c/libcurl-errors.html)

Does the package support omni sub-modules?

Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

Describe the solution you'd like
A clear and concise description of the feature that you want. If applicable, provide links that describe feature.
Ex. I want to be able to do multi-wallet requests. See: https://github.com/bitcoin/bitcoin/blob/master/doc/release-notes/release-notes-0.15.0.md#multi-wallet-support [...]

Additional context
Add any other context or screenshots about the feature request here.

FatalErrorException on newest release

Hello,

I just ran composer update on a wip app and am getting hit with this error now: Declaration of Denpa\Bitcoin\LaravelClient::getResponseHandler() must be compatible with Denpa\Bitcoin\Client::getResponseHandler(): string

Using 1.2.8 on Laravel Framework 5.7.15

Thanks

How to define two separate instance of different ports

This project is great and easy to work with bitcoin json rpc.
As I was testing, is it possible to define other instance with different config settings, e.g: for a forked alt-coin which usually have same functionalities.

composer fails due to new Guzzle 7.0.1 with Laravel 7

Describe the bug
The latest Laravel version comes with Guzzle 7.0.1 See Guzzle 7 Released
Running composer fails with:
Your requirements could not be resolved to an installable set of packages.

To Reproduce
Run
composer require denpa/laravel-bitcoinrpc "^1.2"
with a fresh Laravel 7 installation

Expected behavior
Dependency should be met

Logs
composer require denpa/laravel-bitcoinrpc "^1.2"
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

Problem 1
- Installation request for guzzlehttp/guzzle (locked at 7.0.1, required as ^7.0) -> satisfiable by guzzlehttp/guzzle[7.0.1].
- denpa/laravel-bitcoinrpc 1.2.x-dev requires denpa/php-bitcoinrpc >=2.1.2 <2.2 -> satisfiable by denpa/php-bitcoinrpc[2.1.x-dev, v2.1.2].
- denpa/laravel-bitcoinrpc v1.2.10 requires denpa/php-bitcoinrpc ^2.1 -> satisfiable by denpa/php-bitcoinrpc[2.1.x-dev, 2.2.x-dev, v2.1.0, v2.1.1, v2.1.2].
- denpa/laravel-bitcoinrpc v1.2.9 requires denpa/php-bitcoinrpc ^2.1 -> satisfiable by denpa/php-bitcoinrpc[2.1.x-dev, 2.2.x-dev, v2.1.0, v2.1.1, v2.1.2].
- denpa/laravel-bitcoinrpc v1.2.0 requires denpa/php-bitcoinrpc ^2.0 -> satisfiable by denpa/php-bitcoinrpc[2.0.x-dev, 2.1.x-dev, 2.2.x-dev, v2.0.0, v2.0.0beta1, v2.0.0rc1, v2.0.1, v2.0.10, v2.0.11, v2.0.12, v2.0.13, v2.0.2, v2.0.3, v2.0.4, v2.0.5, v2.0.6, v2.0.7, v2.0.8, v2.0.9, v2.1.0, v2.1.1, v2.1.2].
- denpa/laravel-bitcoinrpc v1.2.1 requires denpa/php-bitcoinrpc ^2.0 -> satisfiable by denpa/php-bitcoinrpc[2.0.x-dev, 2.1.x-dev, 2.2.x-dev, v2.0.0, v2.0.0beta1, v2.0.0rc1, v2.0.1, v2.0.10, v2.0.11, v2.0.12, v2.0.13, v2.0.2, v2.0.3, v2.0.4, v2.0.5, v2.0.6, v2.0.7, v2.0.8, v2.0.9, v2.1.0, v2.1.1, v2.1.2].
- denpa/laravel-bitcoinrpc v1.2.2 requires denpa/php-bitcoinrpc ^2.0 -> satisfiable by denpa/php-bitcoinrpc[2.0.x-dev, 2.1.x-dev, 2.2.x-dev, v2.0.0, v2.0.0beta1, v2.0.0rc1, v2.0.1, v2.0.10, v2.0.11, v2.0.12, v2.0.13, v2.0.2, v2.0.3, v2.0.4, v2.0.5, v2.0.6, v2.0.7, v2.0.8, v2.0.9, v2.1.0, v2.1.1, v2.1.2].
- denpa/laravel-bitcoinrpc v1.2.3 requires denpa/php-bitcoinrpc ^2.0 -> satisfiable by denpa/php-bitcoinrpc[2.0.x-dev, 2.1.x-dev, 2.2.x-dev, v2.0.0, v2.0.0beta1, v2.0.0rc1, v2.0.1, v2.0.10, v2.0.11, v2.0.12, v2.0.13, v2.0.2, v2.0.3, v2.0.4, v2.0.5, v2.0.6, v2.0.7, v2.0.8, v2.0.9, v2.1.0, v2.1.1, v2.1.2].
- denpa/laravel-bitcoinrpc v1.2.4 requires denpa/php-bitcoinrpc ^2.0 -> satisfiable by denpa/php-bitcoinrpc[2.0.x-dev, 2.1.x-dev, 2.2.x-dev, v2.0.0, v2.0.0beta1, v2.0.0rc1, v2.0.1, v2.0.10, v2.0.11, v2.0.12, v2.0.13, v2.0.2, v2.0.3, v2.0.4, v2.0.5, v2.0.6, v2.0.7, v2.0.8, v2.0.9, v2.1.0, v2.1.1, v2.1.2].
- denpa/laravel-bitcoinrpc v1.2.5 requires denpa/php-bitcoinrpc ^2.0 -> satisfiable by denpa/php-bitcoinrpc[2.0.x-dev, 2.1.x-dev, 2.2.x-dev, v2.0.0, v2.0.0beta1, v2.0.0rc1, v2.0.1, v2.0.10, v2.0.11, v2.0.12, v2.0.13, v2.0.2, v2.0.3, v2.0.4, v2.0.5, v2.0.6, v2.0.7, v2.0.8, v2.0.9, v2.1.0, v2.1.1, v2.1.2].
- denpa/laravel-bitcoinrpc v1.2.6 requires denpa/php-bitcoinrpc ^2.0 -> satisfiable by denpa/php-bitcoinrpc[2.0.x-dev, 2.1.x-dev, 2.2.x-dev, v2.0.0, v2.0.0beta1, v2.0.0rc1, v2.0.1, v2.0.10, v2.0.11, v2.0.12, v2.0.13, v2.0.2, v2.0.3, v2.0.4, v2.0.5, v2.0.6, v2.0.7, v2.0.8, v2.0.9, v2.1.0, v2.1.1, v2.1.2].
- denpa/laravel-bitcoinrpc v1.2.7 requires denpa/php-bitcoinrpc ^2.0 -> satisfiable by denpa/php-bitcoinrpc[2.0.x-dev, 2.1.x-dev, 2.2.x-dev, v2.0.0, v2.0.0beta1, v2.0.0rc1, v2.0.1, v2.0.10, v2.0.11, v2.0.12, v2.0.13, v2.0.2, v2.0.3, v2.0.4, v2.0.5, v2.0.6, v2.0.7, v2.0.8, v2.0.9, v2.1.0, v2.1.1, v2.1.2].
- denpa/laravel-bitcoinrpc v1.2.8 requires denpa/php-bitcoinrpc >=2.0.11 -> satisfiable by denpa/php-bitcoinrpc[2.0.x-dev, 2.1.x-dev, 2.2.x-dev, dev-master, v2.0.11, v2.0.12, v2.0.13, v2.1.0, v2.1.1, v2.1.2].
- denpa/laravel-bitcoinrpc v1.2.8.1 requires denpa/php-bitcoinrpc >=2.0.11,<2.1 -> satisfiable by denpa/php-bitcoinrpc[2.0.x-dev, v2.0.11, v2.0.12, v2.0.13].
- denpa/php-bitcoinrpc 2.1.x-dev requires guzzlehttp/guzzle ^6.3 -> satisfiable by guzzlehttp/guzzle[6.5.x-dev].
- denpa/php-bitcoinrpc v2.1.2 requires guzzlehttp/guzzle ^6.3 -> satisfiable by guzzlehttp/guzzle[6.5.x-dev].
- denpa/php-bitcoinrpc 2.0.x-dev requires guzzlehttp/guzzle ^6.3 -> satisfiable by guzzlehttp/guzzle[6.5.x-dev].
- denpa/php-bitcoinrpc 2.2.x-dev requires guzzlehttp/guzzle ^6.3 -> satisfiable by guzzlehttp/guzzle[6.5.x-dev].
- denpa/php-bitcoinrpc v2.0.0 requires guzzlehttp/guzzle ^6.2 -> satisfiable by guzzlehttp/guzzle[6.5.x-dev].
- denpa/php-bitcoinrpc v2.0.0beta1 requires guzzlehttp/guzzle ^6.2 -> satisfiable by guzzlehttp/guzzle[6.5.x-dev].
- denpa/php-bitcoinrpc v2.0.0rc1 requires guzzlehttp/guzzle ^6.2 -> satisfiable by guzzlehttp/guzzle[6.5.x-dev].
- denpa/php-bitcoinrpc v2.0.1 requires guzzlehttp/guzzle ^6.2 -> satisfiable by guzzlehttp/guzzle[6.5.x-dev].
- denpa/php-bitcoinrpc v2.0.10 requires guzzlehttp/guzzle ^6.3 -> satisfiable by guzzlehttp/guzzle[6.5.x-dev].
- denpa/php-bitcoinrpc v2.0.11 requires guzzlehttp/guzzle ^6.3 -> satisfiable by guzzlehttp/guzzle[6.5.x-dev].
- denpa/php-bitcoinrpc v2.0.12 requires guzzlehttp/guzzle ^6.3 -> satisfiable by guzzlehttp/guzzle[6.5.x-dev].
- denpa/php-bitcoinrpc v2.0.13 requires guzzlehttp/guzzle ^6.3 -> satisfiable by guzzlehttp/guzzle[6.5.x-dev].
- denpa/php-bitcoinrpc v2.0.2 requires guzzlehttp/guzzle ^6.2 -> satisfiable by guzzlehttp/guzzle[6.5.x-dev].
- denpa/php-bitcoinrpc v2.0.3 requires guzzlehttp/guzzle ^6.2 -> satisfiable by guzzlehttp/guzzle[6.5.x-dev].
- denpa/php-bitcoinrpc v2.0.4 requires guzzlehttp/guzzle ^6.2 -> satisfiable by guzzlehttp/guzzle[6.5.x-dev].
- denpa/php-bitcoinrpc v2.0.5 requires guzzlehttp/guzzle ^6.3 -> satisfiable by guzzlehttp/guzzle[6.5.x-dev].
- denpa/php-bitcoinrpc v2.0.6 requires guzzlehttp/guzzle ^6.3 -> satisfiable by guzzlehttp/guzzle[6.5.x-dev].
- denpa/php-bitcoinrpc v2.0.7 requires guzzlehttp/guzzle ^6.3 -> satisfiable by guzzlehttp/guzzle[6.5.x-dev].
- denpa/php-bitcoinrpc v2.0.8 requires guzzlehttp/guzzle ^6.3 -> satisfiable by guzzlehttp/guzzle[6.5.x-dev].
- denpa/php-bitcoinrpc v2.0.9 requires guzzlehttp/guzzle ^6.3 -> satisfiable by guzzlehttp/guzzle[6.5.x-dev].
- denpa/php-bitcoinrpc v2.1.0 requires guzzlehttp/guzzle ^6.3 -> satisfiable by guzzlehttp/guzzle[6.5.x-dev].
- denpa/php-bitcoinrpc v2.1.1 requires guzzlehttp/guzzle ^6.3 -> satisfiable by guzzlehttp/guzzle[6.5.x-dev].
- denpa/php-bitcoinrpc dev-master requires guzzlehttp/guzzle ^6.3 -> satisfiable by guzzlehttp/guzzle[6.5.x-dev].
- Conclusion: don't install denpa/laravel-bitcoinrpc v1.2.11|install guzzlehttp/guzzle 6.5.x-dev
- Conclusion: don't install guzzlehttp/guzzle 6.5.x-dev
- Installation request for denpa/laravel-bitcoinrpc ^1.2 -> satisfiable by denpa/laravel-bitcoinrpc[1.2.x-dev, v1.2.0, v1.2.1, v1.2.10, v1.2.11, v1.2.2, v1.2.3, v1.2.4, v1.2.5, v1.2.6, v1.2.7, v1.2.8, v1.2.8.1, v1.2.9].

Installation failed, reverting ./composer.json to its original content.

Environment
Describe your runtime environment:

  • Laravel Framework 7.25.0
  • PHP 7.3.11 (cli) (built: Jun 5 2020 23:50:40) ( NTS )

Can't connect to getWalletInfo

Describe the bug
The Error is that I create a wallet and to get it back it keeps saying the Denpa\Bitcoin\Exceptions\BadRemoteCallException
Wallet file not specified (must request wallet RPC through /wallet/ uri-path)

To Reproduce
return $this->bitcoind()->getwalletinfo('./.bitcoin/wallet/c0af7666-a62b-5649-8f16-701a0b62dfcd');

Expected behavior


{
  "walletname": xxxxx,               (string) the wallet name
  "walletversion": xxxxx,            (numeric) the wallet version
  "balance": xxxxxxx,                (numeric) the total confirmed balance of the wallet in BTC
  "unconfirmed_balance": xxx,        (numeric) the total unconfirmed balance of the wallet in BTC
  "immature_balance": xxxxxx,        (numeric) the total immature balance of the wallet in BTC
  "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 wallet is using this feature, otherwise external keys are used)
  "unlocked_until": ttt,             (numeric) the timestamp in seconds since epoch (midnight Jan 1 1970 GMT) that the wallet is unlocked for transfers, or 0 if the wallet is locked
  "paytxfee": x.xxxx,                (numeric) the transaction fee configuration, set in BTC/kB
  "hdseedid": "<hash160>"            (string, optional) the Hash160 of the HD seed (only present when HD is enabled)
  "private_keys_enabled": true|false (boolean) false if privatekeys are disabled for this wallet (enforced watch-only wallet)
}

Logs
If applicable, attach log files.
Feel free to omit any sensitive information.

Cryptocurrency
Describe used software and network:

  • Software: Bitcoin Core v0.17.0
  • Network: mainnet or testnet

Environment
Describe your runtime environment:

  • Laravel: 7.2 (run php artisan --version to get Laravel version)
  • PHP: 7.0 (run php -v to get php version)
  • Web Server (if applicable): nginx/1.15.3
  • System: Ubuntu 18.04.01 LTS

Argument 1 passed to Denpa\\Bitcoin\\ClientFactory::__construct()

Describe the bug
A clear and concise description of what the bug is.
Hello bro, Is my first time to use this package and have this error bro,

{
    "message": "Argument 1 passed to Denpa\\Bitcoin\\ClientFactory::__construct() must be of the type array, null given, called in /home/aisak/Documentos/lubuntu/Projects Front/walletBitcoin/backend/vendor/denpa/laravel-bitcoinrpc/src/Providers/ServiceProvider.php on line 65",
    "exception": "TypeError",
    "file": "/home/aisak/Documentos/lubuntu/Projects Front/walletBitcoin/backend/vendor/denpa/laravel-bitcoinrpc/src/ClientFactory.php",
    "line": 42,
    "trace": [
        {
            "file": "/home/aisak/Documentos/lubuntu/Projects Front/walletBitcoin/backend/vendor/denpa/laravel-bitcoinrpc/src/Providers/ServiceProvider.php",
            "line": 65,
            "function": "__construct",
            "class": "Denpa\\Bitcoin\\ClientFactory",
            "type": "->"
        },
        {
            "file": "/home/aisak/Documentos/lubuntu/Projects Front/walletBitcoin/backend/vendor/laravel/framework/src/Illuminate/Container/Container.php",
            "line": 826,
            "function": "Denpa\\Bitcoin\\Providers\\{closure}",
            "class": "Denpa\\Bitcoin\\Providers\\ServiceProvider",
            "type": "->"
        },
        {
            "file": "/home/aisak/Documentos/lubuntu/Projects Front/walletBitcoin/backend/vendor/laravel/framework/src/Illuminate/Container/Container.php",
            "line": 712,
            "function": "build",
            "class": "Illuminate\\Container\\Container",
            "type": "->"
        },
        {
            "file": "/home/aisak/Documentos/lubuntu/Projects Front/walletBitcoin/backend/vendor/laravel/framework/src/Illuminate/Foundation/Application.php",
            "line": 796,
            "function": "resolve",
            "class": "Illuminate\\Container\\Container",
            "type": "->"
        },
        {
            "file": "/home/aisak/Documentos/lubuntu/Projects Front/walletBitcoin/backend/vendor/laravel/framework/src/Illuminate/Container/Container.php",
            "line": 651,
            "function": "resolve",
            "class": "Illuminate\\Foundation\\Application",
            "type": "->"
        },
        {
            "file": "/home/aisak/Documentos/lubuntu/Projects Front/walletBitcoin/backend/vendor/laravel/framework/src/Illuminate/Foundation/Application.php",
            "line": 781,
            "function": "make",
            "class": "Illuminate\\Container\\Container",
            "type": "->"
        },
        {
            "file": "/home/aisak/Documentos/lubuntu/Projects Front/walletBitcoin/backend/vendor/laravel/framework/src/Illuminate/Foundation/helpers.php",
            "line": 119,
            "function": "make",
            "class": "Illuminate\\Foundation\\Application",
            "type": "->"
        },
        {
            "file": "/home/aisak/Documentos/lubuntu/Projects Front/walletBitcoin/backend/vendor/denpa/laravel-bitcoinrpc/src/Traits/Bitcoind.php",
            "line": 18,
            "function": "app"
        },
        {
            "file": "/home/aisak/Documentos/lubuntu/Projects Front/walletBitcoin/backend/app/Http/Controllers/Auth/RegisterController.php",
            "line": 69,
            "function": "bitcoind",
            "class": "App\\Http\\Controllers\\Auth\\RegisterController",
            "type": "->"
        },
        {
            "file": "/home/aisak/Documentos/lubuntu/Projects Front/walletBitcoin/backend/app/Http/Controllers/Auth/RegisterController.php",
            "line": 25,
            "function": "blockInfo",
            "class": "App\\Http\\Controllers\\Auth\\RegisterController",
            "type": "->"
        },
        {
            "file": "/home/aisak/Documentos/lubuntu/Projects Front/walletBitcoin/backend/vendor/laravel/framework/src/Illuminate/Routing/Controller.php",
            "line": 54,
            "function": "create",
            "class": "App\\Http\\Controllers\\Auth\\RegisterController",
            "type": "->"
        },
        {
            "file": "/home/aisak/Documentos/lubuntu/Projects Front/walletBitcoin/backend/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php",
            "line": 45,
            "function": "callAction",
            "class": "Illuminate\\Routing\\Controller",
            "type": "->"
        },
        {
            "file": "/home/aisak/Documentos/lubuntu/Projects Front/walletBitcoin/backend/vendor/laravel/framework/src/Illuminate/Routing/Route.php",
            "line": 254,
            "function": "dispatch",
            "class": "Illuminate\\Routing\\ControllerDispatcher",
            "type": "->"
        },
        {
            "file": "/home/aisak/Documentos/lubuntu/Projects Front/walletBitcoin/backend/vendor/laravel/framework/src/Illuminate/Routing/Route.php",
            "line": 197,
            "function": "runController",
            "class": "Illuminate\\Routing\\Route",
            "type": "->"
        },
        {
            "file": "/home/aisak/Documentos/lubuntu/Projects Front/walletBitcoin/backend/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 692,
            "function": "run",
            "class": "Illuminate\\Routing\\Route",
            "type": "->"
        },
        {
            "file": "/home/aisak/Documentos/lubuntu/Projects Front/walletBitcoin/backend/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 128,
            "function": "Illuminate\\Routing\\{closure}",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/home/aisak/Documentos/lubuntu/Projects Front/walletBitcoin/backend/vendor/laravel/framework/src/Illuminate/Routing/Middleware/SubstituteBindings.php",
            "line": 41,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/home/aisak/Documentos/lubuntu/Projects Front/walletBitcoin/backend/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 167,
            "function": "handle",
            "class": "Illuminate\\Routing\\Middleware\\SubstituteBindings",
            "type": "->"
        },
        {
            "file": "/home/aisak/Documentos/lubuntu/Projects Front/walletBitcoin/backend/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
            "line": 127,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/home/aisak/Documentos/lubuntu/Projects Front/walletBitcoin/backend/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
            "line": 103,
            "function": "handleRequest",
            "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
            "type": "->"
        },
        {
            "file": "/home/aisak/Documentos/lubuntu/Projects Front/walletBitcoin/backend/vendor/laravel/framework/src/Illuminate/Routing/Middleware/ThrottleRequests.php",
            "line": 55,
            "function": "handleRequestUsingNamedLimiter",
            "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
            "type": "->"
        },
        {
            "file": "/home/aisak/Documentos/lubuntu/Projects Front/walletBitcoin/backend/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 167,
            "function": "handle",
            "class": "Illuminate\\Routing\\Middleware\\ThrottleRequests",
            "type": "->"
        },
        {
            "file": "/home/aisak/Documentos/lubuntu/Projects Front/walletBitcoin/backend/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php",
            "line": 33,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/home/aisak/Documentos/lubuntu/Projects Front/walletBitcoin/backend/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 128,
            "function": "Laravel\\Sanctum\\Http\\Middleware\\{closure}",
            "class": "Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful",
            "type": "->"
        },
        {
            "file": "/home/aisak/Documentos/lubuntu/Projects Front/walletBitcoin/backend/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 103,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/home/aisak/Documentos/lubuntu/Projects Front/walletBitcoin/backend/vendor/laravel/sanctum/src/Http/Middleware/EnsureFrontendRequestsAreStateful.php",
            "line": 34,
            "function": "then",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/home/aisak/Documentos/lubuntu/Projects Front/walletBitcoin/backend/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 167,
            "function": "handle",
            "class": "Laravel\\Sanctum\\Http\\Middleware\\EnsureFrontendRequestsAreStateful",
            "type": "->"
        },
        {
            "file": "/home/aisak/Documentos/lubuntu/Projects Front/walletBitcoin/backend/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 103,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/home/aisak/Documentos/lubuntu/Projects Front/walletBitcoin/backend/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 694,
            "function": "then",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/home/aisak/Documentos/lubuntu/Projects Front/walletBitcoin/backend/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 669,
            "function": "runRouteWithinStack",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/home/aisak/Documentos/lubuntu/Projects Front/walletBitcoin/backend/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 635,
            "function": "runRoute",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/home/aisak/Documentos/lubuntu/Projects Front/walletBitcoin/backend/vendor/laravel/framework/src/Illuminate/Routing/Router.php",
            "line": 624,
            "function": "dispatchToRoute",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/home/aisak/Documentos/lubuntu/Projects Front/walletBitcoin/backend/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
            "line": 166,
            "function": "dispatch",
            "class": "Illuminate\\Routing\\Router",
            "type": "->"
        },
        {
            "file": "/home/aisak/Documentos/lubuntu/Projects Front/walletBitcoin/backend/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 128,
            "function": "Illuminate\\Foundation\\Http\\{closure}",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->"
        },
        {
            "file": "/home/aisak/Documentos/lubuntu/Projects Front/walletBitcoin/backend/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
            "line": 21,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/home/aisak/Documentos/lubuntu/Projects Front/walletBitcoin/backend/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 167,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
            "type": "->"
        },
        {
            "file": "/home/aisak/Documentos/lubuntu/Projects Front/walletBitcoin/backend/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/TransformsRequest.php",
            "line": 21,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/home/aisak/Documentos/lubuntu/Projects Front/walletBitcoin/backend/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 167,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\TransformsRequest",
            "type": "->"
        },
        {
            "file": "/home/aisak/Documentos/lubuntu/Projects Front/walletBitcoin/backend/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/ValidatePostSize.php",
            "line": 27,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/home/aisak/Documentos/lubuntu/Projects Front/walletBitcoin/backend/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 167,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\ValidatePostSize",
            "type": "->"
        },
        {
            "file": "/home/aisak/Documentos/lubuntu/Projects Front/walletBitcoin/backend/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/PreventRequestsDuringMaintenance.php",
            "line": 87,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/home/aisak/Documentos/lubuntu/Projects Front/walletBitcoin/backend/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 167,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Middleware\\PreventRequestsDuringMaintenance",
            "type": "->"
        },
        {
            "file": "/home/aisak/Documentos/lubuntu/Projects Front/walletBitcoin/backend/vendor/fideloper/proxy/src/TrustProxies.php",
            "line": 57,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/home/aisak/Documentos/lubuntu/Projects Front/walletBitcoin/backend/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 167,
            "function": "handle",
            "class": "Fideloper\\Proxy\\TrustProxies",
            "type": "->"
        },
        {
            "file": "/home/aisak/Documentos/lubuntu/Projects Front/walletBitcoin/backend/vendor/laravel/framework/src/Illuminate/Http/Middleware/TrustHosts.php",
            "line": 48,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/home/aisak/Documentos/lubuntu/Projects Front/walletBitcoin/backend/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 167,
            "function": "handle",
            "class": "Illuminate\\Http\\Middleware\\TrustHosts",
            "type": "->"
        },
        {
            "file": "/home/aisak/Documentos/lubuntu/Projects Front/walletBitcoin/backend/vendor/fruitcake/laravel-cors/src/HandleCors.php",
            "line": 57,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/home/aisak/Documentos/lubuntu/Projects Front/walletBitcoin/backend/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 167,
            "function": "handle",
            "class": "Fruitcake\\Cors\\HandleCors",
            "type": "->"
        },
        {
            "file": "/home/aisak/Documentos/lubuntu/Projects Front/walletBitcoin/backend/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php",
            "line": 103,
            "function": "Illuminate\\Pipeline\\{closure}",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/home/aisak/Documentos/lubuntu/Projects Front/walletBitcoin/backend/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
            "line": 141,
            "function": "then",
            "class": "Illuminate\\Pipeline\\Pipeline",
            "type": "->"
        },
        {
            "file": "/home/aisak/Documentos/lubuntu/Projects Front/walletBitcoin/backend/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php",
            "line": 110,
            "function": "sendRequestThroughRouter",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->"
        },
        {
            "file": "/home/aisak/Documentos/lubuntu/Projects Front/walletBitcoin/backend/public/index.php",
            "line": 52,
            "function": "handle",
            "class": "Illuminate\\Foundation\\Http\\Kernel",
            "type": "->"
        },
        {
            "file": "/home/aisak/Documentos/lubuntu/Projects Front/walletBitcoin/backend/server.php",
            "line": 21,
            "function": "require_once"
        }
    ]
}

To Reproduce
What code caused the problem.
Feel free to omit any sensitive information.
In my RegisterController I have this

<?php

namespace App\Http\Controllers\Auth;


use App\Http\Controllers\Controller;
use App\Models\Role;
use App\Models\TypeUser;
use Illuminate\Support\Facades\DB;
use Illuminate\Support\Facades\Hash;
use Illuminate\Support\Facades\Validator;
use Illuminate\Http\Request;
use App\Models\Country;
use App\Models\User;
use Illuminate\Support\Str;
use MongoDB\BSON\Type;
use Denpa\Bitcoin\Traits\Bitcoind;

class RegisterController extends Controller
{
    //
    use Bitcoind;
    public function create(Request $request){

        return $this->blockInfo();
    }
    public function getUniqueRefferalCode(){
        return  uniqid();
    }
    public function blockInfo()
    {
        $hash = '000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f';
        $block = $this->bitcoind()->getBlock($hash);
        return response()->json($block->get());
    }

}

Expected behavior
A clear and concise description of what you expected to happen.
I send with my postman un post and the response is the tittle of this issue.
Logs
If applicable, attach log files.
Feel free to omit any sensitive information.

Cryptocurrency
Describe used software and network:

  • Software: Bitcoin Core v0.17.0
  • Network: mainnet or testnet

Environment
Describe your runtime environment:

  • Laravel: 8.12 (run php artisan --version to get Laravel version)
  • PHP: 7.3 o 8.0 (run php -v to get php version)
  • Web Server (if applicable): nginx/1.15.3
  • System: Lubuntu 20.04 LTS

Additional information
Add any other information about the problem here.

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.