> ## 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.

# Diagnose this partner key

> Answers with everything wrong with the key you just presented and this request,
instead of refusing. Each entry in `problems` carries a stable code, a message
about your own system and the action that fixes it; an empty `problems` array
means nothing is wrong.

Call it with the same key and through the same path your integration uses, so
the answer describes your real setup. In particular, if you proxy Nexus through
your own backend, call this through that proxy: a server-proxied embed must
forward the browser's `Origin` header unchanged, and this is what tells you
whether yours does.

The response never returns the origins registered on the key (only how many) and
never returns the payout address (only whether it is set and payable), because
in a browser-direct embed the key is readable by anyone who opens your page
source.



## OpenAPI

````yaml https://nexus.gerowallet.io/v3/api-docs get /api/aggregator/partner/self-check
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`

    - **Midnight**: `MIDNIGHT_MAINNET`, `MIDNIGHT_PREPROD`, `MIDNIGHT_PREVIEW`,
      `MIDNIGHT_STAGENET` (deprecated, removed no earlier than 2026-12-08)

    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.


    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.


    ## 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 · 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 · 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: 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
paths:
  /api/aggregator/partner/self-check:
    get:
      tags:
        - Partner
      summary: Diagnose this partner key
      description: >-
        Answers with everything wrong with the key you just presented and this
        request,

        instead of refusing. Each entry in `problems` carries a stable code, a
        message

        about your own system and the action that fixes it; an empty `problems`
        array

        means nothing is wrong.


        Call it with the same key and through the same path your integration
        uses, so

        the answer describes your real setup. In particular, if you proxy Nexus
        through

        your own backend, call this through that proxy: a server-proxied embed
        must

        forward the browser's `Origin` header unchanged, and this is what tells
        you

        whether yours does.


        The response never returns the origins registered on the key (only how
        many) and

        never returns the payout address (only whether it is set and payable),
        because

        in a browser-direct embed the key is readable by anyone who opens your
        page

        source.
      operationId: selfCheck
      parameters:
        - name: Origin
          in: header
          required: false
          schema:
            type: string
      responses:
        '200':
          description: The diagnosis, problems included
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/PartnerSelfCheckResponse'
        '400':
          description: >-
            Called with a browser session rather than an API key; use GET
            /api/keys/{keyId}/partner/self-check instead
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/PartnerSelfCheckResponse'
        '401':
          description: No key, or a key that does not exist, is revoked, or has expired
          content:
            '*/*':
              schema:
                $ref: '#/components/schemas/PartnerSelfCheckResponse'
components:
  schemas:
    PartnerSelfCheckResponse:
      type: object
      description: >-
        Diagnosis of a partner key: its configuration, and every reason a
        request with it would be refused.
      properties:
        key:
          $ref: '#/components/schemas/Key'
          description: Identity of the key the diagnosis is about.
        origin:
          $ref: '#/components/schemas/Origin'
          description: The Origin this request presented, and how it relates to the key.
        embedMode:
          type: string
          description: >-
            Which embed topology this request came from, derived from whether an
            Origin header was presented: browser-direct or server-proxied. Null
            on the dashboard, which is neither.
          example: browser-direct
        scope:
          $ref: '#/components/schemas/Scope'
          description: The endpoint allowlist stamped on the key.
        entitlements:
          $ref: '#/components/schemas/Entitlements'
          description: Add-on grants carried by the key itself.
        fee:
          $ref: '#/components/schemas/Fee'
          description: The partner fee configuration on the key.
        routePolicy:
          type: array
          description: Per-token venue restrictions, if any.
          items:
            $ref: '#/components/schemas/RoutePolicyRule'
        problems:
          type: array
          description: >-
            Everything wrong with this key or this request. Empty means nothing
            is wrong, which is itself the answer.
          items:
            $ref: '#/components/schemas/Problem'
    Key:
      type: object
      description: Which key this is. Never the key itself, only its public prefix.
      properties:
        prefix:
          type: string
          description: The key's public prefix, the same value the dashboard shows.
          example: nxs_ab12cd34
        publicPartner:
          type: boolean
          description: >-
            True when this is a public partner key (widget surface,
            origin-bound). False for an ordinary API key.
        preview:
          type: boolean
          description: True for an ephemeral dashboard widget-preview token.
        enabled:
          type: boolean
          description: False when the key has been revoked or suspended.
        network:
          type: string
          description: The network the key is scoped to.
          example: CARDANO_MAINNET
    Origin:
      type: object
      description: The request's Origin, and the key's registered origins.
      properties:
        presented:
          type: string
          description: >-
            The Origin header on this request. Absent when none was sent, and
            always absent on the dashboard endpoint.
          example: https://app.partner.com
        registered:
          type: boolean
          description: >-
            Whether the presented Origin is registered on this key. Null when
            there was no Origin to check.
        registeredCount:
          type: integer
          format: int32
          description: >-
            How many origins are registered on the key. The list itself is never
            returned to a caller who only holds the key.
          example: 2
        allowedOrigins:
          type: array
          description: >-
            The registered origins. Returned only to the key's owner over a
            browser session, never to a caller presenting the key.
          items:
            type: string
    Scope:
      type: object
      description: The endpoint allowlist stored on the key.
      properties:
        allowedPaths:
          type: array
          description: The Ant patterns the key may reach. Null for an unscoped key.
          items:
            type: string
        surfaceComplete:
          type: boolean
          description: >-
            True when the stored allowlist is the current partner gateway
            surface. False means the key was issued before the surface last grew
            and missed the backfill, which refuses the widget's reads.
    Entitlements:
      type: object
      description: Add-on grants carried by the key itself.
      properties:
        transactionBuilder:
          type: boolean
          description: >-
            The key's own transactionBuilder grant: true granted, false denied,
            null when the key inherits from the owner's subscription instead.
    Fee:
      type: object
      description: The partner fee configured on the key.
      properties:
        enabled:
          type: boolean
          description: Master switch. When false no partner fee is taken at all.
        bps:
          type: integer
          format: int32
          description: Margin in basis points (1 bps = 0.01%).
          example: 300
        fixedLovelace:
          type: integer
          format: int64
          description: Fixed fee in lovelace, null for none.
          example: 1200000
        maxLovelace:
          type: integer
          format: int64
          description: Cap on the total fee in lovelace, null for none.
        payoutAddressSet:
          type: boolean
          description: Whether a payout address is stored on the key.
        payoutAddressValid:
          type: boolean
          description: >-
            Whether the stored payout address is a valid Cardano address on the
            key's own network (mainnet address on a mainnet key, testnet address
            on a preprod key). False means accruals cannot be paid out.
        payoutFrequency:
          type: string
          description: 'Payout cadence: daily or monthly.'
          example: monthly
        payoutAddress:
          type: string
          description: >-
            The payout address. Returned only to the key's owner over a browser
            session, never to a caller presenting the key.
    RoutePolicyRule:
      type: object
      description: >-
        Restricts one token to a fixed set of DEXes. Absent tokens route
        normally.
      properties:
        unit:
          type: string
          description: 'Asset unit: policyId + assetNameHex'
          example: >-
            f71b4cf652d8edb33a57928b8b8a546a3c954b7ba24db5583ac79b34534f4e474d41524b4554434150
          minLength: 1
          pattern: ^[0-9a-fA-F]{56,}$
        allowedDexes:
          type: array
          description: DEX identifiers this token may be routed through
          example:
            - SPLASH
          items:
            type: string
          maxItems: 16
          minItems: 0
      required:
        - allowedDexes
        - unit
    Problem:
      type: object
      description: One named thing that is wrong, what it means, and how to fix it.
      properties:
        code:
          type: string
          description: >-
            A fixed, documented code. The whole set is listed on
            PartnerSelfCheckService.PROBLEM_CODES.
          example: ORIGIN_NOT_REGISTERED
        severity:
          type: string
          description: error, warning or info.
          example: error
        message:
          type: string
          description: What is wrong, stated about the caller's own system.
        fix:
          type: string
          description: The action that fixes it.
  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.


        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.
      scheme: bearer
      bearerFormat: JWT

````

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