Skip to content

Commit

Permalink
add default rpc
Browse files Browse the repository at this point in the history
  • Loading branch information
btcoin23 committed Dec 19, 2024
1 parent 34422ba commit 20989ea
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 20989ea

Please sign in to comment.