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.
The Credit System is a Phase 2 feature and is currently in active development for mainnet deployments.
Grat uses a credit-based model to manage the costs of sponsoring transactions on the mainnet. This system ensures that your relay has the funds needed to pay for user fees while giving you full control over your spending.
How it Works
- Deposit XLM: You deposit XLM into your project’s managed account.
- Deduction per TX: For every transaction successfully sponsored, Grat deducts the exact network fee from your balance.
- Stroops: Internally, all balances are tracked in “stroops” (the smallest unit of XLM) to ensure absolute precision. 1 XLM equals 10,000,000 stroops.
Spending Controls
The credit system allows you to set spending limits at the project or API key level. You can configure alerts to notify you when your balance is running low, ensuring that your users never experience a service interruption due to a lack of funds.
By using a centralized credit balance, you can fund a single pool and use it across multiple applications, environments, and team members.
View on GitHub