πͺIntegrate a batch into a Hook using Squid
How to add multiple actions using the batch precompile into a pre-hook on Moonbeam parachain to a route request towards an EVM chain using Squid SDK
postHook: {
chainType: "evm",
calls: [
{
chainType: "evm",
callType: 2,
target: batchAddress, // 0x0000000000000000000000000000000000000808
value: "0", // this will be replaced by the full native balance of the multicall after the swap
callData: batchEncodedData,
payload: {
tokenAddress: "0xAcc15dC74880C9944775448304B263D191c6077F",
inputPos: 0, // unused
},
estimatedGas: "150000",
},Last updated