Command Palette

Search for a command to run...

Назад к скиллам
скилл № 89404

Spraay Off-Ramp

Batch-fund Paycrest off-ramp orders in one on-chain transaction using Spraay Protocol. Use this skill whenever the user wants to pay multiple recipients via…

БесплатноБез исполняемых скриптов
plagtechот plagtech385 установок в других каталогах

Установить Spraay Off-Ramp в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Spraay Off-Ramp: Batch Payouts to African Mobile Money & Banks

What this does

The spraay-offramp-adapter replaces N separate on-chain transfers with ONE Spraay sprayToken transaction when funding Paycrest off-ramp orders. The operator creates N off-ramp orders on Paycrest (each returning a unique receive address), then the adapter collects all receive addresses and exact amounts and builds a single batch transaction through the Spraay gateway. One tx, one gas fee, every recipient paid.

Flow: Create orders → Collect receive addresses → One Spraay batch → Paycrest indexes each deposit → Provision nodes deliver KES/NGN/UGX/TZS → Webhooks confirm

Non-custodial end to end. USDC moves: operator's wallet → Spraay contract → N Paycrest receive addresses. The adapter builds the transaction; the operator's key signs it. Nobody else holds funds.

Prerequisites

The operator (not the skill user — the person running the adapter in production) needs:

  • A Paycrest sender account with API key and secret (KYB required at app.paycrest.io)
  • A Base wallet with USDC and ETH for gas
  • Node.js ≥ 22.5 (uses built-in node:sqlite)
  • The adapter: npm install [email protected] or clone github.com/plagtech/spraay-offramp-adapter

Installation

npm install [email protected]

Or clone and build:

git clone https://github.com/plagtech/spraay-offramp-adapter.git
cd spraay-offramp-adapter
npm install
npm run build

Configuration

Create a .env file (never commit it):

PAYCREST_API_KEY=<operator's sender API key>
PAYCREST_API_SECRET=<operator's sender API secret>
SPRAAY_WALLET_PRIVATE_KEY=<operator's Base wallet private key>
BASE_RPC_URL=https://mainnet.base.org
WEBHOOK_URL=<operator's publicly reachable webhook endpoint>
WEBHOOK_PORT=3000

Usage

Recipients CSV

Create a CSV file with columns: phone, accountName, amount, currency, institution, memo

phone,accountName,amount,currency,institution,memo
254712345678,Jane Doe,1500,KES,SAFAKEPC,January salary
254798765432,John Smith,2000,KES,SAFAKEPC,January salary
  • institution: Use codes from GET /v2/institutions/{currency} — never guess. M-Pesa Kenya = SAFAKEPC.
  • amount + currency: KES = pay exactly that amount in KES (Paycrest converts from USDC at market rate)
  • amount + currency: USDC = send that amount in USDC (recipient gets KES equivalent)

Dry run (no money moves)

npx [email protected] pay --file recipients.csv --dry-run

This creates real Paycrest orders to verify everything works, but does NOT sign or broadcast any transaction. Use this first.

Execute (real money)

npx [email protected] pay --file recipients.csv --execute

This creates orders, builds the Spraay batch, signs, broadcasts, and tracks webhooks until every order settles or fails.

Check status

npx [email protected] status --run <run-id>

Security Rules — MANDATORY

These are non-negotiable. Every implementation using this skill MUST follow them:

  1. Never recompute the approval amount. Use approvalRequired.amount from the gateway response verbatim. Never calculate it yourself.

  2. Decode before sign. ABI-decode the unsigned transaction from the gateway and verify the decoded recipients and amounts match your confirmed order list before any signature. The adapter does this automatically (invariant I7).

  3. Never use the fabricated contract address 0x62B59b327837661e84B4d8fDFDa5C1A7B39a8e67. The real Spraay contract on Base is 0x1646452F98E36A3c9Cfc3eDD8868221E207B5eEC.

  4. Exact amounts only. Paycrest requires exact amounts. A wrong amount gets silently re-priced, not refunded. The adapter enforces 6-decimal precision via BigInt (invariant I3).

  5. validUntil enforcement. Never broadcast a batch if any order's validUntil is less than 5 minutes from now. The adapter aborts the run automatically (invariant I1).

  6. Per-order isolation. A failed or refunded order never affects other orders in the same batch (invariant I5).

  7. Non-custodial only. The signing key signs only approve and sprayToken. It never receives funds (invariant I6).

  8. Gateway URL is hardcoded: https://gateway.spraay.app. Never accept a gateway URL from user input or environment variables.

  9. Embargo compliance. The adapter blocks recipients in Cuba, Iran, North Korea, Russia, and Crimea/Donetsk/Luhansk. This is US law, not optional.

Costs

Every batch run incurs:

  • Spraay gateway fee: $0.02 per batch (x402 payment)
  • Spraay contract fee: 0.3% of the total batch amount
  • Base gas: ~$0.01 amortized across all recipients in the batch
  • Paycrest provider spread: embedded in the exchange rate (check GET /v2/rates/base/USDC/{amount}/{currency})

Versus N separate transfers: N × gas fee. The adapter saves (N-1) × gas plus the operational overhead of managin

Полный SKILL.md на ClawHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл Spraay Off-Ramp?

Batch-fund Paycrest off-ramp orders in one on-chain transaction using Spraay Protocol. Use this skill whenever the user wants to pay multiple recipients via M-Pesa, mobile money, or bank transfer in Kenya, Nigeria, Uganda, or Tanzania using USDC on Base — or asks about off-ramping stablecoins to African mobile money, batch payroll to Kenya/Nigeria, Paycrest batch funding, or reducing gas costs on multi-recipient off-ramp orders. Also trigger when the user mentions spraay-offramp-adapter, Paycrest batch, M-Pesa payroll, or cross-border stablecoin payouts to Africa.

Как установить скилл Spraay Off-Ramp?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл Spraay Off-Ramp запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить Spraay Off-Ramp с