> ## Documentation Index
> Fetch the complete documentation index at: https://nexus.gerowallet.io/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Events of several wallets

> The same page as the single-wallet read, for several stake addresses read as one set (at most 20 by default, counted after duplicates are removed). Assets moved between the listed wallets are INTERNAL_TRANSFER events, one on each side. Requires a cardano-mainnet API key.



## OpenAPI

````yaml https://nexus.gerowallet.io/v3/api-docs post /api/tax/cardano/events
openapi: 3.1.0
info:
  title: Nexus API
  description: >-
    Multi-chain blockchain data API for Cardano, Bitcoin, Solana, and Midnight.


    ## Blockchains & Networks

    Endpoints are grouped by **blockchain**. Pick the target **network** with
    the

    `network` query parameter. A network is an environment *within* a
    blockchain,

    not a separate endpoint family.


    - **Cardano**: `CARDANO_MAINNET`, `CARDANO_PREPROD`, `CARDANO_PREVIEW`

    - **Bitcoin**: `BITCOIN_MAINNET`, `BITCOIN_TESTNET4`

    - **Solana**: `SOLANA_MAINNET`, `SOLANA_DEVNET`

    - **Ethereum and Base** (EVM): `ETHEREUM_MAINNET`, `ETHEREUM_SEPOLIA`,
    `BASE_MAINNET`,
      `BASE_SEPOLIA`. The EVM routes take the network in the path instead:
      `/api/v1/evm/{ethereum|sepolia|base|base-sepolia}/...`
    - **Midnight**: `MIDNIGHT_MAINNET`, `MIDNIGHT_PREPROD`, `MIDNIGHT_PREVIEW`
      (`MIDNIGHT_STAGENET` was removed on 2026-11-30: Midnight replaced it with Preview)

    These are the values published on each operation's `network` schema, and
    what

    generated clients send. A kebab-case alias (`cardano-mainnet`) is also
    accepted,

    and matching is case-insensitive — see the note on the parameter itself.


    ### Key scope: one chain, one network

    Each API key is scoped to **one chain and one network**, fixed at creation
    time.

    A `CARDANO_MAINNET` key cannot query `CARDANO_PREPROD`, and it cannot query

    Bitcoin or Midnight at all. Create one key per chain and network under the
    same

    account. Sending a `network` value that does not match the key returns

    **400 Network Mismatch**; omit the parameter and the request runs against
    the

    key's own network.


    A Cardano address says which network it belongs to (`addr1` and `stake1` are

    mainnet, `addr_test1` and `stake_test1` are the testnets). The Cardano
    address

    and stake-account lookups answer **400 Network Mismatch** with `errorCode`

    `WRONG_NETWORK` for an address of the other kind, such as `addr_test1...` on
    a

    `CARDANO_MAINNET` key, instead of an empty result.


    What is uniform across chains is the integration surface, not the
    credential:

    one account, one base URL, one auth header, one docs site.


    ## Authentication

    Send your API key in the `X-Api-Key` header. This is the credential for

    programmatic access (create one in the dashboard; keys start with `nxs_`).

    `Authorization: Bearer <token>` is only for JWT **session** tokens issued by

    `/api/auth/login` (browser/mobile apps), not for API keys.


    A request that does not authenticate answers **401** with an `errorCode`:

    `MISSING_API_KEY` (no key was sent), `INVALID_API_KEY` (the key in
    `X-Api-Key`

    is not valid: unknown, revoked or expired),
    `API_KEY_IN_AUTHORIZATION_HEADER`

    (an `nxs_` key sent as a Bearer token), `INVALID_TOKEN` (a session token
    that

    is not valid or has expired) or `MISSING_SESSION_TOKEN` (an account endpoint

    called with no credentials; those take a session token, not an API key).


    ## Errors

    Errors are JSON: `timestamp`, `status`, `error`, `message`, `path` and

    `requestId`, plus `errorCode` where a condition has a stable code. Branch on

    `status` and `errorCode`, not on `message`.


    A path or query parameter that fails validation answers **400** and the

    `message` names it, its rule and the value received:

    `Validation failed: pageSize: Page size must not exceed 100 (received 101)`.

    `validationErrors` lists the same failures one per entry. For a request body

    the `message` is `Validation failed` and the detail is in
    `validationErrors`.


    ## Add-ons

    Capability is gated separately from network scope. Market data, wallet
    analytics,

    transaction building, MCP, and IPFS are paid add-ons; those endpoints return

    **402 Payment Required** on a key whose plan does not carry the matching
    add-on,

    even when the chain and network match.
  contact:
    name: Nexus Team
    url: https://nexus.gerowallet.io/support
    email: nexus@gerowallet.io
  license:
    name: Apache 2.0
    url: https://www.apache.org/licenses/LICENSE-2.0.html
  version: 1.0.0
