Skip to main content

Questions tagged [batch]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
106 views

Foundry Solidity Error: panic: array out-of-bounds access (0x32) while testing a batch mint function

I'm writing foundry tests for a function which batch mints erc1155 tokens for the users, but I'm getting a panic revert. The function I'm testing: function mintBatch( address to_, ...
DevABDee's user avatar
  • 473
0 votes
1 answer
82 views

How to create Batch tx?

How to create a batch tx as shown in the safe app where using the click of Execute Batch you can combine all the pending tx into one and execute them at once. I am using this code: const executeBatch =...
Venkatesh's user avatar
0 votes
2 answers
79 views

differences between createTransaction and createTransactionBatch (@safe-global/protocol-kit)

Is there a difference between: createTransaction (used with multiple transactions (MetaTransactionData[])) createTransactionBatch Both seem to do the same thing but createTransactionBatch is not ...
Martin Saldinger's user avatar
3 votes
0 answers
62 views

`delegatecall` in batch call stops working as expected when changing the code slightly

I have the following function for batching multiple calls, which returns the result (success or not) and the return data for each corresponding call. function callBatch(bytes[] calldata calls) public ...
Vlad Markushin's user avatar
2 votes
1 answer
120 views

The economics of batching transactions on main net

I want to know if it is feasible to achieve even a marginal saving on gas fees if you were to write a smart contract to send N transactions in batch as opposed to making N separate transactions. Given ...
Richard Jarram's user avatar
2 votes
1 answer
69 views

Listing large amount of NFTs up for English sale on Openseea

Since the release of latest Opensea API, support for English auctions has been removed (Source). I am therefore looking for an alternative, which would allow creating listings for large amount of NFTs....
Nal Luksic's user avatar
  • 1,207
2 votes
1 answer
284 views

Does Alchemy support batch requests for getAssetTransfers?

