Giter Club home page Giter Club logo

saga-token-gating-tutorial's Introduction

Saga Token-gated Mobile DApp

This demo is adapted from Solana Mobile DApp Scaffold for the tutorial Token-gating Saga Genesis Token. This demo is a mobile dApp development tutorial using Helius DAS API and React Native to token-gate a collection. Follow the tutorial on the Helius Blog.

Getting Started

Environment Set Up

Install v20.9.0 NodeJS to use yarn.

Install the Android SDK tool and set the ANDROID_HOME variable.

Configure a Saga/Android for mobile development: In settings, tap the Build Number option 7 times until the โ€˜You are now a developer!โ€™ pop-up is visible. Search and enable Developer Options and enable USB Debugging in the same dropdown.

Install and Run

Open the repository in a code editor and bring up a terminal.

cd app/

Install the app in the app directory.

yarn

Make sure your phone is connected with USBC, debugging is turned on, and run the following command.

yarn react-native run-android

Set-up Token-gating with DAS API

To set up token-gating with the DAS API, head to util/findSagaGenesisToken.ts and populate your Helius API key. Heads up, the request will not work without an API key, get one for free here.

saga-token-gating-tutorial's People

Contributors

eliascm17 avatar michaelsulistio avatar solanagirl avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

austin109567

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.