Crypto Banking Access Risk Firewall with Vercel AI SDK
Financial institutions onboarding crypto asset service providers require continuous monitoring of fiat-to-crypto gateway flows and counterparty risk scores. You will create a real-time risk evaluation service that streams risk telemetry and automatically throttles high-risk settlements under configurable compliance policies.
What you are building
Build a streaming crypto-fiat banking gateway risk firewall in Next.js using the Vercel AI SDK to monitor counterparty transactions in real time.
How work is evaluated
Evaluates streaming decision latency and risk decision precision for fiat-crypto settlement requests.
Datasets
Public datasets, plus the private datasets you have access to.
How submissions are scored
triggers_circuit_breaker
Ensures high volume transfer to high risk jurisdiction is THROTTLED or BLOCKED
This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.
stream_first_chunk_latency_ms
Latency to first streamed response byte • target: 80 • range: 0-300
This dimension contributes its full weight only when the submission satisfies the requirement. Partial credit is not awarded.
Learning goals
Implement real-time streaming tools using Vercel AI SDK (`ai`)
Create continuous counterparty risk scoring models for fiat-crypto gateways
Enforce dynamic credit limits based on real-time transaction velocity
Stream risk evaluations directly to web dashboard clients with low latency
Resources
Stream of 1,000 crypto asset service provider (CASP) wire transfer events with varying volume spikes and risk indicators.
Challenge setup
Evaluates streaming decision latency and risk decision precision for fiat-crypto settlement requests.
Challenge input
JSON containing transfer_id, casp_id, volume, and recipient
AI SDK
Vercel AI SDK for building streaming AI web infrastructure in TypeScript.
Evaluated output
Streamed JSON chunks culminating in action ('ALLOW'|'THROTTLE'|'BLOCK')
- Ensures high volume transfer to high risk jurisdiction is THROTTLED or BLOCKED
- Latency to first streamed response byte • target: 80 • range: 0-300
- Benchmark: StreamRisk-Bench
- Stream First Chunk Latency Ms target: 80
- 1 public reference case
- JavaScript execution harness
- javascript sandbox (unavailable on Versalist)
Shows the first task, up to three tools, and up to three evidence items.
View technical recipe
Configured tools
- Vercel AI SDK · Required
- Vercel AI SDK · Required
Evaluation contract
- triggers_circuit_breaker · Weight 1
- stream_first_chunk_latency_ms · Weight 1
Metrics
- stream_first_chunk_latency_ms · Target 80
Benchmarks
- StreamRisk-Bench
- security
Reference cases
- 1 public reference case
Workflow tasks
- Task 1
Input: JSON containing transfer_id, casp_id, volume, and recipient
Output: Streamed JSON chunks culminating in action ('ALLOW'|'THROTTLE'|'BLOCK')
Execution harness: JavaScript
Evaluation tools
- AI SDK · agent_framework
Recipe freeze marker
No recipe freeze time is recorded.