TaxFi
TaxFi is a non-custodial, agentic crypto tax platform. Your multi-agent pipeline scans every wallet across Ethereum, Base, and Arbitrum, classifies every transaction with Venice AI, finds the optimal
Videos
Tech Stack
Description
π Project Overview
TaxFi is an AI-powered Crypto Tax Automation Platform that helps cryptocurrency investors automatically:
Track transactions across multiple blockchains
Calculate tax liabilities
Detect tax-loss harvesting opportunities
Generate IRS-compliant tax reports
Execute tax-saving transactions automatically
Maintain complete wallet ownership (Non-Custodial)
Core Vision
"Your Crypto Tax Agent That Pays For Itself"
Instead of charging yearly subscriptions like Koinly, CoinTracker, or TokenTax, TaxFi only takes 5% of actual tax savings generated.
π₯ Problem Statement
Crypto taxes are extremely difficult because users:
β Manual Tracking
A user may have:
500 swaps on Uniswap
200 staking rewards
50 NFT trades
Transactions on Ethereum
Transactions on Base
Transactions on Arbitrum
Tracking all manually is nearly impossible.
β Wrong Cost Basis Calculation
Suppose:
Buy | Price |
|---|---|
1 ETH | $1000 |
1 ETH | $2000 |
1 ETH | $3000 |
If user sells 1 ETH:
Which ETH was sold?
FIFO?
LIFO?
HIFO?
Different methods produce different tax liabilities.
β Missing Tax-Loss Harvesting
Example:
Bought:
100 SOL @ $200Current:
100 SOL @ $150Loss:
$5000Most users don't realize they can sell, realize the loss, reduce taxes, and rebuy later.
β Custodial Risk
Current tax tools require:
API keys
Exchange credentials
Wallet imports
Meaning:
"Trust us with your entire financial history"
TaxFi avoids this.
π‘ TaxFi Solution
TaxFi combines:
Technology | Purpose |
|---|---|
Venice AI | AI Classification |
MetaMask Smart Accounts | Permission Management |
ERC-7715 | User Authorization |
ERC-7710 | Delegated Transactions |
1Shot API | Gasless Execution |
FastAPI | Backend |
Next.js | Frontend |
Solidity | Smart Contracts |
ποΈ High Level Architecture
User Wallet
β
βΌ
Frontend (Next.js)
β
βΌ
FastAPI Backend
β
βΌ
Multi-Agent AI Pipeline
β
ββββββΌβββββ
βΌ βΌ βΌ
Venice AI
Blockchain APIs
1Shot Relayer
β
βΌ
Smart Contracts
β
βΌ
IRS Forms + Tax Savingsπ€ Multi-Agent System (Core Intelligence)
This is the heart of TaxFi.
The backend runs 6 specialized agents.
Agent 1 β Ingest Agent
Responsibility
Collect blockchain transaction history.
Sources
Ethereum
Base
Arbitrum
APIs
Covalent
Alchemy
Example
User Wallet:
Transactions:
Swap ETHβUSDC
Stake ETH
Claim Reward
Buy NFT
Bridge FundsThe Ingest Agent fetches all of them.
Output
{
"hash":"0xabc",
"chain":"Ethereum",
"from":"0x123",
"to":"Uniswap",
"method":"swap"
}Agent 2 β Classifier Agent
Responsibility
Understand what each transaction means.
Uses:
π§ Venice AI
Model:
Example Input:
{
"method":"swapExactTokensForTokens"
}Venice AI determines:
{
"category":"SWAP",
"taxable":true
}Supported Categories
Category | Meaning |
|---|---|
SWAP | Token Exchange |
AIRDROP | Free Tokens |
STAKING_REWARD | Reward Income |
LP_DEPOSIT | Liquidity Added |
LP_WITHDRAW | Liquidity Removed |
NFT_BUY | NFT Purchase |
NFT_SELL | NFT Sale |
BRIDGE | Cross-chain Transfer |
BORROW | Loan |
REPAY | Loan Repayment |
More than 20 categories supported.
Agent 3 β Cost Basis Agent
Responsibility
Calculate gains and losses.
HIFO (Default)
Highest In First Out
Example:
Bought:
1 ETH @ $1000
1 ETH @ $3000Sold:
1 ETH @ $3500HIFO chooses:
ETH bought at $3000Taxable Gain:
3500 - 3000 = $500instead of:
3500 - 1000 = $2500Huge tax savings.
Supported Methods
Method | Meaning |
|---|---|
FIFO | First In First Out |
LIFO | Last In First Out |
HIFO | Highest Cost First |
ACB | Average Cost |
SpecID | Specific Identification |
Agent 4 β Loss Detector
Responsibility
Find tax-loss harvesting opportunities.
Example
Portfolio:
SOL Loss = -$5000
ARB Loss = -$2000Potential Reduction:
Taxable Income - $7000The agent calculates:
Estimated savings
Wash sale risk
Priority score
Wash Sale Analysis
Checks:
Sold Asset
β
Bought again within 30 days?If yes:
Agent 5 β Form Generator
Responsibility
Generate tax documents.
Generated Forms
IRS Form 8949
Capital Asset Sales
Schedule D
Capital Gains & Losses
Schedule 1
Additional Income
Additional Feature
Creates:
Then stores hash on blockchain.
This creates:
Immutable Audit Trail
Nobody can modify reports later.
Agent 6 β Executor Agent
Responsibility
Execute tax-saving actions.
Uses
ERC-7710
Delegated Transactions
1Shot Relayer
Gasless transaction execution.
Flow
User Permission
β
βΌ
Agent Builds Transaction
β
βΌ
1Shot Relayer
β
βΌ
Blockchain ExecutionUser doesn't need ETH.
Gas is sponsored.
π§ Venice AI Integration
Venice AI acts as the project's intelligence engine.
Why Venice AI?
Privacy
Traditional AI:
May store data.
Venice:
Trusted Execution Environment.
Data remains protected.
Cost Efficiency
Classification of thousands of transactions becomes cheaper.
Structured Output
Returns JSON directly:
{
"category":"SWAP",
"confidence":0.95
}Perfect for automation.
π Permission Architecture
TaxFi uses a two-layer security model.
Layer 1 β ERC-7715
User β TaxFi
User grants permission.
Example:
Spend up to $100 USDC/dayTaxFi cannot exceed this.
Benefits
β Revocable
β Limited
β Time Expiry
β Chain Specific
Layer 2 β ERC-7710
TaxFi β Relayer
TaxFi creates a delegated transaction.
Relayer executes it.
Benefits
β Gasless
β Secure
β Replay Protected
π Smart Contracts
TaxFi has four major contracts.
1. AgentPermissionRegistry
Purpose
Stores permissions.
Example
User
ββ Grants
ββ PermissionTracks:
Who granted
Who received
Expiration
Amount limits
Security Features
β Revocation
β Spending Limits
β Chain Restrictions
β Target Restrictions
2. TaxFiAgentSmartAccount
Purpose
Executes harvesting operations.
Features
Rate Limiting
Authorized Executors
Emergency Pause
Replay Protection
Example
Max Daily Harvest
=
$10,000Cannot exceed limit.
3. LossHarvestVault
Purpose
Processes harvested assets.
Workflow
Token
β
Swap
β
USDC
β
Fee Deduction
β
UserRevenue Model
Harvest Savings:
$1000TaxFi Fee:
5%TaxFi earns:
$50User keeps:
$9504. TaxFormAttestor
Purpose
Store proof of tax reports.
Process
IRS Form
β
Hash PDF
β
Store Hash OnchainLater:
π¨ Frontend Architecture
Built using:
Next.js 15
React 18
TypeScript
TailwindCSS
Main Pages
Landing Page
Marketing page.
Contains:
Hero Section
Features
Pricing
Security
FAQ
Dashboard
Displays:
Opportunities
Tax Savings
Portfolio Stats
Live Updates
Portfolio
Shows:
Holdings
Gains
Losses
Open Lots
Harvest Page
Shows:
Tax-loss opportunities
Potential savings
Execute Harvest button
Reports Page
Shows:
Generated IRS Forms
Tax Summary
On-chain verification
Permissions Page
Shows:
Wallet permissions
Daily spending caps
Smart Account approvals
βοΈ Backend Architecture
Built using:
FastAPI
Python 3.11
SQLite/PostgreSQL
Major Modules
Authentication
Database
Stores:
Users
Opportunities
Ledgers
Forms
Harvest History
Monitoring
Uses:
Tracks:
Errors
Latency
Requests
Agent Performance
π End-to-End User Journey
Step 1
Connect MetaMask Wallet
β
Step 2
Grant ERC-7715 Permission
β
Step 3
Run Tax Scan
β
Step 4
Ingest Agent Collects Transactions
β
Step 5
Venice AI Classifies Transactions
β
Step 6
Cost Basis Agent Calculates Gains
β
Step 7
Loss Detector Finds Opportunities
β
Step 8
Dashboard Displays Savings
β
Step 9
User Approves Harvest
β
Step 10
Executor Agent Uses 1Shot
β
Step 11
Gasless Transaction Executes
β
Step 12
IRS Reports Generated
β
Step 13
Report Hash Stored Onchain
π° Business Model
Traditional Platforms:
$100-$500/yearEven if they save nothing.
TaxFi Model
Savings Generated
β
βΌ
Take 5%Example:
User Saves $2000
TaxFi Earns $100If savings = $0
TaxFi earns $0This aligns incentives with users.
β Why TaxFi Is Innovative
1. AI-Powered Tax Agent
Not just a calculator.
Actually reasons about transactions.
2. Non-Custodial
Users never hand over wallet control.
3. Gasless Harvesting
Powered by ERC-7710 + 1Shot.
4. Privacy-First AI
Uses Venice AI TEEs.
5. On-Chain Tax Report Verification
Very few tax platforms provide immutable proof of filings.
6. Pay-for-Performance Revenue Model
Users only pay when they save money.
π― One-Line Pitch
TaxFi is an AI-powered, non-custodial crypto tax co-pilot that automatically analyzes multi-chain transactions, discovers tax-saving opportunities, executes gasless tax-loss harvesting through smart-account permissions, and generates IRS-ready reports with on-chain auditability.
Progress During Hackathon
During the hackathon, we successfully designed and developed the core architecture of TaxFi, an AI-powered crypto tax automation platform. We implemented a multi-agent pipeline capable of ingesting blockchain transactions, classifying them using Venice AI, calculating cost basis, identifying tax-loss harvesting opportunities, and generating tax reports. We integrated MetaMask Smart Accounts, ERC-7715 permissions, and 1Shot gasless transactions to enable secure and non-custodial execution. Additionally, we built smart contracts for permission management, harvesting, and tax report attestation, while developing a modern Next.js frontend and FastAPI backend. By the end of the hackathon, we had a working end-to-end prototype demonstrating automated crypto tax analysis, harvesting recommendations, and blockchain-verified tax reporting.
Fundraising Status
na