Vai al contenuto
Tutte le fonti

NEAR in TaxChain

Beta

TaxChain legge NEAR ed è testato sulle sue risposte documentate e registrate, ma non è ancora stato riconciliato con dati reali. Confronta le cifre con l'estratto di NEAR prima della dichiarazione.

Questa pagina è in inglese, per dire esattamente ciò che dicono la documentazione della piattaforma e il codice di TaxChain. I titoli e il resto del sito sono nella tua lingua.

The NEAR blockchain, its coin NEAR, and Circle's USDC and Tether's USDt on it. TaxChain reads an account's full history from FastNEAR's public transaction API, by account id, with no key. Each transaction is read from the receipts it set off: NEAR attached to them, the gas the account paid, and the token events USDC and USDt logged.

Modi di importare

  • Caricamento filePotrebbe essere aggiunto

    NearBlocks transaction CSV

    NearBlocks, a NEAR explorer, exports an account's transactions as CSV: status, hash, method, NEAR attached, fee, from, to, block and time [4].

    TaxChain does not read this file. It lists transactions, not the receipts and refunds that decide what an account actually paid and received, so the account id is the better way in.

  • Connessione APINon disponibile

    None

    A blockchain has no account to connect with a key. The account is read by its id instead.

  • Indirizzo walletBeta

    FastNEAR transaction API (tx.main.fastnear.com), `/v0/account` and `/v0/transactions`

    One NEAR account id: a named account such as alice.near or alice.tg, a 64-character implicit account, an ETH-style account (0x followed by 40 characters) or a deterministic account (0s followed by 40 characters) [1]. Add each account you use as its own source.

    Top-level names with no dot (such as near) are not accepted.

    TaxChain lists every transaction that involved the account, following FastNEAR's resume token to the end, then reads each one with all its receipts, 20 at a time, oldest first [2]. If the API keeps failing it retries five times, then stops the sync rather than import part of a history.

    Every sync reads the whole history again, not only what is new. That keeps the record of NEAR staked in each pool complete, and repeated rows are skipped.

    FastNEAR's documentation asks for an API key with every request and lists paid plans [3]. TaxChain sends no key; on 20 Nov 2026 the API answered without one. If FastNEAR starts refusing keyless requests, syncs will stop with an error rather than return less.

    FastNEAR's index reaches back to 2020. Balances that existed at the network's launch (genesis) are not transactions and are not read.

Cosa viene letto

OperazioneStato
NEAR sent and receivedNEAR attached to a successful receipt to the account is a deposit; NEAR the account attached to a successful receipt to someone else is a withdrawal. A failed receipt's NEAR comes back to the sender and is not counted.Letto
Network fees (gas)When the account signed the transaction, everything the transaction burnt is a NEAR withdrawal; unused gas refunded is left out, since only what was burnt is counted [5]. The 1 yoctoNEAR a token transfer requires as a security deposit [6] is added to that withdrawal: it is spent on the call, not traded. In a relayed (meta) transaction the relayer pays the gas and the NEAR attached to your actions, and neither is charged to you; if one of those actions fails, its NEAR is refunded to you [7] and read as a deposit.Letto
Storage depositsNEAR attached to `storage_deposit` (for example to register with a token contract) is read as a withdrawal, and a storage refund as a deposit. In a transaction that also swaps tokens, NEAR that went no further than storage is a withdrawal of its own, not a side of the swap.Letto
Token transfers (NEP-141)Only Circle's USDC (contract 17208628…e36133a1) [8] and Tether's USDt (usdt.tether-token.near), from the `ft_transfer`, `ft_mint` and `ft_burn` events their own contracts log [6]. Every other token is not read, with no warning: wNEAR, liquid-staking tokens, bridged USDC.e and USDT.e, meme tokens.Letto in parte
Swaps on Ref Finance and other DEXsNEAR for USDC or USDt, either way, is one swap. A swap between NEAR and any other token shows only its NEAR side, as a withdrawal or a deposit, and a swap between another token and USDC or USDt only its USDC or USDt side. The 1 yoctoNEAR the token transfer requires is not a side of the swap.Letto in parte
Staking with a validator poolNEAR sent to a pool whose name ends in .poolv1.near or .pool.near stays yours. What the pool pays back is principal up to what you staked there, and anything beyond it is a staking reward, dated the day you withdraw it [9]. Rewards still in the pool are not read until withdrawn, and pools with other names are treated as ordinary accounts.Letto in parte
Liquid staking (stNEAR, LiNEAR and similar)NEAR sent to a liquid-staking contract is read as a withdrawal, and the token received is not read. NEAR you get back later is read as a deposit.Non letto
Wrapping NEAR (wNEAR)NEAR wrapped is read as a withdrawal, and NEAR unwrapped as a deposit. wNEAR itself is not tracked.Non letto
NEAR IntentsBalances held inside intents.near are not read. NEAR or USDC/USDt you move in reads as a withdrawal, and what comes back out as a deposit.Non letto
Lockup contractsNEAR released from a lockup contract to your account is read as an ordinary deposit, not as NEAR you already owned.Letto in parte
Deleting an accountDeleteAccount sends the remaining balance to a beneficiary [10], in a receipt from `system`. For the deleted account it is a NEAR withdrawal, and the gas refund it can no longer receive is spent with the gas; for the beneficiary it is a deposit.Letto
Contract rewardsUntil protocol 86 an account with a contract deployed earned 30% of the gas burnt running it [5]. TaxChain does not read this: FastNEAR's record of a transaction does not include the gas breakdown it would be worked out from. A contract account's NEAR reads slightly low (0.0013 NEAR over the multisig checked below). Ordinary accounts have no contract and are not affected.Non letto
NFTsNFTs are not tracked. NEAR paid for one, or received for selling one, is read as a withdrawal or a deposit.Non letto
AirdropsNEAR, USDC or USDt sent to you is read as a deposit, not as income. Other tokens are not read.Letto in parte

