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

# x402 payment destination and quote

> The protocol treasury every x402 payment pays, the next round price, and the gateway's pending tickets.



## OpenAPI

````yaml gateway-openapi.yaml GET /v1/x402/status
openapi: 3.1.0
info:
  contact: {}
  description: HTTP entry point to the Molpha oracle protocol.
  title: Molpha Gateway API
  version: '1.0'
  x-mint:
    metadata:
      description: >-
        Dispatch oracle rounds, collect threshold signatures, and return
        payloads for Solana, EVM, and Starknet verification.
servers:
  - url: https://gateway.molpha.io
    description: Devnet (SDK default)
security: []
tags:
  - name: health
    x-group: Health
    description: Liveness probes
  - name: gateway
    x-group: Gateway
    description: Gateway identity and the RequestAuth window
  - name: nodes
    x-group: Nodes
    description: Oracle node discovery
  - name: providers
    x-group: Providers
    description: Integrated data providers
  - name: round
    x-group: Subscription rounds
    description: Subscription and delegate execute path
  - name: session
    x-group: Sessions
    description: >-
      Sign-In-With-X sessions (served when `GET /v1/info` reports `sessionAuth`
      true)
  - name: x402
    x-group: x402 pay-per-request
    description: >-
      Pay-per-request path paid in USDC to the protocol treasury (requires a
      configured facilitator)
paths:
  /v1/x402/status:
    get:
      tags:
        - x402
      summary: x402 payment destination and quote
      description: >-
        The protocol treasury every x402 payment pays, the next round price, and
        the gateway's pending tickets.
      parameters:
        - name: signatures_required
          in: query
          description: Quorum used for the price quote (default protocol `min_signers`)
          schema:
            type: integer
            example: 3
      responses:
        '200':
          description: x402 payment destination and quote
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/X402StatusResponse'
              example:
                gateway: GwPDA1111111111111111111111111111111111111
                authority: GwAuthority11111111111111111111111111111111
                payTo: ProtocolConfigPDA111111111111111111111111111
                treasuryAta: TreasuryAta111111111111111111111111111111
                quotedNextPrice: '1030'
                pendingTickets: 1
        '400':
          description: Invalid or out-of-range `signatures_required`
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '503':
          description: Node directory unavailable
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    X402StatusResponse:
      type: object
      description: Where x402 payments go and what the next round costs.
      properties:
        gateway:
          type: string
          description: Gateway PDA (base58).
        authority:
          type: string
          description: Gateway authority public key (base58).
        payTo:
          type: string
          description: >-
            Protocol treasury owner, the `ProtocolConfig` PDA (base58). The x402
            payee.
        treasuryAta:
          type: string
          description: USDC associated token account of the protocol treasury.
        quotedNextPrice:
          type: string
          description: >-
            Price of the next round at the requested quorum (USDC atomic units,
            decimal string).
          example: '1030'
        pendingTickets:
          type: integer
          description: This gateway's served rounds with no final ticket outcome yet.
          example: 1
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
          description: Human-readable error message.
          example: validation failed

````

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