The Charged JS-SDK Public Release

Rob Secord
Charged Particles
Published in
5 min readAug 23, 2022

Integrating the Next-Level of Token Utility into your project has never been easier. Enhance your NFTs with the Charged Particles Protocol, using only Javascript.

We are very proud to announce the culmination of many hard working hours and much anticipation, our beta SDK release. As a protocol we can truly now begin to merge with the greater web3 ecosystem and realize our larger vision to provide decentralized tooling and additional functionality to NFTs.

With our SDK, devs can:

  • Interact with and read from the protocol in only a few lines of code
  • Deposit, withdraw, and timelock your NFTs programmatically
  • Integrate Charged Particles into your existing Dapp

What is the Charged Particles Beta release?

At Charged Particles, we provide next-level financial, creative, and technical tooling for your NFTs that allow them to be so much more than just static jpegs. We have worked extensively to make the JS-SDK as easy as possible for any existing web3 developers to start using it in order to integrate the protocol into their own projects.

SDK Here

https://github.com/Charged-Particles/charged-js-sdk

This is the initial release of our Javascript SDK which provides an easy way to interface with the Charged Particles Universe using Javascript and/or Typescript.

You can learn more about the Charged Particles Universe here.

Our JS-SDK makes it easy to access all of the features of the Solidity Contracts through a convenient and familiar Javascript interface. Want to Energize an NFT? No problem! Discharge it? Sure! Add Time-locks? Add other Nested NFTs? Release all assets? You got it! And there is so much more!

As the creator of an NFT project, you could toggle options that would allow anyone to Discharge any current interest within an NFT of your project, but disallow releasing any principal assets. An example use-case of this type of NFT could be a Geo-Cached NFT marker in the Physical World granting the finder access to any accrued interest in the NFT! As time goes on, more interest is accumulated in the NFT for the next person who finds it.

How about Time-locked Trust Fund NFTs for your kids which earn high-yield interest? They could be soul-bound and locked until the child is 18 or ready for college.

The Charged Particles Universe is a protocol designed to add endless possibilities to NFT projects by enabling the NFT itself to hold other assets. This could be enhanced so that NFTs change based on the items held within them! We always encourage our community to be creative and find new and exciting ways to use the Charged Particles Universe, and we hope that the JS-SDK allows more people to find fun ways to take advantage of the protocol.

Connecting to the Charged Particles Universe and interacting with the contracts is as easy as importing the library and instantiating a new object in Javascript or Typescript.

import Charged from '@charged-particles/charged-js-sdk';const charged = new Charged({providers: [window.ethereum]});

Once you have a Charged instance, you can interact with the protocol using your own NFTs.

const nft = charged.NFT(contractAddress, tokenId);// This energizes our NFT with 47 DAI tokens.
const tx = await nft.energize(
'aave.B',
daiContractAddress,
ethers.utils.parseEther('47')
);
// Get the energized mass
const massBN = await nft.getMass('aave.B', daiContractAddress);
// Discharges all of the interest accrued by the DAI tokens to my wallet.
const txReceipt2 = await nft.discharge(myAddress, 'aave.B', daiContractAddress);

The Charged SDK provides a simple interface for interacting with all of the features of the Charged Particles Protocol, including depositing, time-locking, and withdrawing tokens or NFTs from any NFT whose contract is in our allow-list.

You can see the full API for the beta SDK here: https://docs.charged.fi/sdk/charged-particles-sdk-overview

Charged Wallet Dapp

Our next stage in developing this SDK is applying it to a new and improved dapp of our own. In the very near future, we will be releasing our new NFT Wallet Dapp which will serve as a “window into your NFTs”. With growing support for your favorite NFT projects, you never know what might be hiding inside of them! We are constantly adding new NFT projects to our Universe and with our Charged Wallet you will be able to lift the veil of your NFTs and possibly reveal some goodies held within!

What’s in Your NFT?

We are also working hard on an open-source dapp boilerplate which will serve as a quick start for developers who wish to build their own dapps on top of the Charged Particles protocol.

Scaffold-Eth, we’re looking at you!

Links

SDK Documentation

Charged JS-SDK on Github

Hackathons

Next month, September 21st — 30th we will be hosting our own external hackathon utilizing this SDK. We are excited to see what new concepts and ideas will come to life. If you are interested in participating you can sign up here https://docs.google.com/forms/d/e/1FAIpQLSf0B7v9JbJxzkEpowBn-2-dB6O7gOph5fSohhmf8hHmmijdmA/viewform

About Charged Particles

Charged Particles is a protocol that allows users to deposit ERC-20, ERC-721, and ERC-1155 tokens into NFTs. A scarce NFT (e.g. Art, Collectible, Virtual Real Estate, In-Game Item, etc.) can now be transformed into a basket holding a number of other tokens. The Principal amount can be time-locked inside the NFT, and through integration with Aave’s aTokens, the programmable yield from these DeFi yield-generating assets is just a few clicks away.

Subscribe to our newsletter to get the most up-to-date DeFi news and
resources

Applications of Charged Particles:

DAO Capsules | ✅ Vesting Capsules | ✅ Escrow Capsules | ✅ NFT Trust Accounts | ✅ Gift Baskets | ✅ Improved NFT Index Funds | ✅ Financially Appreciating Artworks | ✅ Nested Bundles of Artworks | ✅ Redemption Tickets | ✅ Creative Crowd-funding Campaigns | ✅ Company Token Promos

Stay in touch with Charged Particles

Website | Docs | Telegram | Twitter | Instagram | Discord | LinkedIn | YouTube | Reddit | TikTok

--

--