Install any skill in seconds. Free to start, no credit card required.
Get Started Free →OKX Agentic Wallet skill manages login, balances, transfers, contract calls, swaps, bridges and Gas Station payments via onchainos CLI.
Use this skill ↓55% 68%+14 ptsof test cases passed
Passed 15 of 22 test cases with the skill, and 12 of 22 without it.
3 of 3 safety checks passed
Not used yet
Gas Station lets the user pay gas with a stablecoin (USDT / USDC / USDG) when they lack native SOL. On Solana the Relayer is the fee payer; the stablecoin fee is collected via an SPL Token Transfer inside the same transaction — no account upgrade, no per-chain setup, no 7702. Solana only.
Supported scenarios: all SPL token transfers and contract interactions (swaps, DeFi supply / borrow / redeem / claim, bridge initiation, any SPL / program interaction). Native SOL transfers do NOT trigger Gas Station. State (enable flag, default token) is scoped to (account, Solana).
Edge cases, FAQ answers, and failure diagnosis live in gas-station-troubleshooting.md.
Backend dispatches; Agent reacts. Do NOT check SOL balance or decide whether to use Gas Station yourself. Call wallet send / wallet contract-call as normal, read the CLI's scene discriminator (and gasStationUsed), and dispatch via the Outcome → render map below — do not re-derive the scene from raw backend fields. On a Confirming, show the matching scene's verbatim copy and ask the user to pick a token.
Always surface Gas Station when native SOL is insufficient but a supported stablecoin has enough balance — for both a fresh attempt and a "why did my transfer fail?" follow-up. When a GS transfer is blocked because the default token is insufficient and the account holds another stablecoin, propose switching the gas token (Scene C, zero-cost) before "reduce amount" or "top up default token".
--gas-token-address / --relayer-id / --enable-gas-station on the FIRST call. They are second-phase values, used only after the user picks a token from a Confirming response.next field.serviceCharge + serviceChargeSymbol when present.All user-facing copy is product copy: render the template body verbatim, substituting only bracketed slots. When the user's language is not English, translate at output time while preserving structure and every fact — keep every clause (e.g. "now set as the default Gas token"), never substitute a chain noun (render "Solana" as-is), no leading setup line, no trailing notes beyond the template.
Output vocabulary: refer to the feature only as "Gas Station" and the choice as "which stablecoin to pay gas". Never surface internal field names (gasStationFirstTimePrompt, gasStationUsed, autoSelectedToken, hasPendingTx, insufficientAll, signType, multiSignerTx, Phase 1/2, DB flag), numeric error codes, or debug/log paths.
Gas Station is not a separate command — the backend decides per-request whether to dispatch it inside the wallet send / wallet contract-call response. First-time / token-switch cases use the Confirming Response pattern (exit code 2, Scene A / C); when a default token is pinned it runs silently (Scene B / D). Token priority (list ordering + auto-select): balance descending; ties USDT > USDC > USDG.
Map the CLI scene directly to the fixed copy below; do NOT re-derive it, do NOT author copy yourself. On a Confirming, next carries the exact re-run command.
CLI scene | Render | Then |
|---|---|---|
gs_first_time | Scene A | Get consent + token pick → follow next (re-run with --enable-gas-station --gas-token-address <pick> --relayer-id <pick>). On success → Scene A two-step. |
gs_reenable | Scene A (re-enable variant) | Same as gs_first_time; backend overwrites the previous default. |
gs_token_switch | Scene C | Get choice 1 / 2 / 3 → follow next. On success → Scene C post-success echo. |
gs_insufficient_all | Scene E | Bail. Do NOT re-run. |
Next to this one in the catalogue, plus more from the same author.