mirror of
https://github.com/Such-Software/hash-wallet.git
synced 2026-10-17 05:41:29 +02:00
feat: Add fallback to direct RPC when Blink transaction broadcast fails (#3051)
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user