Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Alchemy Devnet RPC Endpoint #68

Merged
merged 3 commits into from
Oct 25, 2022
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
6 changes: 6 additions & 0 deletions client/src/constants/connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export enum NetworkName {
MAINNET_BETA_GENESYSGO = "mainnet-beta-genesysgo",
MAINNET_BETA_SERUM = "mainnet-beta-serum",
CUSTOM = "custom",
DEVNET_ALCHEMY = "devnet-alchemy",
}

export enum Endpoint {
Expand All @@ -19,6 +20,7 @@ export enum Endpoint {
MAINNET_BETA = "https://api.mainnet-beta.solana.com",
MAINNET_BETA_GENESYSGO = "https://ssc-dao.genesysgo.net",
MAINNET_BETA_SERUM = "https://solana-api.projectserum.com",
DEVNET_ALCHEMY = "https://solana-devnet.g.alchemy.com/v2/demo",
}

interface Network {
Expand Down Expand Up @@ -55,6 +57,10 @@ export const NETWORKS: Network[] = [
name: NetworkName.MAINNET_BETA_SERUM,
endpoint: Endpoint.MAINNET_BETA_SERUM,
},
{
name: NetworkName.DEVNET_ALCHEMY,
endpoint: Endpoint.DEVNET_ALCHEMY,
},
];

export const COMMITMENT_LEVELS: Commitment[] = [
Expand Down