servers:
  - url: https://nexus.gerowallet.io
    description: API Server
security:
  - apiKeyAuth: []
  - bearerAuth: []
tags:
  - name: Cardano · Blocks
    description: Cardano Block API
  - name: Cardano · Policy
    description: Cardano Policy API
  - name: IPFS
    description: IPFS Content Resolution API
  - name: Bitcoin · Ordinals
    description: Ordinals + runes metadata (ord indexer)
  - name: Solana · Staking
    description: Solana native staking reads
  - name: EVM · Ethereum and Base
    description: Balances, ERC-20 tokens, history, fees and broadcast for Ethereum and Base
  - name: Solana · Addresses
    description: Solana address balances, tokens and history
  - name: Partner
    description: Aggregator revenue share for partner key holders
  - name: Cardano · Metadata
    description: Label-scoped transaction metadata API
  - name: Cardano · Assets
    description: Token Registry Metadata
  - name: Cardano · Transactions
    description: Cardano Transactions API
  - name: Midnight · Transactions
    description: Midnight-specific transaction endpoints (unshielded UTXOs)
  - name: Bitcoin · Mempool
    description: Bitcoin mempool snapshot
  - name: Midnight · DUST
    description: DUST registration + generation status
  - name: Cardano · Stake Pools
    description: >-
      Cardano stake pool information including registrations, retirements, and
      pool metadata
  - name: Cardano · Network
    description: Cardano Network API - Query static network / genesis parameters
  - name: Cardano · RealFi
    description: >-
      RealFi Earn (USDr / sUSDr) read API. Wallet-keyed reads take a bech32
      address; Nexus derives the key hashes RealFi matches on. Networks without
      a RealFi deployment answer 502 rather than guessing.
  - name: Cardano · Addresses
    description: Cardano Address API
  - name: Bitcoin · Addresses
    description: >-
      Bitcoin address-keyed queries: stats / balance / UTxOs via electrs;
      ordinals via ord
  - name: Bitcoin · Transactions
    description: Bitcoin transaction lookup and submission
  - name: Solana · Chain
    description: Solana chain tip
  - name: Cardano · Governance
    description: >-
      Cardano on-chain governance: DReps, governance actions + votes,
      constitutional committee, constitution
  - name: Cardano · Tax
    description: >-
      On-chain events of Cardano wallets for reporting: transactions, staking
      rewards, fees and deposits, each with its amounts valued in ADA and a
      chosen currency.
  - name: Cardano · DReps
    description: >-
      Cardano delegate representatives (DReps): voting power, status, metadata,
      delegators
  - name: Cardano · Transaction Builder
    description: >-
      Cardano transaction building API. Builds unsigned transactions server-side
      for client-side signing and submission. Network can be specified in the
      request body or as a query parameter. Body takes precedence over query
      parameter.
  - name: Cardano · Assets
    description: Cardano Asset API
  - name: Solana · Transactions
    description: Solana transaction detail and submission
  - name: Midnight · Swaps
    description: Midnight peer-to-peer swaps
  - name: Solana · NFTs
    description: Solana NFT metadata
  - name: Cardano · Accounts
    description: Cardano Account API
  - name: Bitcoin · Fees
    description: Bitcoin fee-rate estimates by confirmation block target
  - name: Solana · Accounts
    description: Solana account state by address
  - name: Bitcoin · Blocks
    description: Bitcoin block lookup
  - name: Cardano · Handles
    description: ADA Handle resolution
  - name: Cardano Market Data
    description: Endpoints from cardano-market-data
  - name: Solana · Fees
    description: Solana fee estimates
  - name: Midnight · Indexer
    description: Transparent proxy to the Midnight GraphQL indexer
  - name: Cardano · Scripts
    description: Cardano script & datum API
  - name: Cardano · Epochs
    description: Cardano Epoch API - Query protocol parameters and epoch information
  - name: Bitcoin · Chain
    description: Bitcoin chain-tip and sync state
  - name: Midnight · Tokens
    description: Midnight token catalog
