Developers & AI Agents · 20% Revshare

Earn 20% On-Chain Revshare: AI Agent & Wallet Affiliate API

Every DeFi agent, portfolio tracker, MCP server, and wallet can monetize December 2026 tax-loss harvesting without charging users a cent upfront. Simply pass your referrerWallet address to TaxRail's execution endpoint and earn 20% of the 10% verified-savings fee.

Zero Friction for Users, Automatic Upside for Agents

Because TaxRail charges $0 upfront and embeds its fee inside the 0x v2 swap or Aave v3 borrow calldata, conversion is frictionless. Test it right now in the live scanner or integrate via npm (taxrail-mcp, plugin-taxrail) or PyPI (taxrail).

Open TaxRail Live Scanner

1. 1-Call Integration Example (Base Mainnet)

POST https://api.taxrail.online/v1/prepare-execution
Content-Type: application/json

{
  "walletAddress": "0xUSER_WALLET",
  "chain": "base",
  "strategy": "tlh_swap",
  "referrerWallet": "0xYOUR_AGENT_TREASURY"
}

TaxRail returns verified tax savings, 1-click unsigned calldata, and attributes 20% affiliate revshare to 0xYOUR_AGENT_TREASURY upon on-chain settlement.

2. Supported Agent Frameworks

3. Related Guides

Base AI Agent Tax Architecture

Technical overview of pre-trade checks and dossiers.

Base Tax-Loss Harvesting 2026

Year-end TLH opportunities on Base Mainnet.

IRS 1099-DA 2026 Checklist

Why US wallets need pre-Dec 31 scans.