Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Batch request renders multiple windows, should be 1 #282

Open
rstormsf opened this issue May 3, 2019 · 0 comments
Open

Batch request renders multiple windows, should be 1 #282

rstormsf opened this issue May 3, 2019 · 0 comments

Comments

@rstormsf
Copy link

rstormsf commented May 3, 2019

image

const batch = new web3.BatchRequest()
    for (let i=0; i< 10; i++) {
      const tx = web3.eth.sendTransaction.request(
        {
          from: ethAccount,
          to: address,
          gas: numberToHex(gas + 100000),
          gasPrice,
          value: 0,
          data: data
        },
        () => {}
      )
      batch.add(tx)
    }
    const { response } = await batch.execute()

or use https://multisender.app

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant