Autotask - How to automate compound process for vaults

Hi ! I'm trying actually to use autotask to compound my vault on bsc every 5 hours.
Actually I don't understand how to process it ? I already do a script on hardhat to compound but I don't understand what type of script should I do in the javascript snipset ?

thanks for the support.

Hey @SolidityDev! You can use either ethers.js or web3.js for sending txs to your contract. Check out an example using ethers.js here:

Note that you'll also need to create and fund a relayer on BSC for this to work, and connect it to the Autotask (on the Autotask Settings).

thank you very much !