I am trying to make a batch request for getAssetTransfers endpoint. However, when I try to do this, I get this error: jsonrpc: '2.0', id: 1, error: { code: -32600, message: '...
bison's user avatar
  • 21
1 vote
1 answer
786 views

Is it possible to send batch of transactions in Ethereum?

I wonder whether it is possible to send batch of transactions at once. I am aware that on the contract side this can be done, but this limits the batch execution to a limited number of functions, and ...
Ahmet Yazıcı's user avatar
1 vote
1 answer
2k views

Ordering transactions in a batch multisend/multicall

I've learned you can batch multiple transactions into one transaction using contracts like multisend/multicall. This is useful for things like large airdrops. However, what if we need to order the ...
errichoi's user avatar
1 vote
1 answer
65 views

How can i foward funds swaped from 0x api quotes in the same transaction

ideally i will like to add more logic (like fowarding funds or fees) to the quote.data before letting a user send the transaction to the blockchain.
NFA's user avatar
  • 11
1 vote
1 answer
409 views

I want mint N-number of NFT's to N-number of people using ERC1155

E.G: 1-NFT minted sent to 1-person, But in a broader perspective. e.g: 100 NFT's to 100 people, In the same function using ERC1155. I want to mint and transfer those 100 nfts in the same function. To ...
Syed Murtaza Ali Shah's user avatar
1 vote
1 answer
703 views

How can I send erc20 tokens at once from MULTIPLE wallets to a single address?

I have a specific question. Is there any tool or wallet to manage multiple wallets and batch transfer tokens? Im not too familiar with contracts, so would prefer something easy to use with a UI https:/...
Meo's user avatar
  • 11
0 votes
1 answer
357 views

Web3 Chainstack Guide to Batch Transactions gives Error: This contract object doesn't have address set yet, please set an address first

I am trying to get the token balances for all of the tokens in my address. To do that I followed the steps in this guide here: https://chainstack.com/the-ultimate-guide-to-getting-multiple-token-...
ChristianOConnor's user avatar
1 vote
1 answer
566 views

Gas costs of multiple Writes / Reads to same slot in transaction

I know that the EVM wants to charge for reading from slots, and even more for writing to those slots. That all makes sense. My question is, whether the EVM is smart enough to store in memory the ...
Gregory Magarshak's user avatar
1 vote
2 answers
726 views

How can I split a transaction to two addresses using metamask?

My idea is to ask users what amount they want to tip another user. However I want to take 5% of that amount and send it to another address (as comission for site operator) I know the user would have ...
chovy's user avatar
  • 180
1 vote
1 answer
219 views

Batch Minting using SuSquares ERC721 method

William Entriken's method of batch minting NFT's seems like the best approach. When deploying his Susquares contract on rinkeby testnet it doesn't seem to work.. The totalsupply() and tokenuri() ...
Chris Fillion's user avatar
1 vote
0 answers
334 views

What's the most efficient way to batch mint NFTs?

It seems inefficient to batch mint from the client side (eg. web3). Apparently Cargo does batch minting but I couldn't find their code. My default approach would be a Solidity function that loops ...
sfmiller940's user avatar
0 votes
2 answers
751 views

Is the cost to send n batch transactions linear?

Curious approximately what the fee multiple might be to send ETH to 1, 10, 100 and 1,000 addresses in a single transaction?
johnnyApplePRNG's user avatar
2 votes
2 answers
861 views

how to batch several swaps in a single tx (batch tx)?

Hi I wanna purchase several erc20 tokens to build a portofolio but gas prices are just exorbitant since several weeks, so I'd like to find a way to implement swapping mutliple assets in a single tx (...
eth2021's user avatar
  • 21
0 votes
1 answer
606 views

Contract Interaction and Batch Transaction with Web3

I've reviewed most all of the posts on this topic, but none of the answers are doing exactly what I need. I have an application that allows users to submit their tokens from their contract into my &...
Justin Dev's user avatar
0 votes
1 answer
2k views

Web3.js Batch Request Limit?

I'm trying out Batch Request provided by web3.js. In the example below I want to test making 300 transactions but i get the error log displayed below. I'm trying to figure out the error log but it ...
Conviley's user avatar
  • 390
0 votes
0 answers
297 views

How to send transactions to smart contract in batch?

I have this smart contract function: function addOneUser (User memory _user) public { bytes32 hash = keccak256(abi.encode(_user.name)); users[hash] = _user; } Using ...
maroodb's user avatar
  • 1,121
0 votes
1 answer
2k views

Web3.js batch request error: method.callback is not a function

If I try to run the example given here: https://web3js.readthedocs.io/en/1.0/web3-eth.html#batchrequest With the following code: const batch = new web3.BatchRequest(); batch.add(web3.eth....
jasper's user avatar
  • 689
0 votes
1 answer
44 views

How is it possible to print tokens out of nowhere with the batchOverflow problem?

As stated in the title I've been looking at the Batch Overflow issue that happened last year where someone printed tokens out of nowhere. I see that when you create a token, you specify a totalSupply ...
strangethingspy's user avatar
0 votes
2 answers
656 views

Calling Truffle Commands through a script

I made following contract using visual studio code pragma solidity ^0.4.17; contract IDSCheck { mapping( string => string ) PersonHash; function AddHash(string name, string hash) { ...
Mubeen's user avatar
  • 1
5 votes
1 answer
2k views

JSONRPC method should be specified for params: "undefined" while batching the requests in web3 js

I am able to get the balance for an ERC20 tokens in a loop, but when I try to use BatchRequest I get the following error JSONRPC method should be specified for params: "undefined" Below code is ...
Adnan Aftab's user avatar
1 vote
0 answers
171 views

Estimating gas costs for large batch of transactions

I noticed on EthGasStation the following below the estimated gas prices: Note: Estimates not valid when multiple transactions are batched from the same address or for transactions sent to addresses ...
WBT's user avatar
  • 565
2 votes
1 answer
863 views

How to do batch transaction in Ethereum using web3j

I want to do batch transaction using the web3j,So how can I do it? Is there any way or feature web3J provides
Aman Vyas's user avatar
  • 133
2 votes
2 answers
1k views

Consolidate Batch of ETH Wallets w/ERC20 Tokens?

I have a large number of Ethereum wallets with small amounts of ERC-20 tokens in each. How can I send all of these tokens to a single ethereum wallet without doing this process manually? (it would ...
EhEth's user avatar
  • 21
2 votes
2 answers
3k views

Best practice for multiple dependent requests in Web3.js

Looking to get some advice on a pretty common scenario using Web3.js Let's say you want to calculate the number of tokens for a specific ERC20 token contract that are present at an Ethereum Address. ...
Shawn Tabrizi's user avatar
0 votes
3 answers
1k views

How to execute web3 batch js file

New to solidity programming and I discovered this today at this site: var contract = new web3.eth.Contract(abi, address); var batch = new web3.BatchRequest(); batch.add(web3.eth.getBalance.request('...
Jazzmine's user avatar
  • 187
6 votes
1 answer
4k views

Ethminer "No GPU device with sufficient memory was found"

I have two Sapphire Nitro+ RX 480 OC cards. When only one is inserted into a PCIe slot, I am able to mine ETH with no issues. When both are inserted into PCIe slots, my terminal returns: "No GPU ...
J.W.'s user avatar
  • 61
6 votes
0 answers
5k views

Use of web3.js batch requests

The web3.js API allows for synchronous RPC batch requests with the example given as: var batch = web3.createBatch(); batch.add(web3.eth.getBalance.request( '...
o0ragman0o's user avatar
  • 4,330