微算力 · API 导航与自营网关
API 接入 EN
未登录登录
📊

XPR链上税务自动申报专家

XPR Crypto Tax · v0.2.11
专业技能 安全 A 级 作者 paulgnz 公开目录收录
1.2k 下载 0 安装 2.8k 收藏 6 浏览

简介

专业加密税务申报工具,支持新西兰和美国税务年度计算,自动分类链上交易,生成合规报告,包含FIFO/Average Cost成本基础方法。

原始描述

Generate detailed crypto tax reports for XPR Network activity with support for New Zealand and United States regional tax rules and cost basis methods.

通过你的 Agent 添加

点「快速安装」复制一段指令,粘给你正在用的 Agent(Claude Code、Codex、OpenClaw 等),它会自己完成安装。

或者手动安装

Claude Codeunzip -o skill.zip -d ~/.claude/skills/xpr-crypto-tax/
其它 Agent解压到它自己的 skills 目录,目录名用 xpr-crypto-tax

包里是 SKILL.md 加作者附带的文件,解压后目录名就是技能名。 技能申请的权限由作者决定,装之前请确认它能读什么、能执行什么。

中文使用说明 来自收录源

核心用法

XPR Network Tax Reporting 是一套针对 XPR Network 链上活动的自动化加密税务申报解决方案,专为新西兰和美国纳税人设计。用户通过序列化工具调用完成完整税务报告:首先获取期初/期末余额快照,然后提取 Metal X DEX 交易历史、链上转账记录(自动分类为质押奖励、借贷利息、NFT 交易等),接着获取代币汇率数据,计算资本利得或收入,最终生成包含税级计算和免责声明的完整 Markdown 报告。

支持一键生成报告(tax_generate_report)或分步精细控制。所有工具均为只读查询,不涉及任何链上交易签名。

显著优点

  1. 区域税务合规深度适配:针对新西兰(4-3月税务年度、无资本利得税、收入征税制)和美国(日历年、长短资本利得区分)的税制差异进行专门设计,内置 2024 年美国单身申报者联邦税级。

  2. 智能交易分类:通过 sender/receiver 合约地址自动识别 15+ 种交易类型,包括质押奖励、长期质押收益、借贷存取及利息、DEX 出入金、NFT 买卖等,大幅减少手动对账工作。

  3. 多源价格发现机制:优先使用 DEX 交易对推导价格(无 API 限制),其次前向填充,CoinGecko 作为补充(支持 API Key 解除 365 天限制),稳定币采用外汇汇率直接转换。

  4. 可审计输出:生成 Markdown 报告的同时提供 CSV 导出(处置事件、收入事件),满足新西兰 IRD 7 年记录保存要求。

潜在缺点与局限性

  • 数据完整性限制:仅包含已成交的 DEX 订单(不含挂单)、NFT 仅支持买卖(不含拍卖)、Metal Lending 清算未覆盖、托管支付跟踪但分类不完整。
  • 历史价格依赖:价格准确性取决于 DEX 交易活跃度与 CoinGecko 数据可用性,低流动性代币可能存在定价偏差。
  • 区域覆盖有限:当前仅正式支持 NZ/US,其他区域需手动传入 region 参数(默认 NZ)。
  • 美国税务简化:未包含州税、NIIT(净投资所得税),仅使用单身申报者联邦税级。

适合人群

  • 在新西兰或美国纳税的 XPR Network 活跃用户
  • 参与 Metal X DEX 交易、XPR 长期质押、LOAN 质押、Metal Lending 的 DeFi 用户
  • 需要自动化成本基础计算(FIFO/Average Cost)的加密货币投资者
  • 寻求可审计税务记录以满足合规要求的个人纳税人

常规风险

  • 非专业税务建议:报告包含明确免责声明,不构成税务或法律建议,复杂情况仍需咨询持牌税务顾问。
  • 数据准确性依赖第三方 API:Saltant、Metal X、Hyperion、CoinGecko 的服务可用性与数据质量直接影响报告准确性。
  • 遗漏交易风险:自动分类依赖合约地址匹配,新型协议或自定义合约可能未被识别。
  • 汇率波动:跨境纳税人需注意 NZD/USD 汇率转换时点与税务申报要求的匹配。

技能正文


name: tax description: Crypto tax reporting for XPR Network with regional support

Crypto Tax Reporting

You have tools to generate crypto tax reports from on-chain XPR Network activity. Supports New Zealand (NZ) and United States (US).

Key Facts

  • NZ tax year: April 1 – March 31 (e.g. "2025" = Apr 2024 – Mar 2025)
  • US tax year: January 1 – December 31 (calendar year, e.g. "2024" = Jan 2024 – Dec 2024)
  • NZ has NO capital gains tax — all crypto gains are taxed as income if you're a regular trader
  • US HAS capital gains tax — short-term (<1 year) taxed as ordinary income, long-term at lower rates. Uses 2024 Single filer federal brackets. Does not include state taxes or NIIT.
  • Cost basis methods: FIFO (first-in-first-out) or Average Cost
  • All tools are read-only — they query APIs and calculate, never transact
  • Default region is NZ — pass region: "US" for US tax reports

