Skip to main content
Stratus onchain cloud platform overview
Stratus is Snag’s cloud-native solution designed to provide complete flexibility for building complex rule logic and onchain operations. With Stratus, you can seamlessly integrate one or all of its core services to develop the precise functionality you need. Each service is fully modular, so they can be used independently or combined within a function to suit your application’s unique requirements.

Core services

How Stratus works

Stratus services are designed to work together or independently. A typical workflow combines multiple services:
  1. Subscribe to onchain events (e.g., a token transfer or contract interaction) using Subscriptions
  2. Process the event data with a serverless Function that applies your custom business logic
  3. Execute onchain actions through a Relayer, such as minting rewards or updating token balances
Each service communicates through Snag’s internal event system, so you can chain them together without managing infrastructure.
All Stratus services are available through the Snag admin dashboard. Functions and relayers also support programmatic access via the Snag API with a Stratus-scoped API key.

Use cases

  • Custom loyalty rules — Write a Stratus function that checks onchain state and rewards users based on your own criteria using the Stratus function loyalty rule
  • Gasless transactions — Use relayers to sponsor gas for your users when they claim rewards, mint NFTs, or interact with smart contracts
  • Onchain event tracking — Subscribe to smart contract events and automatically trigger reward distributions or update user balances
  • Token-backed points — Sync your off-chain loyalty currency to an onchain ERC-20 token so users can trade, stake, or bridge their points
  • Automated airdrops — Schedule a function on a cron to periodically check leaderboard rankings and distribute token rewards

Getting started

1

Access Stratus in the admin dashboard

Navigate to the Stratus section in the Snag admin dashboard. You will see tabs for Functions, Subscriptions, Relayers, and Onchain Tokens.
2

Create a Stratus API key

Go to the API Keys page and create a new key with the Stratus scope. This key is used for webhook invocations and API access to Stratus services.
Stratus API keys are separate from Website API keys. Do not use Stratus keys with loyalty endpoints, and vice versa.
3

Build your first function

Head to Functions to write and deploy your first serverless function. Check out the function templates for common patterns.