buffalojoec / graphql-wallet

Solana wallet built using Solana RPC-GraphQL
1 stars 2 forks source link

graphql-icon GraphQL Wallet

With the new Web3.js 2.0 comes a brand-new client-side GraphQL resolver for the Solana JSON RPC.

@solana/rpc-graphql

This GraphQL library:

Provided here for demonstration is a web application - a basic, read-only wallet and block explorer - that aims to showcase the GraphQL library's capabilities.

Running the Demo

Requirements:

Install the application's dependencies.

pnpm install

In a separate terminal, start a local test validator. Note the provided pnpm command will start the local validator with all of the necessary account fixtures and the BPF program.

pnpm run test-validator

Run the script to generate a bunch of transactions. LOCAL_VALIDATOR_RPC_ENDPOINT will default to http://127.0.0.1:8899 if not provided.

pnpm run generate-transactions <LOCAL_VALIDATOR_RPC_ENDPOINT>

Launch the application. Note you can define an RPC_ENDPOINT variable in a .env file in the root of the repository if you wish to use a custom endpoint. This value will default to http://127.0.0.1:8899 if not provided.

pnpm start