Typical Workflow

For a full tax report, the recommended sequence is:

  1. tax_get_balances — opening balances (start of tax year) and closing balances (end of tax year)
  2. tax_get_dex_trades — all Metal X DEX trading history for the period
  3. tax_get_transfers — on-chain transfers, auto-categorized (staking rewards, lending, swaps, NFT sales, etc.)
  4. tax_get_rates — local currency conversion rates for each token
  5. tax_calculate_gains — compute taxable gains/losses using FIFO or Average Cost
  6. tax_generate_report — full report with tax brackets and estimated tax

Or use tax_generate_report directly for a one-shot report that orchestrates all steps automatically.

Data Sources (Mainnet Only)

  • Saltant API — historical balance snapshots (liquid, staked, lending, yield farm)
  • Metal X API — DEX trade history in CSV format (only filled trades)
  • Hyperion API — raw on-chain transfer/action history
  • CoinGecko API — historical and current crypto prices (set COINGECKO_API_KEY in .env for full historical access)

Transfer Categories

Transfers are auto-categorized by sender/receiver:

Category Detection
staking_reward from eosio or eosio.vpay
lending_deposit to lending.loan
lending_withdrawal from lending.loan
lending_interest from lending.loan with interest memo
swap_deposit to proton.swaps
swap_withdrawal from proton.swaps
long_stake to longstaking (XPR long staking)
long_unstake from longstaking
loan_stake to lock.token or yield.farms (LOAN/SLOAN staking)
loan_unstake from lock.token or yield.farms
dex_deposit to dex or metalx
dex_withdrawal from dex or metalx
nft_sale from atomicmarket
nft_purchase to atomicmarket
burn to eosio.null (token burn = realized loss)
escrow to/from agentescrow
transfer everything else

Staking Income Rules

  • Block producer rewards (staking_reward): Full amount is income at time of receipt
  • Long staking (XPR via longstaking): Only the excess over the staked amount is income. E.g. stake 100 XPR, unstake 150 XPR → income of 50 XPR
  • LOAN staking (via lock.token/yield.farms): Same excess-only rule as long staking
  • Lending interest: Full amount from lending.loan with interest memo is income

Stablecoin Handling

XUSDC and XMD are pegged to USD — their local currency value uses forex rates (USD/NZD) directly, without CoinGecko. This is more accurate than market-based pricing for stablecoins.

Rate Sources (Priority Order)

  1. DEX trades — derives token prices from TOKEN/XMD trade ratios (most accurate, no API limits)
  2. Forward-fill — gaps between DEX trade dates use nearest prior known rate
  3. CoinGecko — fallback for dates with no DEX data. Without API key: limited to 365 days. With COINGECKO_API_KEY: unlimited history
  4. Forex — stablecoins use USD→NZD conversion rate

Delivering the Report

tax_generate_report returns a report_markdown field — a pre-formatted Markdown document with balance sheets, trading summary, income breakdown, tax brackets, and disclaimer. To deliver it:

  1. Upload report_markdown via store_deliverable with content_type: "application/pdf" — this is the primary deliverable
  2. Upload csv_exports.disposals via store_deliverable with content_type: "text/csv" — disposals CSV
  3. Upload csv_exports.income via store_deliverable with content_type: "text/csv" — income events CSV
  4. Call xpr_deliver_job with ALL URLs comma-separated (PDF first): "https://ipfs.io/ipfs/QmPDF...,https://ipfs.io/ipfs/QmDisposals...,https://ipfs.io/ipfs/QmIncome..."

IMPORTANT: You MUST complete ALL steps (upload + deliver) in a single run. Do NOT stop after uploading the PDF — you must also upload the CSVs and call xpr_deliver_job. The job is not complete until xpr_deliver_job is called.

The frontend displays the primary file (PDF) prominently and lists additional files as download links.

Known Limitations

  • Only filled DEX trades are included (not pending orders)
  • NFT: only buy/sell supported (not auctions)
  • Liquidations on Metal Lending are not supported
  • Escrow payments are tracked but not fully categorized
  • Historical pricing accuracy depends on DEX trade activity and CoinGecko data availability

Important Notes

  • Always include the disclaimer from the report — this is not tax advice
  • Suggest users save CSV exports for the IRD 7-year record requirement
  • The region parameter defaults to "NZ" on all tools — pass a different region code when other regions are added
  • Set COINGECKO_API_KEY in .env for best historical pricing (free Demo key removes 365-day limit)
  • For tokens not on CoinGecko, the tool derives prices from Metal X DEX trade ratios

正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。

标签

crypto-taxxpr-networktax-reportingaccountingdefinew-zealandunited-statesfifocost-basismetal-xprotoncompliance

同类 Skill