Giter VIP home page Giter VIP logo

tatum-sdk's Introduction

Logo

**Unofficial** Tatum SDK

Welcome to Tatum SDK - Golang Library for Simplifying Blockchain Development.
Documentation

GitHub license npm version GitHub license Build


๐Ÿš€ Tatum SDK

A powerful, feature-rich Golang library that streamlines the development of blockchain applications.

๐Ÿ” Designed For Developers If you're looking to integrate blockchain functionalities into your projects, Tatum SDK is for you.

Documentation
EVM Blockchains
Ethereum RPC
Polygon RPC
Flare RPC
Haqq RPC
Optimism RPC
Horizen EON RPC
Arbitrum One RPC
Chiliz RPC
Ethereum Classic RPC
Klaytn RPC
Avalanche RPC
Celo RPC
XinFin RPC
UTXO Blockchains
Bitcoin RPC
Litecoin RPC
Dogecoin RPC
ZCash RPC
Bitcoin Cash RPC
Other Blockchains
Solana RPC
XPR RPC
Tron RPC
Eos RPC
Tezos RPC
Agorand RPC
Cardano RPC
Stellar RPC

Installation

To install TatumSDK, simply run the following command in your terminal or command prompt:

Install using

go get github.com/amindotb/tatum-sdk

Getting started

Basic Usage

Here's a brief overview of how to utilize TatumSDK with an v4 API key.

Initialization

Start by importing the TatumSDK library and initializing Ethereum client as follows:

const apiKey = "YOU_API_KEY_HERE"
var api = NewAPI(client.WithAPIKey(apiKey))

๐Ÿ”” Create Notifications

Effortlessly monitor wallet activities. Set up real-time notifications for events like:

Documentation
Start monitoring of the address
Stop monitoring of the address
Get all sent notifications
Get all existing monitoring subscriptions

Start monitoring of the address

var subscription = subscription.SubscriptionInput{
    Type: subscription.TYPE_ADDRESS_EVENT,
    Attribute: subscription.SubscriptionAttribute{
        Address: "0x8e12113ded05113d1a59bad8c37c295633ff6a97",
        Chain:   constants.CHAIN_ETH,
        Url:     "https://your.website/webhook",
    },
}
resp, err := api.subscription.Subscribe(subscription)

Stop monitoring of the address

var subscriptionId = "SUBSCRIPTION_ID_HERE"
resp, err := api.subscription.Unsubscribe(subscriptionId)

Get all sent notifications

var pagination = client.Pagination{
    Offset:   0,
    PageSize: 10,
}
var direction = subscription.DIRECTION_DESC
var filterFailed = false
resp, err := api.subscription.GetAllExecutedWebhooks(pagination, direction, filterFailed)

Get all existing monitoring subscriptions

var pagination = client.Pagination{
    Offset:   0,
    PageSize: 10,
}
var address = "0x8e12113ded05113d1a59bad8c37c295633ff6a97"
resp, err := api.subscription.GetAll(pagination, address)

๐Ÿ‘› Access Wallet Information

Through a single interface, obtain crucial wallet details such as balances, transaction history, and other pertinent information.

Documentation
Get all assets the wallet holds
Get all transactions on the wallet

Get all assets the wallet holds

var pagination = client.Pagination{
    Offset:   0,
    PageSize: 10,
}
var addresses = []string{"0x8e12113ded05113d1a59bad8c37c295633ff6a97"}
resp, err := api.address.GetBalance(pagination, addresses, constants.CHAIN_ETHEREUM_MAINNET)

Get all transactions on the wallet

var pagination = client.Pagination{
    Offset:   0,
    PageSize: 10,
}
var addresses = []string{"0x8e12113ded05113d1a59bad8c37c295633ff6a97"}
resp, err := api.address.GetTransactions(pagination, addresses, constants.CHAIN_ETHEREUM_MAINNET)

tatum-sdk's People

Contributors

amindotb avatar

Stargazers

Filip Kaลกtovskรฝ avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.