Questions tagged [batch]
The batch tag has no summary.
33 questions
0 votes
1 answer
826 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_, ...
0 votes
1 answer
163 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 =...
0 votes
2 answers
123 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 ...
3 votes
0 answers
76 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 ...
2 votes
1 answer
183 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 ...
2 votes
1 answer
82 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....
2 votes
1 answer
389 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: '...
1 vote
1 answer
1k 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 ...
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 ...
1 vote
1 answer
76 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.
1 vote
1 answer
440 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 ...
1 vote
1 answer
964 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:/...
0 votes
1 answer
379 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-...
1 vote
1 answer
678 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 ...
1 vote
2 answers
808 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 ...