paths:
  /api/tax/cardano/events:
    post:
      tags:
        - Cardano · Tax
      summary: Events of several wallets
      description: >-
        The same page as the single-wallet read, for several stake addresses
        read as one set (at most 20 by default, counted after duplicates are
        removed). Assets moved between the listed wallets are INTERNAL_TRANSFER
        events, one on each side. Requires a cardano-mainnet API key.
      operationId: multiWalletEvents
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/TaxMultiWalletRequest'
        required: true
      responses:
        '200':
          description: One page of events
          headers:
            X-Next-Cursor:
              description: The next page's cursor; absent on the last page
              style: simple
              schema:
                type: string
            X-Window-End:
              description: 'window.toExclusive: where the window ends'
              style: simple
              schema:
                type: string
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/TaxEventsResponse'
            text/csv:
              schema:
                type: string
                description: A header row, then one row per leg
        '202':
          description: Prices are not available yet; retry after Retry-After seconds
          content:
            '*/*':
              schema:
                type: object
        '400':
          description: >-
            Invalid stake address, wallet count, network, limit, format, cursor
            or window
          content:
            '*/*':
              schema:
                type: object
        '402':
          description: 'Payment Required: the key''s plan does not carry the taxData add-on'
          content:
            '*/*':
              schema:
                type: object
        '403':
          description: Not called with an API key
          content:
            '*/*':
              schema:
                type: object
        '429':
          description: >-
            Too many requests in flight for this organization, or the chain
            reads are busy or slow; retry after Retry-After seconds
          content:
            '*/*':
              schema:
                type: object
        '503':
          description: Chain data is not ready; retry after Retry-After seconds
          content:
            '*/*':
              schema:
                type: object
