360 Secure SkillHub
360 安全技能中心

TaxRail Crypto Tax

通过 TaxRail API 对钱包或交易批次进行加密税负分析,计算 TLH/HIFO 节税、1099-DA 与巴西 Lei 14.754 影响,并生成 0x/Aave 执行 calldata、planId 和税务凭证;支持 MCP 与 x402 付费调用。

分类:数据
samuelaguiar12
samuelaguiar12
热度 20.94
最近更新 2026-11-30 20:10:36

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add samuelaguiar12/taxrail-crypto-tax
兼容性
通用兼容
联网要求
需要联网
数据出网
必须出网
Metadata
name
taxrail-crypto-tax
version
0.3.1
description
Dec 31 2026 IRS 1099-DA TLH & Brazil Lei 14.754 crypto tax optimization — $0 upfront 1-click 0x v2 / Aave v3 execution paying 10% of verified tax savings inside the tx + 20% automatic on-chain affiliate revshare (referrerWallet).
author
SamuelAguiar12
homepage
https://api.taxrail.online
tags
["crypto-tax","defi","x402","base","usdc","irs-1099-da","tax-loss-harvesting","brazil-lei-14754","aave-v3","wallet-scanner"]
compatibility
["claude-code","codex","openclaw","cursor","windsurf"]
metadata
{"openclaw":{"emoji":"🧾","homepage":"https://api.taxrail.online","primaryEnv":"TAXRAIL_BASE_URL"}}

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

  1. 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=US via 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 unlockable planIds.
  2. 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=US before submitting any swap to check HIFO savings, Short-Term -> Long-Term tax cliffs, and Aave v3 borrow-vs-sell.
  3. 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=DOMESTIC for instant BRL tax-free headroom and maximum exempt USD sale calculation.
  4. Pre-Trade Swap / Disposal Simulation (FREE Step 1): Call POST https://api.taxrail.online/api/v1/check-tax-impact (or MCP tool check_tax_impact) with either explicit lots or walletAddress. Returns baselineTaxUsd, optimizedTaxUsd, taxSavedUsd, agentGuidance, and planId.
  5. Liquidity Without Selling (FREE Step 1): Call POST https://api.taxrail.online/api/v1/borrow-vs-sell (or MCP compare_borrow_vs_sell) to test if borrowing USDC on Aave v3 beats selling appreciated crypto after taxes.
  6. 1-Click $0-Upfront Execution (Pay 10% From Operation Proceeds): Call POST https://api.taxrail.online/api/v1/prepare-execution (or MCP prepare_execution) with { "planId": "...", "takerAddress": "0x...", "buyAsset": "wstETH" } for $0 upfront. Broadcast the returned 0x v2 swap or Aave v3 atomic borrow batch (which collects TaxRail's exact 10% savings fee from the operation), then call POST https://api.taxrail.online/api/v1/claim-dossier (or MCP claim_dossier) with { "planId": "...", "txHash": "0x..." } to unlock SpecID lots & Form 8949 / DeCripto CSV.
  7. 1-Step Quick Quote + 1-Click $0-Upfront Execution Prep ($0.10 USDC): Call POST https://api.taxrail.online/api/v1/x402/optimize via x402 Base USDC to compute the optimal HIFO/TLH plan and receive ready-to-sign $0-upfront execution calldata (10% fee embedded inside the tx; call POST /api/v1/claim-dossier with txHash for $0 afterward to unlock SpecID lots & Form 8949 / DeCripto CSV). For tiny savings (<= $1), the full dossier unlocks immediately.
  8. Unlock Any Step-1 planId Dossier-Only Fallback (Dynamic 10% Success Fee, $0 if $0 saved): Call POST https://api.taxrail.online/api/v1/unlock-plan (or MCP unlock_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

Feedback & Verified Reputation