Skip to content

Commit

Permalink
Revert "solana rpc"
Browse files Browse the repository at this point in the history
This reverts commit 128bbd6.
  • Loading branch information
vrtnd committed Jul 28, 2024
1 parent bb991ef commit ebab853
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/helpers/solana.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { Connection } from "@solana/web3.js";

export const getConnection = (): Connection => {
const rpc =
process.env["SOLANA_RPC"] ?? "https://mainnet.helius-rpc.com/?api-key=c73a1568-f94a-4f7f-a903-65e632a66266";
const rpc = process.env["SOLANA_RPC"] ?? "https://api.mainnet-beta.solana.com";
const connection = new Connection(rpc);
const getBlock = async (block: number) => {
return new Connection(rpc).getBlock(block, {
Expand Down

0 comments on commit ebab853

Please sign in to comment.