PoC of usage of compressed nfts along with solana pay
NOTE: this project uses amman for testing, so make sure you've solana development tool suite installed on your system
-
change your configured RPC on solana CLI to mainnet. replace
<mainnet-rpc-url>
with any mainnet RPC URL of your choice, preferably heliussolana config set --url <mainnet-rpc-url>
-
run
setup.sh
file to download all the required solana programs files for local testingchmod +x ./setup.sh ./setup.sh
-
install all the required node dependencies using pnpm
pnpm install
-
start solana local validator, along with amman relay
pnpm validator
-
create a merkle tree account and collection mint account via running the following command
pnpm build && node dist/index.js
-
copy the addresses of merkle tree and collection mint accounts and put them into
.env
along withRPC_URL
andPRIVATE_KEY
(private key of wallet which would be used for paying gas fees for creation of merkle tree and collection mint accounts) -
all the variables are now ready, start the server in development mode by running the following two commands in two different terminal windows
tsup --watch
pnpm dev