Skip to content

Crypto400600/solana_token_2022

Repository files navigation

To Get Started

Usage

  1. npm install or yarn
  2. Write code in index.js
  3. npm run start

Helpers

  1. initializeKeypair:
    1. takes a connection obj
    2. takes optional filePath, if you provide the keypair file path like ~/.config/solana/id.json which is the default keypair for Solana CLI it will take the keypair from there and consider them as payer
    3. if not it will generate a new keypair and store them in the .env to use them in the future with any other transaction
    4. it will airdrop SOL for the payer account if need
  2. uploadOffChainMetadata:
    1. take metadata inputs like name, symbol, description, and image
    2. uploads them to an off-chain storage provide
    3. return a URI that points to that metadata JSON

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published