Activate and transact in Freighter without first holding XLM
I maintainer di solito rispondono entro 2 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 30/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- typescript
- Ambito
- blockchain, payments
Direzione di ricerca
Inizia dalla documentazione di Cavos Reserve e dai dettagli di integrazione riportati in questa issue, quindi esamina come l’estensione Freighter gestisce gli account non finanziati, gli invii classici, gli swap e la firma delle transazioni. La revisione del prodotto dovrebbe stabilire i limiti di fiducia, dell’allowlist e operativi prima dell’implementazione. Il lavoro è completato quando gli utenti idonei possono attivare e transare con un asset accettato, mentre gli utenti XLM finanziati mantengono il comportamento attuale e sendMax viene applicato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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:
- 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. - Classic send / swap when spendable XLM is 0: an optional fee-assetpicker for accepted balances. Existing XLM-fee paths stay as they are.
- The user always sees
sendMaxbefore 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.
- Lingua principale
- TypeScript
- Stelle
- 122
- Fork
- 62
- Merge medio
- 4g 19h
- PR unite (30g)
- 41
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di stellar/freighter
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 2 giorni
-
Write the banner publishing guideForse già presa @aristidesstaffieri l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
stellar/freighter#3152 · 1 assegnatario ·
I maintainer di solito rispondono entro 2 giorni
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
I maintainer di solito rispondono entro 2 giorni
-
Dont call blockaid on empty token listForse di nuovo libera Una pull request per questa issue è stata chiusa senza essere unita. Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
I maintainer di solito rispondono entro 2 giorni
-
follow-up
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di stellar/freighter
Issue simili
-
agent/guide documentation help wanted stage/010-actionable
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 82/100
kubestellar/console-marketplace#1101 ·
I maintainer di solito rispondono entro 1 giorno
-
Java Edition Tests
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
JSPrismarine/JSPrismarine#4178 · 1 commento · 1 reazione ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 74/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
totec448-spec/chat-on-steroids#2394 ·
I maintainer di solito rispondono entro 1 giorno
-
github_actions
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
StellarHyperion/stellarhyperion-backend#499 ·
I maintainer di solito rispondono entro 1 giorno