πͺ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
Now that you have your encoded batch call made of several encoded subcall data, you can easily add the full encoded batch data to a Hook using Squid SDK.
This is doable by adding a postHook
or preHooks
parameter to the route object passed to Squid.
By using this technique, you can do multiple calls before bridging to any EVM chain (preHook) and after bridging from any EVM chain to Moonbeam (postHook).
Last updated