Skip to content
Fourohtwo

chainiq-fifo-59967844018.us-east1.run.app/api/v1/calculate-tax

ChainIQ produces a crypto cost-basis CSV from caller-authorized BTC, ETH or SOL spot trades in USD. One workpaper covers one selected method: FIFO, LIFO, HIFO or Optimized HIFO. The three comparison methods retain FIFO as the filing method.

BaseDown
POSThttps://chainiq-fifo-59967844018.us-east1.run.app/api/v1/calculate-tax

Uptime0.0% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://chainiq-fifo-59967844018.us-east1.run.app/api/v1/calculate-tax", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"authorized":true,"brokerReporting":"no-broker-form","openingAsOf":"2026-01-02T00:00:00Z","openings":[{"acquired":"2025-03-03","asset":"BTC","basisUSD":"4000","quantity":"0.5"}],"schema":"chainiq.fifo-trades.v1","taxYear":2026,"trades":[{"asset":"BTC","feeUSD":"1.25","id":"fictional-paper-sale-alpha","priceUSD":"12345.67","quantity":"0.125","side":"sell","time":"2026-02-10T12:00:00Z"}]}),
});
console.log(await res.json());

Example input

{
  "authorized": true,
  "brokerReporting": "no-broker-form",
  "openingAsOf": "2026-01-02T00:00:00Z",
  "openings": [
    {
      "acquired": "2025-03-03",
      "asset": "BTC",
      "basisUSD": "4000",
      "quantity": "0.5"
    }
  ],
  "schema": "chainiq.fifo-trades.v1",
  "taxYear": 2026,
  "trades": [
    {
      "asset": "BTC",
      "feeUSD": "1.25",
      "id": "fictional-paper-sale-alpha",
      "priceUSD": "12345.67",
      "quantity": "0.125",
      "side": "sell",
      "time": "2026-02-10T12:00:00Z"
    }
  ]
}