axnet-swaps
Installation
SKILL.md
Axnet Solana Swap Skill
🎯 Primary Objective
Enable autonomous agents to perform high-success, stateless token swaps on Solana. This skill handles the complexity of the x402 V2 protocol (decoupled fee payments).
🧩 Step 1: Capability Discovery
Before attempting a swap, determine if you are Building or Executing:
Scenario A: Building a Custom Agent (SDK)
If the developer wants to integrate Axnet into their codebase:
- Install:
npm install @axnetfun/axnet-sdk-ts - Initialize:
const sdk = new AxnetSDK(); - Execute Pattern:
- Use
sdk.swap(params, signerCallback, handshakeCallback). - The
handshakeCallbackis critical for processing x402 headers (AgentID & SessionID) without a database.
- Use
Scenario B: Executing Live Swaps (MCP)
If you have access to the Axnet MCP Server (https://mcp.axnet.tech):