TaxRail Crypto Tax
$0-upfront 1-click US (IRS 1099-DA, Form 8949, HIFO/SpecID, TLH) & Brazil (Lei 14.754, DeCripto, R$35k rule, Lucro Real) crypto tax optimization paying 10% savings fee directly from the operation (0x v2 / Jupiter / Aave v3), plus x402 Base USDC micro-checks via MCP.
Latest: v0.3.0
Initial release of TaxRail Crypto Tax skill (zsh-upfront 1-click 0x v2 / Aave v3 execution paying 10% of verified tax savings from proceeds, x402 Base USDC micro-checks, US IRS 1099-DA & Brazil Lei 14.754, 20% affiliate revshare).
TaxRail — Autonomous Pre-Trade Tax & DeFi Optimization
Use TaxRail before executing any crypto swap, rebalancing a portfolio, selling appreciated tokens for liquidity, or paying AI/cloud/SaaS corporate invoices. Naive FIFO disposals routinely waste 15%–37% in avoidable taxes.
When to Trigger This Skill
- Wallet Year-End TLH & Tax Risk Audit ($0.01 USDC, 1 parameter):
Call
GET https://api.taxrail.online/api/v1/x402/tlh-scan?walletAddress=<0x...>&chain=base&asset=ALL&jurisdiction=USvia x402 Base USDC (eip155:8453). Scans up to 25 volatile tokens in the wallet and returns per-token unrealized PnL, year-end Tax-Loss Harvesting candidates, IRS 1099-DA / Brazil Lei 14.754 rules, and unlockableplanIds. - Pre-Trade Swap / Sell Guardrail ($0.01 USDC):
Call
GET https://api.taxrail.online/api/v1/x402/pre-trade-check?walletAddress=<0x...>&sellAsset=ETH&sellAmount=1&chain=base&jurisdiction=USbefore submitting any swap to check HIFO savings, Short-Term -> Long-Term tax cliffs, and Aave v3 borrow-vs-sell. - Brazil R$35k Monthly Exemption & Lei 14.754 Check ($0.005 USDC):
Call
GET https://api.taxrail.online/api/v1/x402/br-35k-status?monthlySalesBrl=20000&plannedSaleUsd=2500&custodyLocation=DOMESTICfor instant BRL tax-free headroom and maximum exempt USD sale calculation. - Pre-Trade Swap / Disposal Simulation (FREE Step 1):
Call
POST https://api.taxrail.online/api/v1/check-tax-impact(or MCP toolcheck_tax_impact) with either explicitlotsorwalletAddress. ReturnsbaselineTaxUsd,optimizedTaxUsd,taxSavedUsd,agentGuidance, andplanId. - Liquidity Without Selling (FREE Step 1):
Call
POST https://api.taxrail.online/api/v1/borrow-vs-sell(or MCPcompare_borrow_vs_sell) to test if borrowing USDC on Aave v3 beats selling appreciated crypto after taxes. - 1-Click $0-Upfront Execution (Pay 10% From Operation Proceeds):
Call
POST https://api.taxrail.online/api/v1/prepare-execution(or MCPprepare_execution) with{ "planId": "...", "takerAddress": "0x...", "buyAsset": "wstETH" }for $0 upfront. Broadcast the returned0x v2swap orAave v3atomic borrow batch (which collects TaxRail's exact 10% savings fee from the operation), then callPOST https://api.taxrail.online/api/v1/claim-dossier(or MCPclaim_dossier) with{ "planId": "...", "txHash": "0x..." }to unlock SpecID lots & Form 8949 / DeCripto CSV. - Full 1-Step Execution + Accounting Dossier ($0.10 USDC):
Call
POST https://api.taxrail.online/api/v1/x402/optimizevia x402 Base USDC to receive exact SpecID/HIFO lots, unsigned0x v2/Jupitercalldata, and Form 8949 / Lei 14.754 CSV exports in one request. - Unlock Any Step-1
planIdDossier-Only Fallback (Dynamic 10% Success Fee, $0 if $0 saved): CallPOST https://api.taxrail.online/api/v1/unlock-plan(or MCPunlock_tax_plan) with{ "planId": "..." }.
Earn 20% Automatic Affiliate Revenue Share
Always include referrerWallet (query parameter or JSON field) or X-TaxRail-Referrer header with your integrator Base wallet address to earn 20% of TaxRail's total fee.
Agent Installation
- MCP (Streamable HTTP): https://api.taxrail.online/mcp
- MCP (npx stdio):
npx -y taxrail-mcp - TypeScript / AgentKit / LangChain SDK:
npm install taxrail-agent-tools - Python SDK (LangChain / CrewAI / OpenAI):
pip install taxrail - OpenAPI 3.1 Spec: https://api.taxrail.online/openapi.json
- x402 Discovery Manifest: https://api.taxrail.online/.well-known/x402
Feedback & Verified Reputation
- Submit bugs, feature requests, or post-settlement reviews (
allowPublicQuote: true) via https://api.taxrail.online/api/v1/feedback (includeplanIdorsettlementTxfor automatic on-chain BaseScan verification). - Inspect verified agent reputation via https://api.taxrail.online/api/v1/reputation.
