Skip to main content
LitePart of the Lite plan; Developer includes it too. See plans · Get your key

Account

1Create a Lightspeed account

Generates a wallet on the server, encrypted under the API key you get back. Nothing is stored in your browser.

2Your API key

Filled in after creating an account, or paste one here. Kept only while this page is open.

3Balance

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%" }'