Coming soon. The service gateway is not open yet. This page describes the design; routes and examples will be published when it opens. It will serve only services under contract. Today, integrate with one instruction from a server, a wallet or a program: see Integration overview.
The idea
Payment APIs, checkout backends and servers on other chains already speak HTTP. The service gateway lets such a service, under contract with Fade, fund a reward for its own users in one HTTP call. The service does not have to build Solana transactions itself: the gateway builds the ticket, and the service signs and pays it from its own wallet. The service is the organiser, the payer and the beneficiary of every reward it funds. Its users pay nothing for the chance, are never named in a ticket and never deal with Fade. Fade’s counterparty is the service, and only the service.How it works
1
The service asks for a ticket
The service calls the gateway with its key, naming one of its campaigns and one of its payout tables. The gateway checks that the service is admitted (see Access under contract) and within its campaign’s caps. It then builds an unsigned
open_ticket transaction in which every signer, the fee payer, the SOL payer and the USDC funder are the service’s own keys, simulates it, and returns it.2
The service signs from its own wallet
The service signs with its own keys: a hot wallet, a KMS, an HSM or a multisig. It either sends the transaction itself, or hands the signed bytes back and the gateway submits them unchanged, after checking that they are exactly the transaction it built. The ticket price moves from the service’s USDC account into the program inside that one instruction.
3
The draw, then the reward
A keeper requests the draw and settles, as for any ticket. A reward goes from Fade’s vault straight to the service’s own reward account, and the service credits its user, as it would a cashback.
Who does what
A request that names a beneficiary or a recipient is refused: the account that pays is the account that receives, and it must belong to the service. The gateway takes no app share (
appShareBps is 0).
What Fade charges
The gateway is billed as a flat technical fee, set in the service’s contract and invoiced off-chain. It never appears in a transaction, and it does not depend on which tickets win or on what the vault pays. The program’s own amounts are the same as for every app, and the service’s terms disclose them: the protocol share, 1 % of each ticket price, and the crank fee, 250 000 lamports of SOL prepaid at open and paid by the program to whoever requests the draw and settles. That is Fade’s public keeper unless the service runs its own. See Who pays what.Failures and refunds
- An open that fails moves nothing. The USDC transfer is part of
open_ticket: if the open is refused, no token moves, so there is nothing to give back. - The one refund the program makes, a ticket whose draw can no longer be checked, returns the vault credit from the vault straight to the service’s reward account. The protocol share is not returned.
- A ticket whose draw never arrives is expired and its price forfeited to the vault, as for every ticket (see Settlement and keepers). The service’s terms disclose this.
- The SOL that comes back when a ticket closes returns to the service’s own payer.
Access under contract
The gateway is closed to the public. A service gets a key only after it has:- signed Fade’s service terms, in the version in force;
- passed KYB: its business identity verified, and renewed before it lapses;
- passed sanctions and transaction screening (OFAC lists and KYT) on every address it registers, rerun on every change and at regular intervals.
What not to build
- No pay-per-chance. A user must never pay for a chance: no fee, no price raised because of the ticket, no paid tier. That makes it a lottery, and the service loses access.
- No agent buying chances for its user. An agent or an app that spends its user’s money on chances is gambling, and moving the user’s money to a third party on a condition is money transmission: both at once. The gateway is not built for it, and the terms forbid it.
- No user as funder or beneficiary. The service pays from its own wallet and receives into its own account. A design that pays from a user’s account or into one is not a Fade use case.
A reward behind the gateway is a promotion the service runs, as organiser, and the service is responsible for the rules of each market it serves. Promotion law is not the only regime involved: moving stablecoins for someone else can be a regulated payment service or money transmission, and handling crypto-assets for clients can need a crypto-asset licence. That is why the service pays from its own wallet and receives into its own account, and why Fade never receives, holds or forwards the service’s USDC or its users’ funds. A service that moves its own users’ money is responsible for the payment and crypto licences that requires. Fade is the technology provider. See Legal framework for the design rules and a summary by region.