🔍Address lookup table

The onchain bot usually has a lot of accounts in the same transaction. And it's impossible to run it if you don't have a good lookup table.

The bot has a list of cli commands that help you manage your lookup table. You just need to pass in the config file you use and run ./smb-onchain create-lookup-table config.toml, and the bot will automatically create a lookup table for you. Or if you are just modifying your config, you can run ./smb-onchain extend-lookup-table config.toml EXISTING_LOOKUP_TABLE_ADDRESS and the bot will update the address lookup table with the missing addresses.

Note: Creating a lookup table will cost you ~0.00128064 SOL. This cost cannot be recovered. Adding one address will cost you ~0.00022 SOL, this cost you can get back by deactivate the lookup table and close it. One lookup table can only hold at most 250 addresses.

./smb-onchain -h

Commands:
  create-lookup-table <config_path>    Create a new lookup table using config
  extend-lookup-table <config_path> <address>    Extend an existing lookup table
  deactivate-lookup-table <config_path> <address>    Deactivate an existing lookup table
  close-lookup-table <config_path> <address>    Close a deactivated lookup table. You need to deactivate it first and wait for ~5min before closing it.
  find-lookup-tables <config_path>     Find all lookup tables owned by the current wallet
  run <config_path>                    Run the arbitrage bot with specified config

Options:
  -h, --help                          Show this help message

Last updated