🥳
Tatum Documentation
We released the new Tatum SDK which will make your web3 development flow super fun. Looking for old documentation? Click Here
Tatum SDK is here to make your life easier when building blockchain applications! No more complicated setups, no need for previous blockchain experience. We've got you covered.
- 1.Super fast development: Start building blockchain applications in no time.
- 2.No previous blockchain experience required: Perfect for beginners and experts alike.
- 3.One line of code: Perform complex tasks with minimal effort.
- Monitor activity on a blockchain address 🕵️♂️
- Perform RPC calls to various blockchains 📞
- Read information about NFTs such as balances, transactions, or ownerships 🖼️
- Get information about a specific wallet like balances or transaction history 💰
Don’t have an API key? Unlock all networks, features and monitor error logs & usage. Create API key for FREE🔑
Install the Tatum SDK in your terminal to easily integrate blockchain features into your project:
npm
yarn
pnpm
bun
npm install @tatumio/tatum
yarn add @tatumio/tatum
pnpm install @tatumio/tatum
bun install @tatumio/tatum
Here are some quick examples to show you how easy it is to use Tatum SDK:
TypeScript
JavaScript
1
import { TatumSDK, Ethereum, Network } from '@tatumio/tatum'
2
3
(async () => {
4
const tatum = await TatumSDK.init<Ethereum>({network: Network.ETHEREUM})
5
const latestBlock = await tatum.rpc.blockNumber()
6
console.log(`Latest block is ${latestBlock.result}`)
7
tatum.destroy();
8
})()
1
const { TatumSDK, Network } = require('@tatumio/tatum');
2
3
(async () => {
4
const tatum = await TatumSDK.init({ network: Network.ETHEREUM });
5
const latestBlock = await tatum.rpc.blockNumber();
6
console.log(`Latest block is ${latestBlock.result}`)
7
tatum.destroy();
8
})();
TypeScript
JavaScript
curl
1
import { TatumSDK, Ethereum, Network } from '@tatumio/tatum'
2
3
(async () => {
4
const tatum = await TatumSDK.init<Ethereum>({network: Network.ETHEREUM})
5
const monitoredAddress = '0xF64E82131BE01618487Da5142fc9d289cbb60E9d'
6
const subscription = await tatum.notification.subscribe.incomingNativeTx({
7
address: monitoredAddress,
8
url: 'https://<YOUR_WEBHOOK_URL>' // replace with your handler URL
9
})
10
console.log(`Now you are subscribed for all incoming ETH transactions on ${monitoredAddress}`)
11
})()
1
const { TatumSDK, Ethereum, Network } = require('@tatumio/tatum');
2
3
(async () => {
4
const tatum = await TatumSDK.init<Ethereum>({network: Network.ETHEREUM});
5
const monitoredAddress = '0xF64E82131BE01618487Da5142fc9d289cbb60E9d';
6
const subscription = await tatum.notification.subscribe.incomingNativeTx({
7
address: monitoredAddress,
8
url: 'https://<YOUR_WEBHOOK_URL>' // replace with your handler URL
9
});
10
console.log(`Now you are subscribed for all incoming ETH transactions on ${monitoredAddress}`);
11
})();
1
curl -i -X POST \
2
https://api.tatum.io/v4/subscription?type=mainnet \
3
-H 'Content-Type: application/json' \
4
-d '{
5
"type": "INCOMING_NATIVE_TX",
6
"attr": {
7
"address": "0xF64E82131BE01618487Da5142fc9d289cbb60E9d",
8
"chain": "ETH",
9
"url": "https://<YOUR_WEBHOOK_URL>"
10
}
11
}'
Ready to build fantastic blockchain applications? Check out the official documentation for more information and examples!
Happy coding! 🎉
Last modified 2mo ago