Giter Site home page Giter Site logo

klimenkosergei / sol-rayz Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nfteyez/sol-rayz

0.0 0.0 0.0 2.79 MB

๐Ÿ’ซ Package to simplify parsing NFTs on Solana and build NFT galleries

License: MIT License

JavaScript 0.61% TypeScript 92.56% HTML 4.93% CSS 1.90%

sol-rayz's Introduction

@nfteyez/sol-rayz

These packages created to simplify the process of parsing NFTs on Solana.

It consists of:

  • @nfteyez/sol-rayz - package basic things like fetch all NFTs for specific wallet. Designed to be used in browser or Node.JS env.
  • @nfteyez/sol-rayz-react - bunch of hooks and utils to be used within React app.

Install

You need install @solana/web3.js in your project, since it is used as peer dependency.

npm i @solana/web3.js
npm i @nfteyez/sol-rayz

or if you want to use code with React

npm i @solana/web3.js
npm i @nfteyez/sol-rayz-react

How to use

getParsedNftAccountsByOwner - return parsed list of NFTs (SPL Tokens) for given wallet public address. Each item in array have all data specified on the blockchain. The NFT metadata stored separately, you need to pick uri property for each token and fetch data youself.

import {
  getParsedNftAccountsByOwner
} from "@nfteyez/sol-rayz";

const tokenList = getParsedNftAccountsByOwner();

createConnectionConfig - method for creating a "connection" with Solana, have two params: clusterApi and commitment.

getParsedNftAccountsByOwner - method to get array of parsed NFTs by owner address. Have three params: wallet address(required), connection , serialization (true/false).

isValidSolanaAddress - check if provided string is valid Solana address.

TBD

TODO list:

  • Create descriptive README
  • Add React Hooks

Development

Instructions for starting project for the contributors. Clone repo, run in root of the project:

yarn
yarn run build

Add New new dependency to some package

Here is example how to add new dependency module @solana/spl-name-service to @nfteyez/sol-rayz package:

 lerna add @solana/spl-name-service --scope=@nfteyez/sol-rayz

sol-rayz's People

Contributors

jamland avatar veritasv 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.