Goerli relayer hasn't been funded for the last ~10 days which causes a transaction failure with the error message Insufficient funds
.
Environment
Openzeppelin Defender Relay (Goerli Testnet)
Details
Relay URL: https://defender.openzeppelin.com/#/relay/f1a68d1a-f6fd-4be1-9807-2ca8dbbfbd98
Funding txs: https://goerli.etherscan.io/txs?a=0x782fb2e566fa59838c48f8f0b90cc332163c1b37&f=3
API Response:
{
response: {
status: 400,
statusText: 'Bad Request',
data: {
message: 'Insufficient funds: 0.032 ETH required but 0.020260486945650748 ETH are available for usage on the account.'
}
},
message: 'Request failed with status code 400',
request: { path: '/txs', method: 'POST' }
}
Code to reproduce
import {
DefenderRelaySigner,
DefenderRelayProvider,
} from "defender-relay-client/lib/ethers";
const relayCredentials = {
apiKey: getenv.string("RELAY_API_KEY"),
apiSecret: getenv.string("RELAY_API_SECRET"),
};
const relayProvider = new DefenderRelayProvider(relayCredentials);
const relaySigner = new DefenderRelaySigner(relayCredentials, relayProvider, {
speed: "fastest",
});
const contract = new ethers.ContractFactory(
abi,
bytecode,
relaySigner
).attach(address);
const tx = await contract.function(params);