Skip to content

Commit

Permalink
Use node API via API Gateway
Browse files Browse the repository at this point in the history
  • Loading branch information
banool committed Feb 26, 2024
1 parent 1a148ef commit 8c52362
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/api/hooks/useGraphqlClient.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ function getIsGraphqlClientSupportedFor(networkName: NetworkName): boolean {
export function getGraphqlURI(networkName: NetworkName): string | undefined {
switch (networkName) {
case "mainnet":
return "https://indexer.mainnet.aptoslabs.com/v1/graphql";
return "https://api.mainnet.aptoslabs.com/v1/graphql";
case "testnet":
return "https://indexer-testnet.staging.gcp.aptosdev.com/v1/graphql";
return "https://api.testnet.aptoslabs.com/v1/graphql";
case "devnet":
return "https://indexer-devnet.staging.gcp.aptosdev.com/v1/graphql";
return "https://api.devnet.aptoslabs.com/v1/graphql";
case "local":
return "http://127.0.0.1:8090/v1/graphql";
case "randomnet":
Expand Down

0 comments on commit 8c52362

Please sign in to comment.