Welcome to Tatum SDK - Golang Library for Simplifying Blockchain Development.
Documentation
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 |
To install TatumSDK, simply run the following command in your terminal or command prompt:
go get github.com/amindotb/tatum-sdk
Here's a brief overview of how to utilize TatumSDK with an v4 API key.
Start by importing the TatumSDK library and initializing Ethereum client as follows:
const apiKey = "YOU_API_KEY_HERE"
var api = NewAPI(client.WithAPIKey(apiKey))
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 |
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)
var subscriptionId = "SUBSCRIPTION_ID_HERE"
resp, err := api.subscription.Unsubscribe(subscriptionId)
var pagination = client.Pagination{
Offset: 0,
PageSize: 10,
}
var direction = subscription.DIRECTION_DESC
var filterFailed = false
resp, err := api.subscription.GetAllExecutedWebhooks(pagination, direction, filterFailed)
var pagination = client.Pagination{
Offset: 0,
PageSize: 10,
}
var address = "0x8e12113ded05113d1a59bad8c37c295633ff6a97"
resp, err := api.subscription.GetAll(pagination, address)
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 |
var pagination = client.Pagination{
Offset: 0,
PageSize: 10,
}
var addresses = []string{"0x8e12113ded05113d1a59bad8c37c295633ff6a97"}
resp, err := api.address.GetBalance(pagination, addresses, constants.CHAIN_ETHEREUM_MAINNET)
var pagination = client.Pagination{
Offset: 0,
PageSize: 10,
}
var addresses = []string{"0x8e12113ded05113d1a59bad8c37c295633ff6a97"}
resp, err := api.address.GetTransactions(pagination, addresses, constants.CHAIN_ETHEREUM_MAINNET)