EOSIO / eos

An open source smart contract platform
https://developers.eos.io/manuals/eos
MIT License
11.27k stars 3.6k forks source link

I want to perform 2000 transactions but when i am looping trough the eosjs code it throws an error #5594

Closed yashvadhvani closed 6 years ago

yashvadhvani commented 6 years ago

The error name is expired_tx_exception and the code for the same is 3040005 please tell me how can I perform these much transactions per seconds. I am able to perform 250 transactions per seconds but after that, it is throwing this error.

The code is as follows:

     for (let i = 0; i < 300; i++) {
        contract
                .transfer(
                  {
                    from: "myaccount",
                    to: "myaccount2",
                    quantity: "1.0000 SYS",
                    memo: i
                  },
                  {
                    authorization: ["myaccount@active"]
                  }
                )
                .then(res => {
                  console.log(res);
                  fs.appendFileSync("test.json", JSON.stringify(res));
                })
                .catch(err => {
                  console.log(err);
                });
        }
jgiszczak commented 6 years ago

The producer(s) is/are unable to keep up with your transaction rate. Throttle your transaction submission rate in order to have them all processed.

yashvadhvani commented 6 years ago

Can you explain please