This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import {generateWallet} from '@tatumio/tatum-solana' | |
const wallet = await generateWallet() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl --location --request POST 'https://api-eu1.tatum.io/v3/nft/mint/' \ | |
--header 'x-api-key: REPLACE_KEY_VALUE' \ | |
--header 'Content-Type: application/json' \ | |
--data-raw '{ | |
"from": "FykfMwA9WNShzPJbbb9DNXsfgDgS3XZzWiFgrVXfWoPJ", | |
"chain": "SOL", | |
"fromPrivateKey": "3abc79a31093e4cfa4a724e94a44906cbbc3a32e2f75f985a28616676a5dbaf1de8d82a7e1d0561bb0e1b729c7a9b9b1708cf2803ad0ca928a332587ace391ad", | |
"to": "FykfMwA9WNShzPJbbb9DNXsfgDgS3XZzWiFgrVXfWoPJ", | |
"metadata": { | |
"name": "Tatum API", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { mintNft, SolanaNftMetadata } from '@tatumio/tatum-solana' | |
console.log( | |
await mintNft( | |
{ | |
from: 'FykfMwA9WNShzPJbbb9DNXsfgDgS3XZzWiFgrVXfWoPJ', | |
fromPrivateKey: | |
'3abc79a31093e4cfa4a724e94a44906cbbc3a32e2f75f985a28616676a5dbaf1de8d82a7e1d0561bb0e1b729c7a9b9b1708cf2803ad0ca928a332587ace391ad', | |
to: 'FykfMwA9WNShzPJbbb9DNXsfgDgS3XZzWiFgrVXfWoPJ', | |
metadata: new SolanaNftMetadata('Tatum', 'TTM', 'https://tatum.io/images/logo/logo.svg', 0), |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl --request GET \ | |
--url https://api-eu1.tatum.io/v3/nft/address/balance/{chain}/{address} \ | |
--header 'x-api-key: REPLACE_KEY_VALUE' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fcn = async () => { | |
const TESTNET = true; | |
const wallet: any = await generateWallet(Currency.MATIC, TESTNET) | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { generateWallet, generateAddressFromXPub, generatePrivateKeyFromMnemonic, Currency } from "@tatumio/tatum" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl --request GET \ | |
--url https://api-eu1.tatum.io/v3/algorand/block/current \ | |
--header 'x-api-key: REPLACE_KEY_VALUE' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl --request GET \ | |
--url https://api-eu1.tatum.io/v3/algorand/account/balance/{address} \ | |
--header 'x-api-key: REPLACE_KEY_VALUE' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl --request GET \ | |
--url 'https://api-eu1.tatum.io/v3/algorand/transactions/{from}/{to}?limit=5&next=ywAAAAAAAAAAAAAA' \ | |
--header 'x-api-key: REPLACE_KEY_VALUE' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl --request GET \ | |
--url https://api-eu1.tatum.io/v3/algorand/transaction/{txid} \ | |
--header 'x-api-key: REPLACE_KEY_VALUE' |