Skip to content

Solana Saga token-gating tutorial for mobile development, adapted from @solana-mobile/solana-mobile-dapp-scaffold.

Notifications You must be signed in to change notification settings

helius-labs/saga-token-gating-tutorial

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Solana Saga token-gating tutorial for mobile development, adapted from @solana-mobile/solana-mobile-dapp-scaffold.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published