atp

Configure ATP Protocol FastAPI servers and clients for Solana pay-before-decrypt settlements.

4|1|Updated Dec 18, 2025
One-click install
npx skills add https://github.com/The-Swarm-Corporation/ATP-Protocol --skill atp
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: atp
Source: https://github.com/The-Swarm-Corporation/ATP-Protocol/tree/main
Command: npx skills add https://github.com/The-Swarm-Corporation/ATP-Protocol --skill atp

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Eliminates the complexity of wiring ATP Protocol middleware, usage parsing, and settlement for FastAPI servers and clients so agent services can enforce pay-before-decrypt on Solana without bespoke plumbing.

Core Features & Use Cases

  • Middleware Setup: Shows how to add ATPSettlementMiddleware, configure pricing, recipient pubkeys, and encrypt responses until the ATP facilitator confirms payment.
  • Client Usage: Documents instantiating ATPClient, attaching wallet headers to requests, auto-decrypting responses, and calling settlement endpoints directly for calculations or payments.
  • Ecosystem Examples: Includes tutorials for Swarms, LangChain, AutoGen, CrewAI, and Anthropic so you can integrate ATP protections across popular agent frameworks.

Quick Start

Use this skill to configure ATPSettlementMiddleware and ATPClient so your FastAPI endpoint encrypts output, parses usage, and settles via the facilitator before releasing responses.

Frequently Asked Questions about atp

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I enforce pay-before-decrypt Solana settlements in a FastAPI application?

You can enforce pay-before-decrypt Solana settlements by adding ATPSettlementMiddleware to your FastAPI server, which encrypts responses until the ATP facilitator confirms payment. This configures pricing, recipient pubkeys, and settlement metadata for reliable payment gating.

How does ATP middleware handle encrypted API responses before payment confirmation?

ATP middleware encrypts API responses upon request and only releases the decryption key once the Solana payment facilitator confirms the settlement. This ensures agents cannot access payload data without valid payment clearance.

Can I integrate ATP payment gating with LangChain, AutoGen, or CrewAI agent frameworks?

Yes, ATP provides ecosystem tutorials for integrating payment gating with Swarms, LangChain, AutoGen, CrewAI, and Anthropic. These examples show how to apply ATP protections across popular agent frameworks.

How do I configure an ATP client to attach wallet headers and auto-decrypt responses?

You can instantiate ATPClient to attach wallet private keys securely to request headers and automatically decrypt responses. The client also calls settlement endpoints directly for payment calculations or transactions.

What is the best way to pass Solana wallet private keys securely when using an ATP client?

The best way to pass Solana wallet private keys securely is through ATPClient headers, which ensures keys are transmitted safely during settlement endpoint calls. The client handles encryption and decryption reliably without exposing raw keys.

Why does my FastAPI endpoint return encrypted data instead of usage information after adding ATP middleware?

FastAPI endpoints return encrypted data because ATPSettlementMiddleware enforces pay-before-decrypt logic, withholding decrypted responses until the facilitator confirms payment. Endpoints also return usage data needed for accurate settlement calculations.