Account
Your Lightspeed wallet is generated on our server, and only you can open it. The private key is encrypted under a key derived from your API key; we keep the ciphertext and a hash of the API key for lookup, never the API key itself. Without the API key the wallet cannot be decrypted, by us or by anyone who took a copy of our database. It is decrypted for the milliseconds a request needs it, from the API key that request carries. You hold custody.
Generates a wallet on the server, encrypted under the API key you get back. Nothing is stored in your browser.
Filled in after creating an account, or paste one here. Kept only while this page is open.
From code
Two requests: create an account (no body), read the balance with the key in the x-api-key header.
curl -X POST https://sol.shrine.trade/api/lightspeed/account
curl https://sol.shrine.trade/api/lightspeed/account -H "x-api-key: ls_…"
To move SOL out without importing the private key, POST /api/lightspeed/withdraw with to and amount ("100%" for everything above the network fee), same header.
The create response is { "pubkey", "api_key", "private_key" }, shown once. Fund pubkey with SOL (plus a little for tips and fees); for a coin quoted in USDC or another token, fund the quote as well.
:::caution Your wallet, your key The API key is the key to the wallet. Whoever holds it, or the private key, controls the funds; we cannot recover a lost API key, so keep the private key as your backup. Keep only what you snipe with, withdraw profits, and treat both like a password. If either leaks, create a new account and move the balance. :::
Balance
curl https://sol.shrine.trade/api/lightspeed/account -H "x-api-key: ls_…"
{ "pubkey": "5Vk…nq2", "sol": 1.204, "lamports": 1204000000, "tokens": [ { "mint": "…", "amount": 1250000, "amount_raw": "1250000000000", "decimals": 6 } ] }
Withdraw
Move SOL out, no fee. amount is SOL, or "100%" for everything above the network fee.
curl -X POST https://sol.shrine.trade/api/lightspeed/withdraw \
-H "content-type: application/json" \
-d '{ "apiKey": "ls_…", "to": "<your wallet>", "amount": "100%" }'