hopekelldev/laravel-tatum

A Laravel 10 package for interacting with Tatum.io API endpoints.

1.0.0 2024-05-01 13:56 UTC

This package is auto-updated.

Last update: 2024-10-31 00:23:52 UTC


README



Latest Version Total Downloads Scrutinizer Code Quality Requirements Laravel

Table of Contents

Welcome!

This is Laravel wrapper for Tatum.io API endpoints version 1.0.0 based on API version 4.0.

What is Tatum?

Tatum offers a flexible framework to build, run, and scale blockchain apps fast. To learn more about the Tatum blockchain development framework, visit our website.

The Tatum API features powerful endpoints that simplify a complex blockchain into single API requests. Code for all supported blockchains using unified API calls.

Getting Started

You can install the package via Composer:

composer require hopekelldev/laravel-tatum

The package will automatically register its service provider and facade.

You'll need to add the service provider to your config/app.php file:

'providers' => [
    // Other Service Providers
    HopekellDev\LaravelTatum\TatumServiceProvider::class,
],

Add alias too:

'aliases' => [
    // Other Aliases
    'Tatum' => HopekellDev\LaravelTatum\Facades\Tatum::class,
],

You can also publish the configuration file if you want to customize it:

php artisan vendor:publish --provider="HopekellDev\LaravelTatum\TatumServiceProvider" --tag="config"

You'll need to add your Tatum.io API credentials to your .env file:

TATUM_API_KEY=your-api-key
TATUM_ACCOUNT_ID=your-account-id

##Testing

use Tatum;

// Example usage
$balance = Tatum::getAccountBalance();