Title
[Backend/Relayer] Zero-XLM Fee-Bump Transaction Relayer with Cryptographic Rate-Limiting & Device Attestation
Description
To provide an Apple-like frictionless onboarding flow, new users must be able to create a LynxX Smart Wallet and interact with Soroban contracts without purchasing XLM first. An off-chain backend Relayer service is required to sponsor transaction fees by wrapping user-signed envelopes inside Stellar Fee-Bump Transactions (FeeBumpTransaction) while protecting the relayer fee pool from Sybil DDoS draining.
Domain / Component
- Component: Backend Relayer Service / Enclave API
- Layer: Off-Chain Infrastructure & Gas Sponsorship
Complexity & Priority
- Complexity: Hard (Sybil resistance, cryptographic attestation, concurrency)
- Priority: P1 (Essential for UX Adoption)
Estimated Timeframe
- 2 Weeks (Backend architecture, rate-limiting middleware, and Stellar SDK relayer integration)
Technical Requirements
- Create a backend API endpoint
/api/v1/relayer/sponsor that accepts a user-signed Soroban transaction XDR.
- Validate that the inner transaction invokes an allowed LynxX contract (
fund, escrow, factory, or account creation).
- Wrap the transaction inside a
FeeBumpTransaction signed by the Relayer's treasury account.
- Integrate rate-limiting via IP/Device Attestation tokens (Apple App Attest / WebAuthn Device Integrity) and enforce a daily XLM sponsorship cap per user.
Acceptance Criteria
Dependencies & Prerequisites
- Node.js / Rust relayer server with access to a funded Stellar Testnet/Mainnet treasury keypair.
@stellar/stellar-sdk v15+.
Title
[Backend/Relayer] Zero-XLM Fee-Bump Transaction Relayer with Cryptographic Rate-Limiting & Device AttestationDescription
To provide an Apple-like frictionless onboarding flow, new users must be able to create a LynxX Smart Wallet and interact with Soroban contracts without purchasing XLM first. An off-chain backend Relayer service is required to sponsor transaction fees by wrapping user-signed envelopes inside Stellar Fee-Bump Transactions (
FeeBumpTransaction) while protecting the relayer fee pool from Sybil DDoS draining.Domain / Component
Complexity & Priority
Estimated Timeframe
Technical Requirements
/api/v1/relayer/sponsorthat accepts a user-signed Soroban transaction XDR.fund,escrow,factory, or account creation).FeeBumpTransactionsigned by the Relayer's treasury account.Acceptance Criteria
0 XLMbalance can successfully execute contract calls via the/sponsorendpoint.Dependencies & Prerequisites
@stellar/stellar-sdkv15+.