Custom action is the corner stone of Snowflake. It lets you invoke any smart contracts in a generic fashion. To define a custom action, enter the program id of the target contract, its instruction (in hex format) and the list of accounts that it touches, like so.

In most cases, you can simply copy & paste these values from Solana Explorer if you have already executed similar transactions before. In the future, we are going to make it even easier to use custom action by letting you import a custom action directly from an executed transaction in Solana Explorer.

Using custom actions, developers can setup all kinds of automation, cranking services that need to be run regularly to support their protocols, ie. optimise yield farming pools, rebalance portfolios, limit price orders, scheduled liquidation jobs, ...

Did this answer your question?