Hey there, I am creating a deployment script that uses the Defender Relay. The idea is to use the relay to pay for all the transactions, but I am currently getting the following error:
Error: Returned error: {"id":960,"jsonrpc":"2.0","result":null,"error":"Throughput exceeds the current capacity of your table or index. DynamoDB is automatically scaling your table or index so please try again shortly. If exceptions persist, check if you have a hot key: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/bp-partition-key-design.html"}
Environment
- defender-relay-client: 1.12.1
- truffle: 5.4.29
- network: rinkeby
Details
The deployment script is triggered using Truffle Migrations. It starts fine, deploys some contracts and suddenly returns that error. Apparently it is being throttled by the AWS.
The idea is to automate the deployment of several contracts (+40) and use the Defender Relayer to pay for these transactions.
In addition to that, the Relay is instantiated as a web3 provider in the truffle-config.js:
const provider = new DefenderRelayProvider(
{
apiKey: process.env.DEFENDER_API_KEY,
apiSecret: process.env.DEFENDER_API_SECRET,
},
{
speed: "fast",
}
);
Any ideas?
Thank you!