components:
  schemas:
    TaxMultiWalletRequest:
      type: object
      description: >-
        Several wallets read as one set. Transfers between them are
        INTERNAL_TRANSFER events.
      properties:
        stakeAddresses:
          type: array
          description: >-
            Stake addresses (stake1...); at most 20 by default, counted after
            duplicates are removed
          items:
            type: string
        country:
          type:
            - string
            - 'null'
          description: >-
            ISO 3166 country code; sets the currency, tax-year window and time
            zone
          example: GB
        taxYear:
          type:
            - integer
            - 'null'
          format: int32
          description: The year in which the country's tax year starts
          example: 2025
        from:
          type:
            - string
            - 'null'
          description: >-
            Range start, ISO 8601 date or instant, or unix seconds; overrides
            taxYear
        to:
          type:
            - string
            - 'null'
          description: >-
            Range end (inclusive), ISO 8601 date or instant, or unix seconds;
            overrides taxYear
        currency:
          type:
            - string
            - 'null'
          description: ISO 4217 currency for valueFiat; overrides the country's
          example: EUR
        timezone:
          type:
            - string
            - 'null'
          description: IANA time zone for the window boundaries; overrides the country's
          example: Europe/London
        cursor:
          type:
            - string
            - 'null'
          description: >-
            nextCursor from the previous page; absent or empty for the first
            page
        limit:
          type:
            - integer
            - 'null'
          format: int32
          description: >-
            Transactions per page, at least 1; default 100, maximum 500 by
            default
          example: 100
        format:
          type:
            - string
            - 'null'
          description: json (default) or csv
          example: json
    TaxEventsResponse:
      type: object
      description: One page of tax events.
      properties:
        events:
          type: array
          description: Events in chain order
          items:
            $ref: '#/components/schemas/TaxEventDto'
        nextCursor:
          type:
            - string
            - 'null'
          description: Pass as cursor to read the next page; null on the last page
        currency:
          type: string
          description: The currency of every valueFiat (ISO 4217)
          example: EUR
        window:
          type: object
          additionalProperties:
            type: string
          description: >-
            {from, toExclusive, timezone}: the range this read covers; it can
            end earlier than asked, where the chain is settled
        coverage:
          type: object
          additionalProperties: {}
          description: >-
            {counts, excludes}: counts by coverage code over this page's events,
            and what is never classified
        classifierVersion:
          type: integer
          format: int32
          description: The classification rules version
          example: 2
        computedAt:
          type: string
          format: date-time
          description: When this page was built
    TaxEventDto:
      type: object
      description: >-
        One fact about one wallet: a transaction's fee, deposit, refund,
        withdrawal, order, transfer or main event, or a staking reward.
      properties:
        id:
          type: string
          description: >-
            Stable id, built only from facts that never change:
            {txHash}:{wallet}:{role} for a transaction event;
            {txHash}:{wallet}:transfer:{counterpartyWallet} for an
            INTERNAL_TRANSFER;
            reward:{wallet}:{earnedEpoch}:{rewardType}:{poolId} for a reward;
            reward:{wallet}:{earnedEpoch}:{rewardType}:-:{spendableEpoch} for a
            reward with no pool
        wallet:
          type: string
          description: The stake address the event belongs to
        network:
          type: string
          description: Always cardano-mainnet
          example: cardano-mainnet
        txHash:
          type:
            - string
            - 'null'
          description: The transaction, or null for a reward
        blockTime:
          type: string
          description: >-
            Block time (ISO 8601, UTC); for a reward, the start of the epoch it
            became spendable
          example: '2025-03-01T12:00:00Z'
        blockTimeUnix:
          type: integer
          format: int64
          description: blockTime as unix seconds
          example: 1740830400
        slot:
          type: integer
          format: int64
        epoch:
          type: integer
          format: int32
        type:
          type: string
          description: >-
            TRADE, REWARD, REWARD_WITHDRAWAL, RECEIVE, SEND, INTERNAL_TRANSFER,
            FEE, DEPOSIT, DEPOSIT_REFUND or UNCLASSIFIED
          example: TRADE
        role:
          type: string
          description: fee, deposit, refund, withdrawal, order, transfer or main
          example: main
        legs:
          type: array
          items:
            $ref: '#/components/schemas/TaxLegDto'
        trade:
          $ref: '#/components/schemas/Trade'
          type: 'null'
          description: Present on TRADE events only
        reward:
          $ref: '#/components/schemas/Reward'
          type: 'null'
          description: Present on REWARD events only
        transfer:
          $ref: '#/components/schemas/Transfer'
          type: 'null'
          description: Present on INTERNAL_TRANSFER events only
        flags:
          type: array
          description: Coverage codes that apply to this event
          items:
            type: string
        classifierVersion:
          type: integer
          format: int32
          description: The classification rules version that produced this event
          example: 1
    TaxLegDto:
      type: object
      description: One unit moving into or out of the wallet within an event.
      properties:
        direction:
          type: string
          description: '"in" (into the wallet) or "out" (out of it)'
          example: in
        unit:
          type: string
          description: '"lovelace", or policy id followed by asset name hex'
          example: lovelace
        ticker:
          type:
            - string
            - 'null'
          description: The token's ticker, or null when unknown
          example: ADA
        decimals:
          type:
            - integer
            - 'null'
          format: int32
          description: The token's decimals, or null when unknown
          example: 6
        quantityRaw:
          type: string
          description: >-
            The raw on-chain quantity, never negative (the direction carries the
            sign)
          example: '1500000'
        quantity:
          type: string
          description: >-
            quantityRaw divided by 10^decimals, exact; equal to quantityRaw when
            the decimals are unknown
          example: '1.500000'
        valueAda:
          type:
            - string
            - 'null'
          description: Value in ADA as an exact decimal string, or null when not valued
          example: '1.5'
        valueFiat:
          type:
            - string
            - 'null'
          description: >-
            Value in the response currency as an exact decimal string, or null
            when not valued
          example: '0.987654321'
        priceQuality:
          type:
            - string
            - 'null'
          description: >-
            TRADE_PRICE, POOL_PRICE, STALE_POOL_PRICE, ADA or NO_PRICE; null
            when the leg is never valued
          example: ADA
        priceTime:
          type:
            - string
            - 'null'
          description: When the price sample was taken (ISO 8601, UTC), or null
    Trade:
      type: object
      properties:
        tradeKind:
          type: string
          description: ORDER_FILL, DIRECT_SWAP or LAUNCHPAD
        venues:
          type: array
          description: The exchanges it went through, possibly empty
          items:
            type: string
        tradePriceAda:
          type:
            - string
            - 'null'
          description: Executed price in ADA as an exact decimal string, or null
    Reward:
      type: object
      properties:
        earnedEpoch:
          type: integer
          format: int32
          description: The epoch the reward was earned in
        spendableEpoch:
          type: integer
          format: int32
          description: The epoch it landed in the reward account
        rewardType:
          type: string
          description: member, leader, refund, ... as the chain records it
        poolId:
          type:
            - string
            - 'null'
          description: The pool it came from, or null
    Transfer:
      type: object
      properties:
        fromWallet:
          type: string
        toWallet:
          type: string
  securitySchemes:
    apiKeyAuth:
      type: apiKey
      description: >-
        ### API key (programmatic access — recommended)

        Send your API key in the `X-Api-Key` header. Keys start with `nxs_` and
        are

        created in the dashboard (or via **POST /api/keys** with a session JWT).


        Each key is scoped to **one chain and one network** (for example

        `CARDANO_MAINNET`), fixed at creation time. It cannot query a different
        network

        on the same chain, and it cannot query a different chain at all. A
        mismatched

        `network` parameter returns **400 Network Mismatch**. Create one key per
        chain

        and network under the same account.


        Without the header a request answers **401** `MISSING_API_KEY`; with a
        key

        that is not valid, **401** `INVALID_API_KEY`.


        This is the credential most integrations should use.
      name: X-Api-Key
      in: header
    bearerAuth:
      type: http
      description: >-
        ### JWT session token (browser / mobile apps)

        A short-lived JWT issued by `/api/auth/login` or `/api/auth/device`,
        sent as

        `Authorization: Bearer <token>`. This is the **session** credential for
        the web

        dashboard and mobile apps, not for server-to-server API access.


        For programmatic API access use an **API key** in the `X-Api-Key` header

        instead — do **not** put an `nxs_` API key in this Bearer field: that
        answers

        **401** with `errorCode` `API_KEY_IN_AUTHORIZATION_HEADER`.
      scheme: bearer
      bearerFormat: JWT

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.