Laravel wrapper for Suprnova API
Suprnova is a Suprnova api wrapper for Laravel 5.5
composer require krorten/suprnova
After installing, register the Krorten\Suprnova\Providers\CryptocompProvider
in your config/app.php
configuration file:
'providers' => [
// Other service providers...
Krorten\Suprnova\Providers\SuprnovaProvider::class,
],
Also, add the Suprnova
facade to the aliases
array in your app
configuration file:
'Suprnova' => Krorten\Suprnova\Facades\SuprnovaFacade::class,
You need to set the type of coin before you can retreive any info. And also the API Key found in your account
//Get user(wallet addr) general summary
Suprnova::setType('zec')->setApiKey('')->user();
//Get list of workers with connected to user(wallet addr)
Suprnova::setType('eth')->setApiKey('')->workers();
//Other actions to use
->hashrate
->balance
->dashboard
->transactions
Suprnova API Wrapper is open-sourced software licensed under the MIT license