Skip to content

Commit

Permalink
gui: fix tx prc
Browse files Browse the repository at this point in the history
  • Loading branch information
yurushao committed Jan 23, 2025
1 parent 56a529e commit 2b6851a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions anchor/src/client/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,9 +264,10 @@ export class BaseClient {
signerOverride?: Keypair,
): Promise<TransactionSignature> {
// Use dedicated connection for sending transactions if available
const { NEXT_PUBLIC_TX_RPC, TX_RPC } = process.env;
const txConnection = new Connection(
NEXT_PUBLIC_TX_RPC || TX_RPC || this.provider.connection.rpcEndpoint,
process.env?.NEXT_PUBLIC_TX_RPC ||
process.env.TX_RPC ||
this.provider.connection.rpcEndpoint,
{
commitment: "confirmed",
},
Expand Down
2 changes: 1 addition & 1 deletion playground/.env.local.example
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
NEXT_PUBLIC_SOLANA_RPC=https://api.mainnet-beta.solana.com
NEXT_PUBLIC_GLAM_API=https://api.glam.systems
NEXT_PUBLIC_TX_RPC=https://staked.helius-rpc.com/?api-key=
NEXT_PUBLIC_ENABLED_ROUTES=/,/flows,/holdings,/trade,/settings
NEXT_PUBLIC_HELIUS_API_KEY=helius_api_key

0 comments on commit 2b6851a

Please sign in to comment.