From 20989ea4ee658bb928a8c5ab6e8cc604bd092d01 Mon Sep 17 00:00:00 2001 From: Solana <138183918+btcoin23@users.noreply.github.com> Date: Fri, 20 Dec 2024 05:51:52 +0900 Subject: [PATCH] add default rpc --- config.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config.ts b/config.ts index e4eabe9..4601c8e 100644 --- a/config.ts +++ b/config.ts @@ -2,5 +2,6 @@ import { Connection } from '@solana/web3.js' import dotenv from 'dotenv' dotenv.config() -const RPC_URL = process.env.RPC_URL||'' +const RPC_URL = process.env.RPC_URL||'https://api.mainnet-beta.solana.com' +' export const connection = new Connection(RPC_URL)