for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace HopekellDev\LaravelTatum;
use GuzzleHttp\Client;
use HopekellDev\Tatum\Helpers\Blockchain;
use HopekellDev\Tatum\Helpers\Utils;
use HopekellDev\Tatum\Helpers\VirtualAccount;
class Tatum
{
protected $apiKey;
protected $accountID;
protected $baseUrl;
/**
* Construct
*/
function __construct()
$this->apiKey = config('tatum.apiKey');
config
If this is a false-positive, you can also ignore this issue in your code via the ignore-call annotation
ignore-call
$this->apiKey = /** @scrutinizer ignore-call */ config('tatum.apiKey');
$this->accountID = config('tatum.accountID');
$this->baseUrl = 'https://api.tatum.io/v3';
}
* Generates a unique reference
* @param $transactionPrefix
* @return string
public function generateReference(String $transactionPrefix = NULL)
if ($transactionPrefix) {
return $transactionPrefix . '_' . uniqid(time());
return 'ttm_' . uniqid(time());
* Access available blockchains
* @return Blockchain
public function blockchain()
$blockchain = new Blockchain($this->apiKey, $this->accountID, $this->baseUrl);
return $blockchain;
* Access Tatum Utils
* @return Utils
public function utils()
$utils = new Utils($this->apiKey, $this->accountID, $this->baseUrl);
return $utils;
public function virtualAccount()
$virtualAccount = new VirtualAccount($this->apiKey, $this->accountID, $this->baseUrl);
return $virtualAccount;