Blockchain data API for enterprise products

Raw on-chain activity in. Business-ready DeFi positions and classified transactions out.

One REST API covering 4,200+ protocols across 25+ chains — EVM chains plus Solana and Cardano — with decoded positions with NAV and P&L, labelled transaction history, and token balances for any wallet.

Sign up with an email address. Your key comes with 4,000 free credits.

Trusted by

  • ElizaOS
  • Veris Labs
  • Siren
  • Axone
  • Ledger
  • Zerion
  • IoTeX
  • Cryptio
  • Wave Digital Assets
  • Fineqia
  • Cypher
  • Darien Advisors
  • SoftLedger
  • Pillar
  • Etherspot
  • Breezing
  • Kinto
  • etfbook
  • iknaio
  • BlockSentry
4.5M
smart contracts labelled
10M
API requests per month
4,200+
protocols covered
25+
chains supported

What you get

Three datasets, one wallet address, one integration.

DeFi positions

Decoded positions with NAV and P&L

Every open and closed position a wallet holds across lending, borrowing, staking, liquidity pools, farming, vesting, perpetuals, options and more — grouped per protocol and chain, with the underlying tokens and their USD values. For P&L-supported protocols you also get yield, rewards, transaction fees, impermanent loss and realised vs. unrealised P&L, computed from indexed on-chain events at the USD rate of each operation, not estimated.

Example fields

  • module
  • total.navUSD
  • total.supplyUSD
  • total.debtUSD
  • detailed.supply[]
  • detailed.borrow[]
  • detailed.rewards[]
  • yieldAndPnl.pnlUSD
  • yieldAndPnl.yieldUSD
  • yieldAndPnl.txFeeUSD

Who uses it

DeFi funds, fund administrators, custodians, wallet providers, data providers.

See User Insights
GET{API_BASE_URL}/api/merlin/public/userDeFiPositionsWithPnl/all/{userAddress}
{
  "module": "Lending",
  "total": {
    "supplyUSD": 152340.18,
    "debtUSD": 61200.00,
    "navUSD": 91140.18,
    "active": true
  },
  "detailed": {
    "supply": [ { "tokenSymbol": "WETH", "balanceDecimal": 42.5, "usdRate": 3584.47 } ]
  },
  "yieldAndPnl": { "pnlUSD": 6412.55, "yieldUSD": 1288.30 }
}
Illustrative — values are examples; field names follow the Positions Object documentation.

Transaction enrichment

Transactions labelled for reporting, not just listed

Every transaction a wallet has ever sent or received, returned with the movement type, the DeFi action, the counterparty protocol, the smart contract and function called, a wallet-to-wallet flag, a potential-scam flag, USD-valued fees and every inner asset movement with its own USD value. Filter by chain or by time window; fetch a single hash when you only need one.

Example fields

  • txClassification
  • txType
  • txAction
  • protocol
  • contractName
  • functionName
  • walletToWallet
  • blacklisted
  • txFeeUsd
  • balances[].balanceUSD

Who uses it

Crypto accounting software, compliance and AML teams, fund administrators, DeFi funds.

See Transaction classification
GET{API_BASE_URL}/api/merlin/public/v2/userTx/history/chain/extended/{userAddress}?chain=eth
0x9f3c…e21a 0xa9059cbb 2.0
txClassificationLP Deposit txActionLiquidity Pool protocoluniswap3 functionNamemint() balanceUSD−$7,168.94
Illustrative — values are examples; field names follow the Transactions Object documentation.

Wallet balances and activity

Holdings and behaviour across every supported chain

Native, token and NFT balances per chain or aggregated, alongside DeFi exposure, so a wallet's full net worth comes from one call. On top, wallet analytics summarise the wallet's entire history: which chains and protocols it touched, how much it bridged, swapped and transferred, how many transactions were valid, failed or scam, and when it first and last transacted.

Example fields

  • balances.token[]
  • balances.native
  • balances.nft[]
  • generalAnalytics.netWorthUsd
  • generalAnalytics.nbOfTransactions
  • chainBreakdown[]
  • protocolBreakdown[]
  • txActivityOverTime

Who uses it

Wallet providers, custodians, accounting software (client scoping), AI agent builders.

See User Insights

How it works

From block to business record in three steps.

  1. 01

    Index

    On-chain activity is indexed across 25+ chains — EVM chains plus Solana and Cardano: transfers, DeFi events, NFT movements, contract calls, with USD rates captured at execution time.

  2. 02

    Classify and enrich

    Machine-learning models identify and label smart contracts and their functions. Each transaction is assigned a movement type, a DeFi action and a classification; each position is decoded into its underlying assets, valued, and — where supported — given a full yield and P&L breakdown.

  3. 03

    Deliver

    Query by wallet address over REST, or let an agent query it through the Datai MCP server. Responses are JSON with a consistent schema across chains and protocols.

Why Datai

Built for teams that ship products, not indexers.

  • Focus on your product. Leave protocol integrations, contract labelling and USD valuation to Datai; spend your engineering on what your customers pay for.

  • One source for positions, transactions and balances. A single API and a single vendor relationship replace separate feeds for holdings, DeFi exposure and activity history.

  • Coverage that does not stop at the top ten protocols. 4,200+ protocols across 25+ chains, EVM and non-EVM (Solana, Cardano), with open and closed positions — most feeds only show what is live now.

  • Business-ready formats. USD-valued fields, labelled movement types and DeFi actions, contract and function names — data your reporting, reconciliation and compliance logic can consume without a cleaning step.

  • Keep users inside your product. Give wallet and custody users their DeFi exposure, P&L and activity history without sending them to a third-party tracker.

  • Start in minutes. Sign up by email, get a key and 4,000 free credits, test any endpoint from the API panel, then wire it into your stack with one header.

Use cases

One API, eight ways to put it to work.

Customers

In production at wallets, accounting platforms and fund issuers.

Backed by

  • [FILL] investor logo
  • [FILL] investor logo
  • [FILL] investor logo
  • [FILL] investor logo
  • [FILL] investor logo

Start with 4,000 free credits.

Get an API key by email, test every endpoint from the API panel, and talk to us when you are ready to go to production.