feat: Add fallback to direct RPC when Blink transaction broadcast fails (#3051)

This commit is contained in:
David Adegoke
2026-03-13 02:04:32 +01:00
committed by GitHub
parent 4d26b4ee6b
commit 6112d1cf02
+3
View File
@@ -473,6 +473,9 @@ class EVMChainClient {
final blinkClient = Web3Client(_blinkUrl(secrets.blinkApiKey), client);
try {
return await blinkClient.sendRawTransaction(prepared);
} catch (e) {
printV('Blink failed, retrying without Blink: $e');
return await _client!.sendRawTransaction(prepared);
} finally {
await blinkClient.dispose();
}