Catalog npm
PACKAGE EXPLORERView in registry

@0xsaturn/sdk

npm

Typescript SDK for 0xSaturn.

Versions collected9
Direct dependencies22From release 0.3.6
Last observed21 Oct, 09:44 UTC

README

Current package documentation

0xSaturn Typescript SDK

The Typescript SDK for building your dApps with ease. ✨

🚀 Installation

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

✨ Usage

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.

💬 Get in touch

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!

👋 Show your support

Be sure to drop a 🌟 if you like the project!

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Versions 9

Collected releases
VersionPublishedDirect dependenciesOpen version
0.3.6Registry latest29 Apr 202222
0.3.525 Apr 202222
0.3.424 Apr 202222
0.3.322 Apr 202222
0.3.219 Apr 202222
0.3.111 Apr 202222
0.3.07 Apr 202222
0.2.015 Mar 202222
0.1.012 Feb 202216

Package advisories

0
No matching advisories collected

This describes our collected data; it is not a security assessment.

Repository

PENDING
0xsaturn/saturn-sdk-ts

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 21 Oct, 09:44 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package:f19a7b904624c704f2101953d9760ab453dba53fdb57cd173de648baf2538825