Code Monkey home page Code Monkey logo

workshop-nyc-basics's Introduction

Solana Basics

Quick links to learn more

Tech stack of this repo

  • uses TypeScript and NodeJS
  • yarn (as the package manager)

Setup locally

  1. Clone this repo to your local system
  2. Install the packages via yarn install
  3. Copy rename the example.env file to be named .env
  4. Update the RPC_URL variable to be the cluster URL of a supporting RPC provider

If you have the Solana CLI installed locally: update the LOCAL_PAYER_JSON_ABSPATH environment variable to be the absolute path of your local testing wallet keypair JSON file.

Recommended flow to explore this repo

After setting up locally, I recommend exploring the code of the following files (in order):

After reviewing the code in each of these scripts, try running each in order.

Note: Running each of these scripts may save some various bits of data to a .local_keys folder within this repo for use by the other scripts later in this ordered list. Therefore, running them in a different order may result in them not working as written/desired. You have been warned :)

Running the included Scripts

Once setup locally, you will be able to run the scripts included within this repo:

yarn demo ./scripts/<script>

1.simpleTransaction.ts

A brief introduction to the Solana web3.js package. Demonstrating how to build and send simple transactions to the blockchain

2.complexTransaction.ts

An introduction to more complex transactions using Solana web3.js Demonstrates how to build a more complex transaction, with multiple instructions.

3.createTokenWithMetadata.ts

Demonstrates how to create a SPL token and store it's metadata on chain (using the Metaplex MetaData program)

4.mintTokens.ts

Demonstrates how to create new SPL tokens (aka "minting tokens") into an existing SPL Token Mint

5.updateMetadata.ts

Demonstrates how to update the metadata for an SPL token, using the Metaplex MetadataProgram

6.createNFTs.ts

Demonstrates how to mint NFTs and store their metadata on chain using the Metaplex MetadataProgram

workshop-nyc-basics's People

Contributors

nickfrosty avatar saberistic avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.