Activate and transact in Freighter without first holding XLM

Open
#3,002 3 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
30/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
typescript

Research direction

Start with the Cavos Reserve documentation and the integration details in this issue, then review how the Freighter extension handles unfunded accounts, classic sends, swaps, and transaction signing. Product review should settle the trust, allowlist, and operational boundaries before implementation. Done means eligible users can activate and transact with an accepted asset while funded XLM users retain the current behavior and sendMax is enforced.

Written by the indexing model from the issue text.

Description

discussion
What problem does your feature solve?

On Stellar, a Freighter user cannot exist or transact until they hold XLM.
Opening an account locks ~1 XLM, each trustline locks 0.5 XLM more, and every operation spends a network fee in XLM. Sending a user to an exchange to buy XLM is a bad UX design.

That cost is small in dollars and large in drop-off:

  • A user who was sent USDC (or another held asset) still cannot claim or spend
    it until they acquire a second asset they were not given.
  • Freighter’s current unfunded state can only say “add XLM” / Friendbot.
  • No on-ramp is designed to sell ~1.5 XLM.

This is not a fee-sponsorship-only problem. Stellar spends XLM as a fee and locks XLM as a reserve. Covering only the fee still leaves the account unable to be created.

What would you like to see?

Let Freighter activate an unfunded account, and later pay classic send/swap fees, using a supported asset the user already holds, without requiring them to acquire XLM first.

Concretely, in the extension:

  1. Unfunded account + inbound claimable in an accepted asset: one
    “Activate with {sendMax} {ASSET}” path. One signature creates the account (starting balance 0), opens the trustline, claims the balance, and pays reserves + the network fee from that asset. The button shows the quoted ceiling, not the waiting balance.
  2. Classic send / swap when spendable XLM is 0: an optional fee-assetpicker for accepted balances. Existing XLM-fee paths stay as they are.
  3. The user always sees sendMax before signing. If the route moves past that ceiling, the transaction fails and nothing is taken. Opt-in and conditional: the token path only appears when Reserve accepts the network and a supported asset is actually available. Funded accounts with enough XLM should look and behave exactly as they do today.
Integration details (for product review)

This would use Cavos Reserve, a hosted Stellar sponsor we operate
(docs, SDK @cavos/reserve).

What it sponsors Base reserves (CAP-33) and the network fee (CAP-15 fee-bump)
How the user pays PathPaymentStrictReceive in the same inner tx: token → exact XLM owed to the sponsor. Rate is the SDEX/pool route, not an oracle
Networks Testnet and mainnet hosted endpoints. No API key required
Accepted assets Allowlisted, liquidity-verified issuers only (XLM, Circle USDC, EURC, PYUSD, USDT0, AQUA, …). A code without its issuer is rejected
Keys Reserve never holds a user key and never adds itself as a signer. It signs only the outer fee-bump. SetOptions / signers / thresholds are not expressible in the request
Wallet check Freighter re-derives the server-built transaction from the request it made and compares XDR before prompting (ops, sponsorship sandwich, fee destination, destAmount, sendMax, path hops)
Scope in this proposal Classic G… accounts. Not Soroban, not dApp signTransaction inference

We maintain the SDK and the service, and we can change either if Freighter needs a different trust, allowlist, or operational boundary.

Happy to join a product review or adjust the integration before any code review of #3001.

Dominant language
TypeScript
Stars
122
Forks
62
Avg merge
4d 19h
Merged PRs (30d)
41

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from stellar/freighter

All issues in stellar/freighter

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.