Launchtube was a valuable service for the Stellar ecosystem, but its deprecation by the Stellar Development Foundation has left a gap for developers who need reliable gas abstraction. Grat is the open-source, self-hostable replacement designed to fill that gap.Documentation Index
Fetch the complete documentation index at: https://grat.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Why Migrate?
While Launchtube is no longer supported, Grat offers a modern architecture with native Soroban support and a permissive Apache 2.0 license. Migrating to Grat allows you to regain control over your sponsorship infrastructure and continue providing zero-gas experiences for your users.Code Comparison
The integration logic remains very similar. Most changes involve updating the initialization and error handling.Feature Comparison
| Feature | Launchtube | Grat |
|---|---|---|
| Classic Payments | Yes | Yes |
| Soroban Support | Limited | Native & Full |
| Self-Hosting | No | Yes (Docker) |
| License | Proprietary | Apache 2.0 |
| Credit System | Managed | Flexible |
Migration Steps
Update Imports and Constructor
Change your imports and initialize the
Grat client. On testnet, you no longer need a project ID or secret to get started.Update Method Calls
The core
sponsor() method remains the same. If you were using Launchtube’s custom simulation logic, replace it with grat.simulate().Test on Testnet
Run your existing test suite against a local Grat relay to ensure that sequence management and sponsorship are working as expected.
FAQ
Do I need to change my transaction building code?
Do I need to change my transaction building code?
No. Grat works with standard Stellar transactions and fee-bump envelopes. Your existing logic for building and signing transactions with user keypairs remains exactly the same.
Is the API compatible?
Is the API compatible?
While the REST endpoints are different, the core data structures (XDR strings, transaction results) are standard Stellar formats. The Grat SDK is designed to be a drop-in replacement for the most common Launchtube use cases.
Can I self-host?
Can I self-host?
Yes. Unlike Launchtube, Grat is fully open-source. You can run your own relay instance on your own infrastructure, giving you total control over costs and uptime.
What about Soroban?
What about Soroban?
Grat was built with Soroban in mind from day one. It handles resource fee estimation, simulation, and sponsorship natively, something Launchtube only partially supported.