Observed since 21 Oct, 09:44 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Typescript SDK for 0xSaturn.
The Typescript SDK for building your dApps with ease. ✨
Ensure that you have Node.js installed locally, to install the Typescript SDK (PS: It works for both Typescript and JavaScript!).
npm install @0xsaturn/sdk
# OR
yarn add @0xsaturn/sdk
Quickly get started by initializing the SDK.
import { ethers } from 'ethers';
import { SaturnClient } from '@0xsaturn/sdk';
// Create the wallet which has the Signer and Provider.
const wallet = new ethers.Wallet(
'<WALLET_PRIVATE_KEY>',
ethers.getDefaultProvider('https://polygon-rpc.com')
);
// Initialize the client with the signer.
// You can directly use the RPC URL instead of wallet, which gives you read-only access.
const client = new SaturnClient(wallet);
Perfect. Now, deploy your first contract (The cool kids call it "module")!
const address = await client.deployNFTModule({
name: 'My NFT Module',
symbol: 'MYNFT'
});
console.log('✨ Deployed NFT module at:', address);
Keep a note of the address, where the contract is deployed! Let's use it to interact with the contract.
import fs from 'fs';
// Initialize the NFT Module.
const module = await client.getNFTModule('<DEPLOYED_NFT_MODULE_ADDRESS>');
// Mint a NFT.
const { transactionHash } = await module.mint({
name: 'My NFT!',
description: 'This is my NFT, minted using 0xSaturn!',
image: fs.readFileSync('my-nft-image.png')
});
console.log('Minted NFT with transaction hash:', transactionHash);
This should mint your NFT! You can verify using the transaction hash on the respective scan website for the chain used.
Have various suggestions, questions, or any comments? Or, just want to discuss with our community?
Check out our Github Discussions or reach out to us on twitter!
Be sure to drop a 🌟 if you like the project!
Download counts and popularity will appear here as the collector receives them.
This describes our collected data; it is not a security assessment.
Observed since 21 Oct, 09:44 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:f19a7b904624c704f2101953d9760ab453dba53fdb57cd173de648baf2538825