PHP code example of hopekelldev / laravel-tatum-io

1. Go to this page and download the library: Download hopekelldev/laravel-tatum-io library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

hopekelldev / laravel-tatum-io example snippets


use HopekellDev\Tatum\Facades\Tatum;

$response = Tatum::blockchainRpc()
    ->bitcoin()
    ->generateWallet();

return $response;

Tatum::blockchainRpc()
    ->bitcoin()
    ->generateWallet();

Tatum::blockchainRpc()
    ->ethereum()
    ->getBalance($address);

Tatum::smartContracts()
    ->nft()
    ->mint($data);

Tatum::smartContracts()
    ->fungibleTokens()
    ->transfer($data);

Tatum::smartContracts()
    ->marketplace()
    ->createListing($data);

Tatum::virtualAccounts()
    ->account()
    ->create($data);

Tatum::virtualAccounts()
    ->customer()
    ->create($data);

Tatum::virtualAccounts()
    ->withdrawal()
    ->create($data);

Tatum::blockchainNotifications()
    ->subscriptions()
    ->all();

Tatum::security()
    ->keyManagementSystem()
    ->sign($data);

Tatum::utils()
    ->blockchainUtils()
    ->broadcast($data);

use HopekellDev\Tatum\Facades\Tatum;
use HopekellDev\Tatum\Exceptions\TatumException;

try {

    $wallet = Tatum::blockchainRpc()
        ->bitcoin()
        ->generateWallet();

} catch (TatumException $e) {

    return $e->getMessage();

}
bash
php artisan vendor:publish --tag=tatum-config