diff --git a/dist/esm/index.js b/dist/esm/index.js index e80e382..50a5907 100644 --- a/dist/esm/index.js +++ b/dist/esm/index.js @@ -329,7 +329,7 @@ class StaticJsonRpcSequentialProvider extends Connection { method: 'POST', body: JSON.stringify(batch), headers: { 'Content-Type': 'application/json' }, - signal: AbortSignal.timeout(10000) // 10-second timeout + signal: AbortSignal.timeout(60000) // 60-second timeout } ).then((response)=>{ if(response.ok) { @@ -989,7 +989,7 @@ var requestSolana = async ({ blockchain, address, api, method, params, block, ti }) }); - const timeoutPromise = new Promise((_, reject)=>setTimeout(()=>{ reject(new Error("Web3ClientTimeout")); }, timeout || 10000)); + const timeoutPromise = new Promise((_, reject)=>setTimeout(()=>{ reject(new Error("Web3ClientTimeout")); }, timeout || 60000)); // 60s default timeout allRequestsFailed = Promise.all(allRequestsFailed.map((request)=>{ return new Promise((resolve)=>{ request.catch(resolve); }) diff --git a/dist/esm/index.solana.js b/dist/esm/index.solana.js index 7a4d2c4..ff2bc4d 100644 --- a/dist/esm/index.solana.js +++ b/dist/esm/index.solana.js @@ -71,7 +71,7 @@ class StaticJsonRpcSequentialProvider extends Connection { method: 'POST', body: JSON.stringify(batch), headers: { 'Content-Type': 'application/json' }, - signal: AbortSignal.timeout(10000) // 10-second timeout + signal: AbortSignal.timeout(60000) // 60-second timeout } ).then((response)=>{ if(response.ok) { @@ -618,7 +618,7 @@ var requestSolana = async ({ blockchain, address, api, method, params, block, ti }) }); - const timeoutPromise = new Promise((_, reject)=>setTimeout(()=>{ reject(new Error("Web3ClientTimeout")); }, timeout || 10000)); + const timeoutPromise = new Promise((_, reject)=>setTimeout(()=>{ reject(new Error("Web3ClientTimeout")); }, timeout || 60000)); // 60s default timeout allRequestsFailed = Promise.all(allRequestsFailed.map((request)=>{ return new Promise((resolve)=>{ request.catch(resolve); }) diff --git a/dist/umd/index.js b/dist/umd/index.js index 40f854a..12ebd36 100644 --- a/dist/umd/index.js +++ b/dist/umd/index.js @@ -335,7 +335,7 @@ method: 'POST', body: JSON.stringify(batch), headers: { 'Content-Type': 'application/json' }, - signal: AbortSignal.timeout(10000) // 10-second timeout + signal: AbortSignal.timeout(60000) // 60-second timeout } ).then((response)=>{ if(response.ok) { @@ -995,7 +995,7 @@ }) }); - const timeoutPromise = new Promise((_, reject)=>setTimeout(()=>{ reject(new Error("Web3ClientTimeout")); }, timeout || 10000)); + const timeoutPromise = new Promise((_, reject)=>setTimeout(()=>{ reject(new Error("Web3ClientTimeout")); }, timeout || 60000)); // 60s default timeout allRequestsFailed = Promise.all(allRequestsFailed.map((request)=>{ return new Promise((resolve)=>{ request.catch(resolve); }) diff --git a/dist/umd/index.solana.js b/dist/umd/index.solana.js index 9bc155e..7589ad3 100644 --- a/dist/umd/index.solana.js +++ b/dist/umd/index.solana.js @@ -77,7 +77,7 @@ method: 'POST', body: JSON.stringify(batch), headers: { 'Content-Type': 'application/json' }, - signal: AbortSignal.timeout(10000) // 10-second timeout + signal: AbortSignal.timeout(60000) // 60-second timeout } ).then((response)=>{ if(response.ok) { @@ -624,7 +624,7 @@ }) }); - const timeoutPromise = new Promise((_, reject)=>setTimeout(()=>{ reject(new Error("Web3ClientTimeout")); }, timeout || 10000)); + const timeoutPromise = new Promise((_, reject)=>setTimeout(()=>{ reject(new Error("Web3ClientTimeout")); }, timeout || 60000)); // 60s default timeout allRequestsFailed = Promise.all(allRequestsFailed.map((request)=>{ return new Promise((resolve)=>{ request.catch(resolve); }) diff --git a/package.evm.json b/package.evm.json index e37fae4..49a5ec6 100644 --- a/package.evm.json +++ b/package.evm.json @@ -1,7 +1,7 @@ { "name": "@depay/web3-client-evm", "moduleName": "Web3Client", - "version": "10.19.2", + "version": "10.19.3", "description": "A web3 client to fetch blockchain data just like you are used to with HTTP clients.", "main": "dist/umd/index.evm.js", "module": "dist/esm/index.evm.js", diff --git a/package.json b/package.json index f82e879..f9ff14b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@depay/web3-client", "moduleName": "Web3Client", - "version": "10.19.2", + "version": "10.19.3", "description": "A web3 client to fetch blockchain data just like you are used to with HTTP clients.", "main": "dist/umd/index.js", "module": "dist/esm/index.js", diff --git a/package.solana.json b/package.solana.json index 92becb4..160a264 100644 --- a/package.solana.json +++ b/package.solana.json @@ -1,7 +1,7 @@ { "name": "@depay/web3-client-solana", "moduleName": "Web3Client", - "version": "10.19.2", + "version": "10.19.3", "description": "A web3 client to fetch blockchain data just like you are used to with HTTP clients.", "main": "dist/umd/index.solana.js", "module": "dist/esm/index.solana.js", diff --git a/src/clients/solana/provider.js b/src/clients/solana/provider.js index 38128dc..8a1d608 100644 --- a/src/clients/solana/provider.js +++ b/src/clients/solana/provider.js @@ -45,7 +45,7 @@ class StaticJsonRpcSequentialProvider extends Connection { method: 'POST', body: JSON.stringify(batch), headers: { 'Content-Type': 'application/json' }, - signal: AbortSignal.timeout(10000) // 10-second timeout + signal: AbortSignal.timeout(60000) // 60-second timeout } ).then((response)=>{ if(response.ok) { diff --git a/src/platforms/solana/request.js b/src/platforms/solana/request.js index b42d35b..b82b017 100644 --- a/src/platforms/solana/request.js +++ b/src/platforms/solana/request.js @@ -71,7 +71,7 @@ export default async ({ blockchain, address, api, method, params, block, timeout }) }) - const timeoutPromise = new Promise((_, reject)=>setTimeout(()=>{ reject(new Error("Web3ClientTimeout")) }, timeout || 10000)) + const timeoutPromise = new Promise((_, reject)=>setTimeout(()=>{ reject(new Error("Web3ClientTimeout")) }, timeout || 60000)) // 60s default timeout allRequestsFailed = Promise.all(allRequestsFailed.map((request)=>{ return new Promise((resolve)=>{ request.catch(resolve) })