# Transaction · HyperEVM API · Femtos

> One transaction: status, gas, decoded transfers, swaps and liquidity, bridge legs and journey.

- Base URL: `https://api.femtos.xyz/v1` (REST) · `wss://api.femtos.xyz/v1/ws` (WebSocket) · MCP: `https://api.femtos.xyz/mcp`
- Auth: `Authorization: Bearer $FEMTOS_KEY`. Free key: https://femtos.xyz/accounts/ (browser), or with
  no browser: `GET https://femtos.xyz/accounts/agent/challenge`, solve its proof of work, then `POST https://femtos.xyz/accounts/agent/signup`
  (https://femtos.xyz/agents.md#agent-onboarding)
- Decimals are exact strings, times Unix milliseconds, addresses lowercase `0x`
- Whole API in one file: https://femtos.xyz/agents.md · OpenAPI: https://api.femtos.xyz/v1/openapi.json · Index: https://femtos.xyz/llms.txt
- Page with live calls: https://femtos.xyz/hyperevm/tx

## Transaction — GET `/v1/tx/{hash}`

One transaction: status, gas, decoded transfers, swaps and liquidity, bridge legs and journey.

| Param | In | Example or values | Meaning |
|---|---|---|---|
| `hash` | path | (optional) | Transaction hash (0x + 64 hex) |
| `layer` | query | `(empty)`, `hyperevm`, `elysium` | Only this layer (default: HyperEVM, then Elysium) |

```bash
curl -H "Authorization: Bearer $FEMTOS_KEY" "https://api.femtos.xyz/v1/tx/?layer=hyperevm"
```

| Field | Type | Meaning |
|---|---|---|
| `status` | success \| reverted \| null |  |
| `block` | int \| null | Block |
| `from` | string \| null | Sender |
| `to` | string \| null | Recipient (null: contract creation) |
| `value` | decimal \| null | Native value (HYPE) |
| `source` | indexer \| rpc | indexer: our tables (decoded); rpc: not indexed (yet), the node's transaction, nothing decoded |
| `gas` | object | {limit, used, price, baseFee, feeRaw, fee, feeUsd} |
| `transfers[]` | object | ERC-20 transfers: {logIndex, token, symbol, decimals, from, to, amount, amountRaw, spam, spamReason} |
| `swaps[]` | object | Swaps: {logIndex, pair, dex, side, base, quote, baseAddress, quoteAddress, sz, vq, px, usd, …} |
| `liquidity[]` | object | Liquidity added / removed: {logIndex, kind, dex, pool, provider, amount0Raw, amount1Raw, usd, liquidityDelta} |
| `poolsCreated[]` | object | Pools created: {logIndex, dex, pool, factory} |
| `nfts[]` | object | NFT transfers: {logIndex, collection, standard, kind, tokenId, from, to} |
| `logs` | object \| null | From our node's receipt (raw logs); null when no node is configured: {total, decoded, undecoded, undecodedTotal, source, error} |
| `bridge` | object \| null | When the transaction is a bridge leg: `legs` (leg tables at its block: route core_evm / evm_elysium, direction, account, amountRaw), `rows` (the account's matched rows of /api/bridges that cite it, 7 days), `journeys` (the cross-layer journeys Core → HyperEVM → Elysium or back it is a hop of). null: not a bridge leg. |

## Related (Market data)

- [Markets](https://femtos.xyz/hyperevm/markets.md): Active HyperEVM pools with 24 h stats.
- [Candles](https://femtos.xyz/hyperevm/candles.md): OHLCV of one pool in pair price, USD and market cap, ascending, UTC-aligned.
- [Forming candle](https://femtos.xyz/hyperevm/ws-candles.md): The forming candle, pushed once per block where it changes.
- [Trades](https://femtos.xyz/hyperevm/trades.md): Latest swaps of one pool, newest first.
- [Trades stream](https://femtos.xyz/hyperevm/ws-trades.md): The swaps of one pool, one message per block that has some.
- [Swaps by wallet](https://femtos.xyz/hyperevm/wallet-trades.md): Every swap a wallet sent (or a pool’s, a token’s), newest first, filterable by token, side, size and time.
- [Transfers by wallet](https://femtos.xyz/hyperevm/wallet-transfers.md): ERC-20 transfers sent and received by a wallet, newest first, filterable by token, direction, size and time.
- [Pool detail](https://femtos.xyz/hyperevm/pool.md): One pool: dex, fee, tokens, liquidity in USD, depth, 5m to 24h activity, top LPs.
- [Token prices](https://femtos.xyz/hyperevm/prices.md): USD price of up to 100 tokens in one call, each with its source and provenance.
- [Price history](https://femtos.xyz/hyperevm/price-history.md): USD closes per unit of up to 25 tokens over a window, or the price of 100 tokens at one time (at=).
- [Token candles](https://femtos.xyz/hyperevm/token-candles.md): OHLCV of a token in USD through its reference pool, the most liquid one.

All HyperEVM endpoints: https://femtos.xyz/hyperevm.md
