WSOL Unwrapper

In order to keep your bot performing transactions, we need to ensure that we have enough SOL in our wallets. To do this, NotArb has a WSOL Unwrapper feature where it will monitor and perform transactions through an RPC of your choosing.

[wsol_unwrapper] (Optional)

[wsol_unwrapper]
enabled = false # Enable or disable WSOL unwrapping
rpc = "your-rpc-id" # RPC node identifier
check_minutes = 1 # Interval to check for unwrap necessity
min_sol = 0.5 # Minimum SOL balance to trigger unwrap
unwrap_sol = 1 # Amount of WSOL to unwrap
priority_fee_lamports = 0 # Priority fee in lamports
  • enabled: Toggle true/false WSOL unwrapping.

  • rpc: name you set for the RPC node. This is for balance checks and transactions.

  • check_minutes: Frequency of balance checks.

  • min_sol: SOL threshold to trigger unwrap.

  • unwrap_sol: Amount of WSOL to convert.

  • priority_fee_lamports: Transaction priority fee.

Setting Up the WSOL Unwrapper Feature

1. Set up an [[rpc]] configuration section:

Provide the information of your RPC provider in this section.

[[rpc]]
id="GOAT-NY" # change this to any name you'd like, it's used as an identifier throughout this file
url="http://169.206.169.169:16969" 
http_timeout_ms=5000

For the id setting, you can name this anything. As long as you can reference it exactly in other parts of your configuration that require it, it'll be ok.

2. Set up [wsol_unwrapper] configuration section:

Now you can insert the [wsol_unwrapper] configuration in the bot-config.toml:

[wsol_unwrapper]
enabled=true
rpc="GOAT-NY" # This is what I set in my [[rpc]] setting 
check_minutes=10 
min_sol=0.5 # triggers an unwrap when the sol balance is less than 0.5
unwrap_sol=1 # aims to leave at least 1 SOL unwrapped
priority_fee_lamports=0 # optional, but can help tx land

Last updated