Workflows

BYOB can be a quite complex application when you first look at it. We are continuously improving the UX, but here is a general introduction into the main concepts of BYOB

Workflows

A workflow is basically a transaction that can contain many transactions (composability!). For example, you can stitch together a Jupiter swap and a deposit into a Hedge vault in one transaction.

With more protocols to be added, you can for example create a transaction that swap USDC for SOL and stake it in Marinade, then stake the mSOL into the Marinade vault as well. In one transaction!

This is especially useful for flash loans:. Flash loans are loans that are paid back in the same transaction. They require no collateral, so anyone can flash loan a million USD if you want, as long as you repay in the same tx.

During that tx, you can do stuff with it: arbitrage, or use it to instant leverage up on a hedge vault. These are advanced defi use cases though.

Shared workflows

At BYOB you can share your workflows. If you have made a useful workflow, just press share and you'll get back a link. Anyone that visits that link can access the workflow and executed it from their wallet.

Workflow library

To demonstrate, we have created a workflow library that contains some example workflows like a BONK flash loan arbitrage workflow. More workflows will be added there over time as more protocols will be added.

Bot mode

Bot accounts are the real deal of BYOB (Build Your Own Bot). In order to create a bot, you first need to create a Bot Account. Just go to the Bot Account page and create one. The bot account is just a Solana wallet and you have full control over it, you can even export the private key (keep it safe though!)

In order to do something with it, you need to fund it with some SOL. We recommend 0.1 SOL to cover some token account creation needed in the beginning (especially if you need LUTs).

Suppose you want to create a bot that every day buys a bit of SOL (a DCA bot), but only if the price is low. Create the bot account and fund it with some SOL to execute transactions and USDC in order to be able to buy SOL with it. Then create a workflow that swaps some SOL for USDC and set it up so it runs "every 1 days" and execute only if "price of SOL < $25".

That's it, you now have made a DCA buy bot!

Note that the bots are in an ultra secure environment, refer to our security page for more information. Nevertheless, be careful to not dump all your money on a bot but fund it every so often.

Delayed execution

If you don't want to fund the bot but have complete control you can also sign workflow using your own wallet and create a webhook to run it. In this way, only the signed transaction is stored in our backend, meaning BYOB cannot do anything other than executing the transaction.

If you don't know how to deal with webhooks this feature is probably not for you. But if you do, you can trigger your presigned tx later using any rule, or any code!

Last updated