Limiti

  • Only NEAR, USDC and USDt are tracked. If you hold or trade other NEAR tokens, add those trades by hand.
  • A swap of another token for USDC or USDt (common in HOT Wallet and on Ref Finance) is read as a deposit of the USDC or USDt you received. The token you gave is not tracked, so the gain or loss on it is not reported and nothing flags it: add the token's side by hand.
  • Accounts synced before 21 November 2026 keep the rows stored then, since a sync does not rewrite a stored row. Such a swap was stored as a swap of 1 yoctoNEAR for the USDC or USDt, which reports the whole amount as a gain: ignore that row and add the USDC or USDt received by hand. A deleted account's balance leaving it, or reaching you as its beneficiary, is added by the next sync; the gas refund a deleted account lost (under a thousandth of a NEAR) is not.
  • Staking rewards in a pool count only when you withdraw them, and only from pools named *.poolv1.near or *.pool.near. If your country taxes rewards as they accrue, the year can be wrong.
  • NEAR you put into liquid staking, wNEAR, NEAR Intents or a token you buy counts as a disposal, and what comes back as a new purchase, unless you correct it.
  • A transaction in which the account both gave and received, and three or more of NEAR, USDC and USDt moved, stops the sync with an error naming it.
  • Every withdrawal counts as a disposal until you mark it as a transfer to a wallet of your own or match it with the deposit on the other side. That includes NEAR sent to an exchange deposit address.
  • NEAR staked in a pool does not appear in your account's balance on an explorer but stays yours in TaxChain. Compare TaxChain with your liquid balance plus what you staked.

Come è stato verificato

  • 21 novembre 2026Live, without a key, after the fixes: the full histories of eight public accounts read through TaxChain's adapter from FastNEAR, and compared with the archival RPC at a block after each one's last receipt: liquid NEAR plus principal still in staking pools, the USDC and USDt balances, and the NEAR balance at up to five points along each history. Seven reconcile exactly, to the yoctoNEAR, with USDC and USDt agreeing: quenta.near (7 transactions, 1551.6847439 NEAR in a pool) to 2.998446274801169099999999 NEAR liquid; redmile.near (11, two pools, NEAR from NEAR Intents) to 10491.558571139586374379694605 NEAR; acidrain.near (10, USDt in and out) to 0.778348155784875162434353 NEAR and 0.700842 USDT; tesseractic.tg (164, swaps through Ref Finance, relayed transactions) to 0.0113350104625 NEAR; lishchenko.near (688, USDC, USDt, token-for-USDt swaps, relayed transactions) to 0.44888250884410104749838 NEAR, with no swap of dust NEAR left; an implicit account (feccfdac…05bb7) funded with 240 NEAR and deleted, to 0; and the beneficiary of that deletion (72922668…caff, 4,408 transactions) to 20523.461026299834454538498276 NEAR. liping.near, a multisig contract, is still 0.0012879836159077 NEAR short: the contract reward on its calls to itself in 2022. Repeat with LIVE_SOURCES=1.
  • 21 novembre 2026Sixteen real mainnet transactions from six accounts, each with the account's archival balance just before and after, and a DeleteAccount: transfers, staking and withdrawing from pools, USDt in and out with storage deposits, swaps through Ref Finance, NEAR Intents withdrawals and relayed transactions. Fifteen match the balance change to the yoctoNEAR (and USDt to the unit), the two relayed ones included; the remaining one is the contract reward, kept as a failing test. The two token-for-USDt swaps read as the USDt received, the deleted account's history ends at zero and its beneficiary reads the 239.99971889665 NEAR it received, and every row keeps the id it was stored under before the fixes. Each fix was checked by putting the defect back and seeing a test fail.
  • 21 novembre 2026Relayed actions (the relayer's NEAR, a failed action's deposit refunded to the user, NEAR the relayer staked for the user), the 1 yoctoNEAR security deposit spent rather than traded, NEAR paid only for storage not read as a swap leg, and account ids against the shared address form (ETH-style and deterministic accounts accepted).
  • 20 novembre 2026Before the fixes: the same five accounts' histories, three exact and two short by the deposits relayers paid (1 and 17 yoctoNEAR); a token-for-USDt swap read as a swap of 1 yoctoNEAR; the deleted account still holding 239.9999488903 NEAR in TaxChain against 0 on chain.
  • 19 novembre 2026Gas from every outcome, refunds from system left out, a failed send's deposit not counted, USDt by Tether's contract's events, staking principal and reward, paging by resume token and stopping on an API that keeps failing.

