Skip to content

Commit

Permalink
fix: proper setup solana connection
Browse files Browse the repository at this point in the history
  • Loading branch information
mindrunner committed Mar 21, 2024
1 parent 4c634ba commit ba7e077
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/service/sol/const/connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@ import { Connection } from '@solana/web3.js'

import { config } from '../../../config'

export const connection = new Connection(config.sol.rpcEndpoint, { wsEndpoint: config.sol.wsEndpoint })
export const connection = new Connection(config.sol.rpcEndpoint, {
wsEndpoint: config.sol.wsEndpoint,
commitment: 'confirmed',
confirmTransactionInitialTimeout: 30000
})

0 comments on commit ba7e077

Please sign in to comment.