Scaffolding for a dapp built on Solana
- Install Rust from https://rustup.rs/
- Install Solana v1.5.0 or later from https://docs.solana.com/cli/install-solana-cli-tools#use-solanas-install-tool
- Install Node
- Install NPM
- Run
npm install
$ cargo build-bpf
$ cargo test-bpf
npm start
Solana program template in Rust by @mvines
Setup here actions that will interact with Solana programs using sendTransaction function
React context objects that are used propagate state of accounts across the application
Generic react hooks to interact with token program:
- useUserBalance - query for balance of any user token by mint, returns:
- balance
- balanceLamports
- balanceInUSD
- useAccountByMint
- useTokenName
- useUserAccounts
- home -
- faucet - airdrops SOL on Testnet and Devnet