Cosa lo renderebbe Verificato

A chain is Verified when a public address's full history, read through TaxChain, reconciles to its live balance. Seven NEAR accounts do, to the yoctoNEAR, with staking, USDC, USDt, NEAR Intents, relayed transactions, token-for-USDt swaps and a deleted account in them. The balance bar is met, and the defects that hid behind a reconciled balance (a token-for-USDt swap read as a swap of 1 yoctoNEAR) or broke it (relayer-paid deposits, deleted accounts) are fixed.

What is left before promoting it:

  • Rows stored before 21 November 2026 are not rewritten by a sync: token-for-USDC/USDt swaps stored as swaps of 1 yoctoNEAR need removing from existing accounts before they can be relied on.
  • The contract reward on accounts with a deployed contract (until protocol 86) is not read; it needs a source for each receipt's gas breakdown, or the page and the sync saying so for contract accounts.
  • Rewards still inside a staking pool are read only when withdrawn, and only from pools named *.poolv1.near or *.pool.near.

To widen it later: read other NEP-141 tokens (wNEAR first), liquid-staking tokens and NEAR Intents balances.

Come aggiungerlo

  • In your wallet (HOT, Meteor, MyNearWallet, Ledger or another), copy your account id: a name such as alice.near, or a 64-character implicit account. You can check it on an explorer such as NearBlocks [4].
  • In TaxChain, open Wallets, choose Add source, pick NEAR and paste the account id.
  • Repeat for every account you use.
  • After the sync, add the token side of swaps of other tokens for USDC or USDt, mark withdrawals to your own wallets and exchanges as transfers, and compare your NEAR in TaxChain with your liquid balance plus what you staked.

Riferimenti

  1. [1]Account ID. NEAR documentation. Named, NEAR-implicit (64 hex), ETH-implicit (0x + 40 hex) and deterministic (0s + 40 hex) accounts.
  2. [2]Transactions API. FastNEAR. Account history paged by an opaque resume_token; transactions by hash, up to 20 per request.
  3. [3]Pricing & Limits. FastNEAR. Keyed plans and per-key rate limits; the documentation does not say what keyless requests are allowed.
  4. [4]NearBlocks. NearBlocks. Explorer; its API's /v1/account/{id}/txns/export answered a keyless request with a transactions CSV on 20 Nov 2026.
  5. [5]Gas. NEAR documentation. The signer pays; unused gas is refunded; contracts received 30% of gas burnt through protocol 86, none from protocol 87.
  6. [6]Fungible tokens. NEAR documentation. Track NEP-141 transfers by EVENT_JSON logs, authenticating the contract that executed them; balances by ft_balance_of.
  7. [7]NEP-366: Meta transactions. NEAR Enhancement Proposals. A relayer submits the user's signed DelegateAction and pays its gas. On chain the relayer also paid the attached deposit: the user's archival balance did not move.
  8. [8]USDC contract addresses. Circle. NEAR mainnet: 17208628f84f5d6ad33f0da3bbbeb27ffcb398eac501a31bd6ad2011e36133a1.
  9. [9]Staking. NEAR documentation. Delegation to staking-pool contracts; unstake, then withdraw after four epochs; get_account_total_balance is staked plus unstaked.
  10. [10]Actions. NEAR Protocol Specification (nomicon). DeleteAccountAction transfers the remaining balance to beneficiary_id; Transfer moves a deposit from predecessor to receiver.

Ultimo controllo sulla documentazione della piattaforma e sul codice di TaxChain il 21 novembre 2026.