diff --git a/explorer/src/providers/accounts/index.tsx b/explorer/src/providers/accounts/index.tsx index ce8bd56bd9..8b14e470ff 100644 --- a/explorer/src/providers/accounts/index.tsx +++ b/explorer/src/providers/accounts/index.tsx @@ -130,7 +130,7 @@ async function fetchAccountInfo( let data; let fetchStatus; try { - const connection = new Connection(url, "single"); + const connection = new Connection(url, "confirmed"); const result = (await connection.getParsedAccountInfo(pubkey)).value; let lamports, details; diff --git a/explorer/src/providers/accounts/tokens.tsx b/explorer/src/providers/accounts/tokens.tsx index 2c07252eb1..0dea0973f6 100644 --- a/explorer/src/providers/accounts/tokens.tsx +++ b/explorer/src/providers/accounts/tokens.tsx @@ -63,7 +63,7 @@ async function fetchAccountTokens( try { const { value } = await new Connection( url, - "recent" + "processed" ).getParsedTokenAccountsByOwner(pubkey, { programId: TOKEN_PROGRAM_ID }); data = { tokens: value.map((accountInfo) => { diff --git a/explorer/src/providers/block.tsx b/explorer/src/providers/block.tsx index 3890786dcd..e25dd455de 100644 --- a/explorer/src/providers/block.tsx +++ b/explorer/src/providers/block.tsx @@ -71,7 +71,7 @@ export async function fetchBlock( let data: Block | undefined = undefined; try { - const connection = new Connection(url, "max"); + const connection = new Connection(url, "finalized"); data = { block: await connection.getConfirmedBlock(Number(key)) }; status = FetchStatus.Fetched; } catch (err) { diff --git a/explorer/src/providers/mints/largest.tsx b/explorer/src/providers/mints/largest.tsx index 11ef7ffe5c..2c2c6828ec 100644 --- a/explorer/src/providers/mints/largest.tsx +++ b/explorer/src/providers/mints/largest.tsx @@ -67,7 +67,7 @@ async function fetchLargestAccounts( try { data = { largest: ( - await new Connection(url, "single").getTokenLargestAccounts(pubkey) + await new Connection(url, "confirmed").getTokenLargestAccounts(pubkey) ).value, }; @@ -76,7 +76,7 @@ async function fetchLargestAccounts( async (account): Promise => { try { const accountInfo = ( - await new Connection(url, "single").getParsedAccountInfo( + await new Connection(url, "confirmed").getParsedAccountInfo( account.address ) ).value; diff --git a/explorer/src/providers/richList.tsx b/explorer/src/providers/richList.tsx index 8293d25884..4a7b069613 100644 --- a/explorer/src/providers/richList.tsx +++ b/explorer/src/providers/richList.tsx @@ -55,7 +55,7 @@ async function fetch(dispatch: Dispatch, cluster: Cluster, url: string) { dispatch(Status.Connecting); try { - const connection = new Connection(url, "max"); + const connection = new Connection(url, "finalized"); const [total, circulating, nonCirculating] = ( await Promise.all([ diff --git a/explorer/src/providers/supply.tsx b/explorer/src/providers/supply.tsx index 36e7361d89..d07198e507 100644 --- a/explorer/src/providers/supply.tsx +++ b/explorer/src/providers/supply.tsx @@ -43,7 +43,7 @@ async function fetch(dispatch: Dispatch, cluster: Cluster, url: string) { dispatch(Status.Connecting); try { - const connection = new Connection(url, "max"); + const connection = new Connection(url, "finalized"); const supply = (await connection.getSupply()).value; // Update state if still connecting