Build rewards infrastructure

RESTful API for blockchain-based rewards. Build transactions, sign client-side, broadcast to network. JavaScript/Python SDKs included.

Build rewards infrastructure

RESTful API for blockchain-based rewards. Build transactions, sign client-side, broadcast to network. JavaScript/Python SDKs included.

Code Example

Your first request

Install the SDK, initialize with your config, and mint your first SP tokens.

mint-sp.js
import { Factory } from 'spree-evm-sdk';

// Initialize SDK
const factory = new Factory({
  rpcUrl: process.env.RPC_URL,
  chainId: BigInt(process.env.CHAIN_ID),
  contractAddress: process.env.FACTORY_ADDRESS,
  from: '0xYourWalletAddress'
});

// Mint 1000 SP tokens
const unsignedTx = await factory.mint(
  process.env.ASSET_ADDRESS,  // USDC/USDT/DAI
  1_000_000n,                  // Amount
  '0xReceiverAddress',         // Recipient
  false                        // expectedBasketMode
);

// Sign and broadcast
const signedTx = await wallet.signTransaction(unsignedTx);
await provider.sendTransaction(signedTx);
$ npm install spree-evm-sdk
Contract addresses and chain config are provided during partner onboarding.

View full SDK guide ↗

Core API capabilities

Full-featured rewards infrastructure accessible via REST.

Points issuance
Issue Spree Points (SP) programmatically. Support for bulk operations, scheduled distributions, and event-triggered rewards.
Campaign orchestration
Create and manage campaigns with budgets, rules, and eligibility. Track performance and participant engagement in real-time.
Webhooks
Subscribe to events like point issuance, redemptions, and campaign milestones. Real-time notifications delivered to your endpoints.
Analytics API
Query circulation metrics, velocity, campaign performance, and user engagement. Export data for custom reporting.
User management
Manage user profiles, balances, and transaction history. Segment users and query by cohorts for targeted campaigns.
Redemption flows
Build custom redemption experiences. Connect to 2M+ merchants or create branded reward catalogs with our SDK.

How it connects

Your app → Spree SDK/API → SP Token Network → Redemption rails.

How It Works

One integration. Full network.

Your App

Web, Mobile, Backend

Spree SDK / API

JavaScript, Python, REST

SP Token

1:1 stablecoin backed

Branded SP

Custom tokens

Collateral

USDC, USDT, DAI

Yield

DeFi earning

Spree Network

2M+ Merchants • Redemption Rails • Liquidity

How It Works

One integration. Full network.

Your App

Web, Mobile, Backend

Spree SDK / API

JavaScript, Python, REST

SP Token

1:1 stablecoin backed

Branded SP

Custom tokens

Collateral

USDC, USDT, DAI

Yield

DeFi earning

Spree Network

2M+ Merchants • Redemption Rails • Liquidity
Ready to Scale

Start building today

Get your API credentials and ship rewards infrastructure in hours.