🥳
Tatum Developer Documentation
We just released the new Tatum SDK which will make your web3 development flow super fun & you can read more about it here in docs. Looking for our 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 💰
To get started with Tatum SDK, simply run the following command based on the language of your choice:
TypeScript / JavaScript SDK
1
npm 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}`)
7
})()
1
const { TatumSDK, Ethereum, Network } = require('@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}`);
7
})();
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 1mo ago