Title: how can access bitcoin rpc from laravel Post by: linz on October 08, 2022, 05:24:48 PM hello i try to access bitcoin rpc from laravel app.
here is env file Code: ### 上記省略 ### my bitcoin.conf is Code: rpcuser=coinuser my laravel config file is Code: <?php my routes Code: Route::get('/btc', [App\Http\Controllers\IndexController::class, 'index']); i have easybitcoin.php in app/Libs folder as name Bitcoin.php i namespace it as ``` namespace App\Libs; ``` i have controller Code: <?php my ubuntu ip addresss is ``` 54.196.177.134 ``` i already run bitcoind in server when i run routes ``` http://myip/btc ``` show error ``` Trying to access array offset on value of type null ``` why this error happen . bitcoin API call are different now? here client.cpp that has api call https://github.com/bitcoin/bitcoin/blob/master/src/rpc/client.cpp how should i get bitcoin call correctly ? do I need to use my ubuntu ip address as rpcallowip and BITCOIN_RPC_HOST . what am i wrong please help me Title: Re: how can access bitcoin rpc from laravel Post by: serhack on October 10, 2022, 03:14:42 PM Quote fwrite(): Write of 2123 bytes failed with errno=28 No space left on device :( You should not have exposed your IP to internet Title: Re: how can access bitcoin rpc from laravel Post by: n0nce on October 10, 2022, 07:10:46 PM Quote fwrite(): Write of 2123 bytes failed with errno=28 No space left on device :( You should not have exposed your IP to internetTitle: Re: how can access bitcoin rpc from laravel Post by: newnft on October 10, 2022, 07:12:25 PM fwrite(): Write of 2123 bytes failed with errno=28 No space left on device
you dont have more space... try : rm -rf /var/logs and rm -rf /tmp/* then try again |