Skip to content

Commit ee90744

Browse files
committed
Default solana rpc
1 parent d1a5d54 commit ee90744

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/helpers/solana.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Connection } from "@solana/web3.js";
22

33
export const getConnection = (): Connection => {
4-
const rpc = process.env.SOLANA_RPC as string;
4+
const rpc = process.env.SOLANA_RPC || "https://api.mainnet-beta.solana.com";
55
const connection = new Connection(rpc);
66
const getBlock = async (block: number) => {
77
return new Connection(rpc).getBlock(block, {

0 commit comments

Comments
 (0)