Questions tagged [multicall]
The multicall tag has no usage guidance.
11 questions
0
votes
1
answer
4
views
How to encode tuples when using useSingleContractMultipleData
I'm getting an error:
Error: invalid tuple value (argument="tuple", value="...
0
votes
1
answer
58
views
Reason for Checking `msg.sender == _msgSender()` in OpenZeppelin's MulticallUpgradeable Contract
In the OpenZeppelin::MulticallUpgradeable contract, there's a validation that checks msg.sender == _msgSender(). Considering that msg.sender and _msgSender() typically return the same value, why is ...
1
vote
1
answer
71
views
Is there a bundler that can be used with normal EOA without AA?
I've been playing around with ERC-4337: Account Abstraction Using Alt Mempool, it seems that there is a way to send multiple transactions and ensures they all returns success in sequential order. ...
1
vote
1
answer
237
views
Payable multi-delegatecall
I have a code of multi-delegatecall like this:
function multicall(bytes[] calldata _data) external payable returns(bytes[] memory _results) {
_results = new bytes[](data.length);
for (uint256 ...
1
vote
0
answers
147
views
Decoding Result Struct from tryAggregate3 Multicall3 with web3.py
Hello Ethereum StackExchange community,
I'm currently working with the Multicall3 contract's tryAggregate3 function which returns an array of Result structs with the following format:
struct Result {
...
3
votes
0
answers
69
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 ...
1
vote
1
answer
458
views
Who will be msg.sender in Multicall?
Good day to all, I know that msg.sender is eoa if multicall delegate some function to (this), but what if we will pass in callData selector of Multicall with params of other function?
So eoa->...
2
votes
0
answers
235
views
Can I cut a fee using multicall on Uniswap V3?
I developed my own frontend for Uniswap V3, and I was asking myself if I could cut a small fee of the input token using multicall.
Basically, I would calculate what 2 percent of the input token would ...
1
vote
1
answer
1k
views
multicall and transferFrom
so I have an account 0x1, and account 0x2.
both of them have 0xToken. I want to send tokens to 0x3 with multicall transaction.
I give allowance from 0x2 to 0x2 => 0x1 able to spend tokens from 0x2.
...
0
votes
1
answer
47
views
How to check for transaction integrity for 2 different smart contracts?
Let's say I have smart contract A and smart contract B. I want to transfer the ownership of smart contract B to another account ONLY IF a transaction against smart contract A has been successful.
I ...
0
votes
2
answers
2k
views
Multicall transaction execution using uniswap router failing
I'am trying to swap multiple tokens in single transaction (multicall). The transaction is going into pending state and failing after some time. The code snippet and the transaction hash is attached ...