Multicall - how to encode a function and passing parameters
See original GitHub issueI am new to this and I really need help on how to make a multicall request. I will appreciate for following helps.
- How can I encode a ABI function to send to the parameters to “aggregate” ABI?
- How to pass parameters as tuple[]?
Below is multicall ABI in json:
{ "constant": true, "inputs": [ { "components": [ { "name": "target", "type": "address" }, { "name": "callData", "type": "bytes" } ], "name": "calls", "type": "tuple[]" } ], "name": "aggregate", "outputs": [ { "name": "blockNumber", "type": "uint256" }, { "name": "returnData", "type": "bytes[]" } ], "payable": false, "stateMutability": "view", "type": "function" }
Issue Analytics
- State:
- Created 2 years ago
- Comments:12
Top Results From Across the Web
Multicall - how to encode a function and passing parameters
Hereunder is my test code to encode the "decimals" ABI of the ERC20 and then pass to the "aggregate" but it is not...
Read more >Multicall - Uniswap Docs
Call multiple functions in the current contract and return the data from all of them if they all succeed. The msg.value should not...
Read more >How to do multicall in Solidity with abi.encodeWIthSelector ...
Ok. the RoleMultiCall contract must be granted the TIMELOCK_ADMIN_ROLE role. So in the Hardhat task: ... await timeLockContract.grant( await ...
Read more >Multi Call | Solidity 0.8 - YouTube
Solidity application example - Aggregate many queries to contracts with a single function call.#Solidity #SmartContract #Ethereum #スマート ...
Read more >Encoding and Decoding Calldata with eth_abi - Degen Code
The ABI lists, among other things, a full description of the arguments for each function, including their data type and ordering.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank you very much. I got it. 💯
Because Calls is array of tuples, and tuple in this representation is array too Tell me please what result you have now