openapi: 3.1.0
info:
  title: Veylor public testnet bridge API
  version: '1'
  description: Wallet integration on Zcash testnet and Ethereum Sepolia. POST bodies use JSON. Time fields use seconds;
    token quantities use integer base units.
servers:
- url: https://api-testnet.veylor.cash
tags:
- name: Discovery
- name: Forward swaps
- name: Reverse swaps
- name: Deposits and transfers
paths:
  /maker/healthz:
    get:
      tags:
      - Discovery
      operationId: checkMaker
      summary: Maker health
      description: Check whether the maker watchtower recently completed a pass.
      responses:
        '204':
          description: Recent successful watchtower pass. Empty response body.
        '503':
          $ref: '#/components/responses/Unavailable'
        default:
          $ref: '#/components/responses/ServiceError'
  /maker/v1/info:
    get:
      tags:
      - Discovery
      operationId: getMakerInfo
      summary: Maker info
      description: Identify the maker, networks, token, escrow and supported direction.
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/MakerInfo'
              example:
                apiVersion: 1
                maker: '0x2bac02b5032e9092493814c705f156b49e288922'
                chainId: 11155111
                contract: '0x62ce626c5a30528b8ee33145d491785082a6cf8a'
                contractKind: windows
                minWindow: 1800
                lateWindow: 3600
                token: '0x64c4a5cb09fe0b706d4cf24dc0a45fff275d727c'
                zcashNetwork: testnet
                reverseEnabled: true
        '503':
          $ref: '#/components/responses/Unavailable'
        default:
          $ref: '#/components/responses/ServiceError'
  /relayer/v1/terms:
    get:
      tags:
      - Discovery
      operationId: getRelayerTerms
      summary: Relayer terms
      description: Read current fees and enabled relayer services.
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RelayerTerms'
              example:
                relayer: '0xd9633572041886fa7584a2e12f36c8c7f1126412'
                chainId: 11155111
                contract: '0x62ce626c5a30528b8ee33145d491785082a6cf8a'
                contractKind: windows
                minWindow: 1800
                lateWindow: 3600
                fee: '100000'
                feeExpiresAt: 1795997487
                reverseFunding:
                  relayAdapt: '0x7e3d929ebd5bdc84d02bd3205c777578f33a214d'
                  token: '0x64c4a5cb09fe0b706d4cf24dc0a45fff275d727c'
                  maker: '0x2bac02b5032e9092493814c705f156b49e288922'
                  maxGasLimit: 4000000
                  maxGasPriceWei: '20000000000'
                  maxCalldataBytes: 65536
                  fee: '250000'
                railgunSends:
                  railgunAddress: 0zk1qy25r4x4qjhtlfe0k9z22jy9psfm83j4k4fgvqs3pmv4he4ytefm8rv7j6fe3z53lltumh8amd66g2axaej92dmjk6mvnuveqtmmwccdm593pft827p4xpwljug
                  railgunProxy: '0xecfcf3b4ec647c4ca6d49108b311b7a7c9543fea'
                  token: '0x64c4a5cb09fe0b706d4cf24dc0a45fff275d727c'
                  fee: '500000'
                  feePerUnitGas: '1791697989'
                  feeExpiresAt: 1795994487
                  maxGasLimit: 3000000
                  maxGasPriceWei: '20000000000'
                  maxCalldataBytes: 65536
                deposits:
                  contract: '0x58324e9a866c9690aca08169d3c67630e84c9019'
                  relayer: '0xedc4c88a3f6ae8130a2c18babbabd8100cc1a446'
                  token: '0x64c4a5cb09fe0b706d4cf24dc0a45fff275d727c'
                  fee: '100000'
                  feeBps: 10
                  feeExpiresAt: 1795994487
                  minValue: '2000000'
                  maxValidity: 86400
                  maxGasPriceWei: '50000000000'
        '503':
          $ref: '#/components/responses/Unavailable'
        default:
          $ref: '#/components/responses/ServiceError'
  /maker/v1/quote:
    post:
      tags:
      - Forward swaps
      operationId: quoteForward
      summary: Request a forward quote
      description: Preview the Zcash deposit and gross token payout. The sample response is an expired testnet
        quote. Use the opening fee and address from your wallet’s own fresh quote when you fund a swap.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ForwardQuoteRequest'
            example:
              units: 5000000
              payout: '0x0000000000000000000000000000000000000001'
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ForwardQuote'
              example:
                quoteId: '0xa207a4067e7798fcd5fd9a711af5525904329914b56ab9f895e06bd50eb2595f'
                maker: '0x2bac02b5032e9092493814c705f156b49e288922'
                makerShare: '0x3eacf761db4497874deb6ce154a7427f9d1289311833cda4891269809bed010b001153dec672f6ccdf49345424a90afe319bfc6eb52c9c146613170be8e9cdd7'
                makerProof: '0x14ef76a53a1ce9c2e39562f171d7bfbbebf77cc94d650f04f4d2eba344cb0807d2171b54c675cfae57256787bf27c6c6a681c8d3d3de9f6547b75603359eda3d'
                chainId: 11155111
                contract: '0x62ce626c5a30528b8ee33145d491785082a6cf8a'
                token: '0x64c4a5cb09fe0b706d4cf24dc0a45fff275d727c'
                amount: '5000000'
                depositZat: 696768
                expiresAt: 1795996377
                networkCost: '133969'
                openFee:
                  zat: 20000
                  address: 'utest1hly5nu0c9jq5gwrrthaflv3e2wvkh784ztf2u367uzddpjwytusuw30dx4r0thpyclr6es4tv376wvev4fgdx6ahz074lt2wegna2s7l'
        '400':
          $ref: '#/components/responses/QuoteRejected'
        '413':
          $ref: '#/components/responses/BodyTooLarge'
        '415':
          $ref: '#/components/responses/WrongContentType'
        '422':
          $ref: '#/components/responses/InvalidFields'
        '503':
          $ref: '#/components/responses/Unavailable'
        default:
          $ref: '#/components/responses/ServiceError'
  /maker/v1/quote/{quoteId}/accept:
    post:
      tags:
      - Forward swaps
      operationId: acceptForward
      summary: Accept a forward quote
      description: Accept the saved quote with the wallet’s proven share and joint viewing keys.
      parameters:
      - $ref: '#/components/parameters/QuoteId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ForwardAcceptance'
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ForwardAccepted'
              example:
                swapId: '0x0000000000000000000000000000000000000000000000000000000000000001'
                t0: 1900000000
                t1: 1900003600
                ticket: example-swap-ticket
                lateWindow: 3600
        '400':
          $ref: '#/components/responses/BadRequest'
        '402':
          $ref: '#/components/responses/OpenFeeRequired'
        '404':
          $ref: '#/components/responses/NotFound'
        '413':
          $ref: '#/components/responses/BodyTooLarge'
        '415':
          $ref: '#/components/responses/WrongContentType'
        '422':
          $ref: '#/components/responses/InvalidFields'
        '503':
          $ref: '#/components/responses/Unavailable'
        default:
          $ref: '#/components/responses/ServiceError'
  /relayer/v1/claim:
    post:
      tags:
      - Forward swaps
      operationId: claimForward
      summary: Submit a claim
      description: Submit the client’s authorized claim and shielded payout when claimable.
      parameters:
      - $ref: '#/components/parameters/SwapTicket'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RelayerClaim'
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RelayerSent'
        '400':
          $ref: '#/components/responses/BadRequest'
        '413':
          $ref: '#/components/responses/BodyTooLarge'
        '415':
          $ref: '#/components/responses/WrongContentType'
        '422':
          $ref: '#/components/responses/InvalidFields'
        '503':
          $ref: '#/components/responses/Unavailable'
        default:
          $ref: '#/components/responses/ServiceError'
  /relayer/v1/claim/hold:
    post:
      tags:
      - Forward swaps
      operationId: holdForwardClaim
      summary: Delegate a claim
      description: Delegate a claim to the relayer. A held claim remains pending until its window opens.
      parameters:
      - $ref: '#/components/parameters/SwapTicket'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RelayerClaim'
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                oneOf:
                - $ref: '#/components/schemas/RelayerHeld'
                - $ref: '#/components/schemas/RelayerSent'
              examples:
                held:
                  summary: Claim queued
                  value:
                    held: true
                alreadyPaid:
                  summary: Claim and payout already recorded
                  value:
                    transactions: []
        '400':
          $ref: '#/components/responses/BadRequest'
        '413':
          $ref: '#/components/responses/BodyTooLarge'
        '415':
          $ref: '#/components/responses/WrongContentType'
        '422':
          $ref: '#/components/responses/InvalidFields'
        '503':
          $ref: '#/components/responses/Unavailable'
        default:
          $ref: '#/components/responses/ServiceError'
  /relayer/v1/payout:
    post:
      tags:
      - Forward swaps
      operationId: payForward
      summary: Submit a payout
      description: Deliver a claimed swap’s payout to its committed Railgun note.
      parameters:
      - $ref: '#/components/parameters/SwapTicket'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RelayerPayout'
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RelayerSent'
        '400':
          $ref: '#/components/responses/BadRequest'
        '413':
          $ref: '#/components/responses/BodyTooLarge'
        '415':
          $ref: '#/components/responses/WrongContentType'
        '422':
          $ref: '#/components/responses/InvalidFields'
        '503':
          $ref: '#/components/responses/Unavailable'
        default:
          $ref: '#/components/responses/ServiceError'
  /relayer/v1/rescue:
    post:
      tags:
      - Forward swaps
      operationId: rescueForward
      summary: Recover a forward payout
      description: Shield tokens returned to the forward swap’s vault after a refused note.
      parameters:
      - $ref: '#/components/parameters/SwapTicket'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RelayerRescue'
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RelayerSent'
        '400':
          $ref: '#/components/responses/BadRequest'
        '413':
          $ref: '#/components/responses/BodyTooLarge'
        '415':
          $ref: '#/components/responses/WrongContentType'
        '422':
          $ref: '#/components/responses/InvalidFields'
        '503':
          $ref: '#/components/responses/Unavailable'
        default:
          $ref: '#/components/responses/ServiceError'
  /maker/v1/reverse/quote:
    post:
      tags:
      - Reverse swaps
      operationId: quoteReverse
      summary: Request a reverse quote
      description: Preview the token escrow and shielded Zcash payment. The request uses placeholders for the
        authorization address and refund note. Have the wallet generate both for a swap you intend to fund.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ReverseQuoteRequest'
            example:
              units: 5000000
              user: '0x0000000000000000000000000000000000000001'
              refundNote: '0x0000000000000000000000000000000000000000000000000000000000000001'
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReverseQuote'
              example:
                terms:
                  quoteId: '0xaa63ba2be3598f3997b2bc3830c58671d0d21a12e63c7d46472b2872a1d4e4b1'
                  maker: '0x2bac02b5032e9092493814c705f156b49e288922'
                  makerShare: '0x3271f5abbc13ec9178ebbd48a7294859dd5eb65e5e6e8e17c5a65a52d46764f81218c0fd2da89df2b55014fdb0e7853bdfef5c5e24aec0b8a1eb693515efb891'
                  makerProof: '0xffbe9bfa5a66920679ea0a281c0f4d8b7bc92a7a996edef2171e38b9705cd129a2b916389294114554b67aa980c8d9250818c946b97a57bdd30e0d8a8058a119'
                  chainId: 11155111
                  contract: '0x62ce626c5a30528b8ee33145d491785082a6cf8a'
                  token: '0x64c4a5cb09fe0b706d4cf24dc0a45fff275d727c'
                  amount: '5000000'
                  depositZat: 647081
                  expiresAt: 1795996378
                  networkCost: '133969'
                user: '0x0000000000000000000000000000000000000001'
                refundNote: '0x0000000000000000000000000000000000000000000000000000000000000001'
                fundingDeadline: 1795996956
                readyDeadline: 1796003256
                refundAfter: 1796006856
        '400':
          $ref: '#/components/responses/QuoteRejected'
        '413':
          $ref: '#/components/responses/BodyTooLarge'
        '415':
          $ref: '#/components/responses/WrongContentType'
        '422':
          $ref: '#/components/responses/InvalidFields'
        '503':
          $ref: '#/components/responses/Unavailable'
        default:
          $ref: '#/components/responses/ServiceError'
  /maker/v1/reverse/quote/{quoteId}/accept:
    post:
      tags:
      - Reverse swaps
      operationId: acceptReverse
      summary: Accept a reverse quote
      description: Accept the saved reverse quote. The response supplies the escrow deadlines and swap ticket.
      parameters:
      - $ref: '#/components/parameters/QuoteId'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ForwardAcceptance'
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ForwardAccepted'
              example:
                swapId: '0x0000000000000000000000000000000000000000000000000000000000000001'
                t0: 1900000000
                t1: 1900003600
                ticket: example-swap-ticket
        '400':
          $ref: '#/components/responses/BadRequest'
        '404':
          $ref: '#/components/responses/NotFound'
        '413':
          $ref: '#/components/responses/BodyTooLarge'
        '415':
          $ref: '#/components/responses/WrongContentType'
        '422':
          $ref: '#/components/responses/InvalidFields'
        '503':
          $ref: '#/components/responses/Unavailable'
        default:
          $ref: '#/components/responses/ServiceError'
  /maker/v1/reverse/swaps/{swapId}:
    get:
      tags:
      - Reverse swaps
      operationId: getReverseStatus
      summary: Get swap status
      description: Read the maker’s progress for an accepted swap.
      parameters:
      - $ref: '#/components/parameters/SwapId'
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ReverseStatus'
              example:
                swapId: '0x0000000000000000000000000000000000000000000000000000000000000001'
                phase: awaitingFunding
                depositTxid: null
                readyDeadline: 1900000000
                refundAfter: 1900003600
        '400':
          $ref: '#/components/responses/BadRequest'
        '404':
          description: The maker has no record of this swap ID.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                code: unknownSwap
                error: swap is unknown
        '503':
          $ref: '#/components/responses/Unavailable'
        default:
          $ref: '#/components/responses/ServiceError'
  /relayer/v1/reverse/fund:
    post:
      tags:
      - Reverse swaps
      operationId: fundReverse
      summary: Fund reverse escrow
      description: Submit the wallet’s proved Relay Adapt funding transaction.
      parameters:
      - $ref: '#/components/parameters/SwapTicket'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ReverseFunding'
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RelayerSent'
        '400':
          $ref: '#/components/responses/BadRequest'
        '413':
          $ref: '#/components/responses/BodyTooLarge'
        '415':
          $ref: '#/components/responses/WrongContentType'
        '422':
          $ref: '#/components/responses/InvalidFields'
        '503':
          $ref: '#/components/responses/Unavailable'
        default:
          $ref: '#/components/responses/ServiceError'
  /relayer/v1/reverse/ready:
    post:
      tags:
      - Reverse swaps
      operationId: readyReverse
      summary: Mark escrow ready
      description: Submit Ready after the wallet verifies that the full Zcash deposit is spendable.
      parameters:
      - $ref: '#/components/parameters/SwapTicket'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ReverseAuthorization'
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RelayerSent'
        '400':
          $ref: '#/components/responses/BadRequest'
        '413':
          $ref: '#/components/responses/BodyTooLarge'
        '415':
          $ref: '#/components/responses/WrongContentType'
        '422':
          $ref: '#/components/responses/InvalidFields'
        '503':
          $ref: '#/components/responses/Unavailable'
        default:
          $ref: '#/components/responses/ServiceError'
  /relayer/v1/reverse/refund:
    post:
      tags:
      - Reverse swaps
      operationId: refundReverse
      summary: Request a reverse refund
      description: Refund eligible escrow and request the signed payout to the committed refund note.
      parameters:
      - $ref: '#/components/parameters/SwapTicket'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ReverseRefund'
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RelayerSent'
        '400':
          $ref: '#/components/responses/BadRequest'
        '413':
          $ref: '#/components/responses/BodyTooLarge'
        '415':
          $ref: '#/components/responses/WrongContentType'
        '422':
          $ref: '#/components/responses/InvalidFields'
        '503':
          $ref: '#/components/responses/Unavailable'
        default:
          $ref: '#/components/responses/ServiceError'
  /relayer/v1/reverse/refund-payout:
    post:
      tags:
      - Reverse swaps
      operationId: payReverseRefund
      summary: Shield a refund
      description: Retry shielding after refund settlement if the payout is still outstanding.
      parameters:
      - $ref: '#/components/parameters/SwapTicket'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RelayerPayout'
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RelayerSent'
        '400':
          $ref: '#/components/responses/BadRequest'
        '413':
          $ref: '#/components/responses/BodyTooLarge'
        '415':
          $ref: '#/components/responses/WrongContentType'
        '422':
          $ref: '#/components/responses/InvalidFields'
        '503':
          $ref: '#/components/responses/Unavailable'
        default:
          $ref: '#/components/responses/ServiceError'
  /relayer/v1/reverse/rescue:
    post:
      tags:
      - Reverse swaps
      operationId: rescueReverse
      summary: Recover a reverse refund
      description: Shield refunded tokens returned to the reverse swap’s vault after a refused note.
      parameters:
      - $ref: '#/components/parameters/SwapTicket'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RelayerRescue'
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RelayerSent'
        '400':
          $ref: '#/components/responses/BadRequest'
        '413':
          $ref: '#/components/responses/BodyTooLarge'
        '415':
          $ref: '#/components/responses/WrongContentType'
        '422':
          $ref: '#/components/responses/InvalidFields'
        '503':
          $ref: '#/components/responses/Unavailable'
        default:
          $ref: '#/components/responses/ServiceError'
  /relayer/v1/railgun/transact:
    post:
      tags:
      - Deposits and transfers
      operationId: relayPrivateTransfer
      summary: Relay a private transfer
      description: Submit a proved private send or withdrawal using the advertised fee terms.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RailgunTransact'
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RelayerSent'
        '400':
          $ref: '#/components/responses/BadRequest'
        '409':
          $ref: '#/components/responses/Conflict'
        '413':
          $ref: '#/components/responses/BodyTooLarge'
        '415':
          $ref: '#/components/responses/WrongContentType'
        '422':
          $ref: '#/components/responses/InvalidFields'
        '503':
          $ref: '#/components/responses/Unavailable'
        default:
          $ref: '#/components/responses/ServiceError'
  /relayer/v1/deposits/shield:
    post:
      tags:
      - Deposits and transfers
      operationId: shieldDeposit
      summary: Shield a deposit
      description: Shield an authorized token deposit from its Ethereum deposit address.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ShieldDeposit'
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RelayerSent'
        '400':
          $ref: '#/components/responses/BadRequest'
        '409':
          $ref: '#/components/responses/Conflict'
        '413':
          $ref: '#/components/responses/BodyTooLarge'
        '415':
          $ref: '#/components/responses/WrongContentType'
        '422':
          $ref: '#/components/responses/InvalidFields'
        '503':
          $ref: '#/components/responses/Unavailable'
        default:
          $ref: '#/components/responses/ServiceError'
  /relayer/v1/deposits/rescue:
    post:
      tags:
      - Deposits and transfers
      operationId: rescueDeposit
      summary: Recover a deposit
      description: Shield tokens returned to the deposit address’s vault.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RescueDeposit'
      responses:
        '200':
          description: Success.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RelayerSent'
        '400':
          $ref: '#/components/responses/BadRequest'
        '409':
          $ref: '#/components/responses/Conflict'
        '413':
          $ref: '#/components/responses/BodyTooLarge'
        '415':
          $ref: '#/components/responses/WrongContentType'
        '422':
          $ref: '#/components/responses/InvalidFields'
        '503':
          $ref: '#/components/responses/Unavailable'
        default:
          $ref: '#/components/responses/ServiceError'
components:
  parameters:
    QuoteId:
      name: quoteId
      in: path
      required: true
      description: The quoteId returned for this direction.
      schema:
        $ref: '#/components/schemas/Hex32'
    SwapId:
      name: swapId
      in: path
      required: true
      description: The swapId returned by acceptance.
      schema:
        $ref: '#/components/schemas/Hex32'
    SwapTicket:
      name: ZecSwap-Ticket
      in: header
      required: false
      description: Send the ticket returned on acceptance for this swap’s relayer allowance. The wallet still signs
        and proves the requested action.
      schema:
        type: string
  responses:
    BadRequest:
      description: Malformed input or a request rejected for this swap.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    QuoteRejected:
      description: Malformed request or a quote the maker rejected. For an out-of-range size the maker reports its current inclusive bounds in units. Other rejections have different reasons.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            code: rejected
            error: '1 units is outside the quotable range, 5000000 to 50000000'
    OpenFeeRequired:
      description: The maker is waiting for this quote’s opening fee. After paying, retry the same acceptance after
        Retry-After.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            code: feeRequired
            error: the quote's open fee is not in a mined transaction yet; pay it, or accept again once it is
      headers:
        Retry-After:
          description: Seconds to wait before retrying, when supplied.
          schema:
            type: integer
            minimum: 0
    NotFound:
      description: Unknown quote, swap or route. An expired quote can be unknown.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            code: unknownQuote
            error: quote is unknown, expired or already accepted
    Conflict:
      description: A conflicting or already spent authorization may have transaction hashes to reconcile.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/RelayerConflict'
    BodyTooLarge:
      description: The request exceeds the service’s body limit.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    WrongContentType:
      description: 'Use Content-Type: application/json.'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    InvalidFields:
      description: The JSON fields or encoded values do not match the request type.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Unavailable:
      description: Temporarily unavailable, throttled, or waiting for a chain event. Respect Retry-After when present.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
      headers:
        Retry-After:
          description: Seconds to wait before retrying, when supplied.
          schema:
            type: integer
            minimum: 0
    ServiceError:
      description: Other service error. Read code and error.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  schemas:
    EthereumAddress:
      type: string
      pattern: ^0x[0-9a-fA-F]{40}$
      minLength: 42
      maxLength: 42
      description: 20-byte Ethereum address in hexadecimal.
    Hex32:
      type: string
      pattern: ^0x[0-9a-fA-F]{64}$
      minLength: 66
      maxLength: 66
      description: 32-byte value in hexadecimal.
    Hex64:
      type: string
      pattern: ^0x[0-9a-fA-F]{128}$
      minLength: 130
      maxLength: 130
      description: 64-byte value in hexadecimal.
    EthereumSignature:
      type: string
      pattern: ^0x[0-9a-fA-F]{130}$
      minLength: 132
      maxLength: 132
      description: 65-byte Ethereum signature in hexadecimal.
    HexData:
      type: string
      pattern: ^0x([0-9a-fA-F]{2})*$
      description: Hexadecimal bytes with a 0x prefix.
    Uint32:
      type: integer
      format: uint32
      minimum: 0
      maximum: 4294967295
    Uint64:
      type: integer
      format: uint64
      minimum: 0
      maximum: 18446744073709551615
    UnixSeconds:
      $ref: '#/components/schemas/Uint64'
      description: Unix timestamp in seconds.
    DecimalUint128:
      type: string
      format: uint128-decimal
      pattern: ^[0-9]+$
      description: Unsigned integer in decimal text, at most 340282366920938463463374607431768211455. Services emit
        digits without leading zeroes.
    ZcashNetwork:
      type: string
      enum:
      - testnet
      - mainnet
    ErrorCode:
      type: string
      enum:
      - invalidRequest
      - rejected
      - unknownQuote
      - unknownSwap
      - unavailable
      - watchtowerUnavailable
      - internal
      - notFound
      - methodNotAllowed
      - tokenRequired
      - feeRequired
      - alreadySpent
      - conflict
    ErrorResponse:
      type: object
      description: Structured service error.
      required:
      - code
      - error
      properties:
        code:
          $ref: '#/components/schemas/ErrorCode'
          description: Machine-readable service error code.
        error:
          type: string
          description: Human-readable detail.
    MakerInfo:
      type: object
      description: Deployment and capabilities served by this maker.
      required:
      - apiVersion
      - maker
      - chainId
      - contract
      - token
      - zcashNetwork
      - reverseEnabled
      properties:
        apiVersion:
          $ref: '#/components/schemas/Uint32'
          description: API version number.
        maker:
          $ref: '#/components/schemas/EthereumAddress'
          description: Maker's Ethereum address.
        chainId:
          $ref: '#/components/schemas/Uint64'
          description: EIP-155 chain ID of the settlement network.
        contract:
          $ref: '#/components/schemas/EthereumAddress'
          description: Ethereum address of the settlement contract.
        contractKind:
          type: string
          description: Contract family reported by the deployment. The window-based client expects windows.
        minWindow:
          $ref: '#/components/schemas/Uint64'
          description: Minimum interval required by the contract between opening and t0, and between t0 and t1,
            in seconds.
        lateWindow:
          $ref: '#/components/schemas/Uint64'
          description: Length of the forward maker's refund window after t1, in seconds.
        token:
          $ref: '#/components/schemas/EthereumAddress'
          description: Ethereum address of the escrow token.
        zcashNetwork:
          $ref: '#/components/schemas/ZcashNetwork'
          description: Network of the Zcash leg.
        reverseEnabled:
          type: boolean
          description: Whether this maker accepts reverse quotes.
    ForwardQuoteRequest:
      type: object
      description: Request a maker quote for Zcash to the escrow token.
      additionalProperties: false
      required:
      - units
      - payout
      properties:
        units:
          $ref: '#/components/schemas/Uint32'
          minimum: 1
          description: Number of maker denominations to receive. On this testnet deployment 1000000 units is 1 tUSD. Request a quote to check the current size limits.
        payout:
          $ref: '#/components/schemas/EthereumAddress'
          not:
            const: '0x0000000000000000000000000000000000000000'
          description: Nonzero Ethereum account that authorizes the payout. For the account route, use the receiving
            signer.
        payoutNote:
          anyOf:
          - $ref: '#/components/schemas/Hex32'
          - type: 'null'
          description: Hash committing to the shield note for a RAILGUN payout. Omit for an account payout.
    ForwardQuote:
      type: object
      description: Maker quote fields shared by both directions. Amounts refer to the escrow token and the joint
        Zcash deposit.
      required:
      - quoteId
      - maker
      - makerShare
      - makerProof
      - chainId
      - contract
      - token
      - amount
      - depositZat
      - expiresAt
      properties:
        quoteId:
          $ref: '#/components/schemas/Hex32'
          description: Identifier used in the acceptance URL.
        maker:
          $ref: '#/components/schemas/EthereumAddress'
          description: Maker's Ethereum address.
        makerShare:
          $ref: '#/components/schemas/Hex64'
          description: Maker's public Pallas share, encoded as two 32-byte affine coordinates.
        makerProof:
          $ref: '#/components/schemas/Hex64'
          description: Proof that the maker knows its share.
        chainId:
          $ref: '#/components/schemas/Uint64'
          description: EIP-155 chain ID of the settlement network.
        contract:
          $ref: '#/components/schemas/EthereumAddress'
          description: Ethereum address of the settlement contract.
        token:
          $ref: '#/components/schemas/EthereumAddress'
          description: Ethereum address of the escrow token.
        amount:
          $ref: '#/components/schemas/DecimalUint128'
          description: Gross escrow value in token base units.
        depositZat:
          $ref: '#/components/schemas/Uint64'
          description: Zcash amount payable to the joint account, in zatoshis (100,000,000 per coin).
        expiresAt:
          $ref: '#/components/schemas/UnixSeconds'
          description: Quote expiry in Unix seconds.
        networkCost:
          $ref: '#/components/schemas/DecimalUint128'
          description: Maker's estimated network cost already included in the quote, in token base units.
        openFee:
          $ref: '#/components/schemas/OpenFee'
          description: A forward maker may require this separate Zcash payment before acceptance.
    OpenFee:
      type: object
      description: One-time, nonrefundable Zcash opening fee for this quote.
      required:
      - zat
      - address
      properties:
        zat:
          $ref: '#/components/schemas/Uint64'
          description: Fee in zatoshis.
        address:
          type: string
          description: Quote-specific unified address on the maker's Zcash network with an Orchard-only receiver.
    ForwardAcceptance:
      type: object
      description: Client-generated material used to open either direction. The maker uses the viewing material
        to recognize the joint Zcash deposit.
      required:
      - userShare
      - userProof
      - viewingKeys
      properties:
        userShare:
          $ref: '#/components/schemas/Hex64'
          description: User's public Pallas share, encoded as two 32-byte affine coordinates.
        userProof:
          $ref: '#/components/schemas/Hex64'
          description: Proof of knowledge of the user's swap share.
        viewingKeys:
          $ref: '#/components/schemas/Hex64'
          description: 64-byte Zcash viewing material for this joint account only.
    ForwardAccepted:
      type: object
      description: Acceptance receipt. Persist the swap ID, deadlines and ticket before funding.
      required:
      - swapId
      - t0
      - t1
      - ticket
      properties:
        swapId:
          $ref: '#/components/schemas/Hex32'
          description: 32-byte escrow identifier.
        t0:
          $ref: '#/components/schemas/UnixSeconds'
          description: End of the initial ready window, in Unix seconds.
        t1:
          $ref: '#/components/schemas/UnixSeconds'
          description: Start of the refund window for a ready swap, in Unix seconds.
        lateWindow:
          $ref: '#/components/schemas/Uint64'
          description: Length of the forward maker's refund window after t1, in seconds.
        ticket:
          type: string
          description: Opaque credential for this swap. Supply it in the ZecSwap-Ticket header on protected relay
            routes.
    ForwardTerms:
      type: object
      description: Exact escrow terms read back from the contract. The token and Zcash roles switch when the direction
        reverses.
      additionalProperties: false
      required:
      - maker
      - token
      - amount
      - makerKey
      - userKey
      - user
      - t0
      - t1
      - payoutNote
      properties:
        maker:
          $ref: '#/components/schemas/EthereumAddress'
          description: Address on the token side. In reverse, this is the user's authorization address.
        token:
          $ref: '#/components/schemas/EthereumAddress'
          description: Ethereum address of the escrow token.
        amount:
          $ref: '#/components/schemas/DecimalUint128'
          description: Escrowed amount in token base units.
        makerKey:
          $ref: '#/components/schemas/Hex64'
          description: Public Pallas share for the token side.
        userKey:
          $ref: '#/components/schemas/Hex64'
          description: Public Pallas share for the Zcash side.
        user:
          $ref: '#/components/schemas/EthereumAddress'
          description: Address on the Zcash side. In reverse, this is the maker's address.
        t0:
          $ref: '#/components/schemas/UnixSeconds'
          description: Ready deadline in Unix seconds.
        t1:
          $ref: '#/components/schemas/UnixSeconds'
          description: Refund boundary in Unix seconds.
        payoutNote:
          $ref: '#/components/schemas/Hex32'
          description: Committed forward shield-note hash. Zero for a forward account payout or reverse escrow.
    ReverseQuoteRequest:
      type: object
      description: Request a quote to send escrow tokens from RAILGUN and receive Zcash.
      additionalProperties: false
      required:
      - units
      - user
      - refundNote
      properties:
        units:
          $ref: '#/components/schemas/Uint32'
          minimum: 1
          description: Number of maker denominations to escrow. Public testnet uses 1000000 units per tUSD and the same size limits as forward quotes.
        user:
          $ref: '#/components/schemas/EthereumAddress'
          description: Fresh Ethereum authorization address for this swap.
        refundNote:
          $ref: '#/components/schemas/Hex32'
          description: Hash committing to the RAILGUN note that will receive any token refund.
    ReverseQuote:
      type: object
      description: Business terms for the reverse swap and the deadlines imposed by the escrow.
      required:
      - terms
      - user
      - refundNote
      - fundingDeadline
      - readyDeadline
      - refundAfter
      properties:
        terms:
          $ref: '#/components/schemas/ForwardQuote'
          description: Maker quote fields. Here amount is the token input and depositZat is the maker's gross Zcash
            deposit.
        user:
          $ref: '#/components/schemas/EthereumAddress'
          description: User's swap authorization address.
        refundNote:
          $ref: '#/components/schemas/Hex32'
          description: Shield-note commitment from the request.
        fundingDeadline:
          $ref: '#/components/schemas/UnixSeconds'
          description: Last time allowed by the signed opening authorization, in Unix seconds.
        readyDeadline:
          $ref: '#/components/schemas/UnixSeconds'
          description: The ready authorization must land before this time (t0).
        refundAfter:
          $ref: '#/components/schemas/UnixSeconds'
          description: From this time (t1), the user may refund a ready reverse escrow.
    ReverseAuthorization:
      type: object
      description: Signed authorization to mark a reverse escrow ready after the client verifies the joint Zcash
        deposit.
      additionalProperties: false
      required:
      - swapId
      - terms
      - deadline
      - signature
      properties:
        swapId:
          $ref: '#/components/schemas/Hex32'
          description: 32-byte escrow identifier.
        terms:
          $ref: '#/components/schemas/ForwardTerms'
          description: Escrow terms the relayer checks against the on-chain hash.
        deadline:
          $ref: '#/components/schemas/UnixSeconds'
          description: Expiry of the signed authorization, in Unix seconds.
        signature:
          $ref: '#/components/schemas/EthereumSignature'
          description: 65-byte Ethereum authorization signature in r, s, v order.
    ReverseFunding:
      type: object
      description: Proved RAILGUN call that funds the quoted reverse escrow.
      additionalProperties: false
      required:
      - swapId
      - chainId
      - to
      - data
      - value
      properties:
        swapId:
          $ref: '#/components/schemas/Hex32'
          description: 32-byte escrow identifier.
        chainId:
          $ref: '#/components/schemas/Uint64'
          description: EIP-155 chain ID of the settlement network.
        to:
          $ref: '#/components/schemas/EthereumAddress'
          description: Pinned V2 Relay Adapt contract.
        data:
          $ref: '#/components/schemas/HexData'
          description: Complete calldata of the locally proved Relay Adapt transaction.
        value:
          $ref: '#/components/schemas/DecimalUint128'
          const: '0'
          description: Native ETH value in wei. The sponsored funding route requires zero.
    ReverseRefund:
      type: object
      description: Refund authorization for an eligible reverse escrow and the signed shielding payout.
      additionalProperties: false
      required:
      - swapId
      - terms
      - secret
      - payout
      properties:
        swapId:
          $ref: '#/components/schemas/Hex32'
          description: 32-byte escrow identifier.
        terms:
          $ref: '#/components/schemas/ForwardTerms'
          description: Escrow terms the relayer checks against the on-chain hash.
        secret:
          $ref: '#/components/schemas/Hex32'
          description: User's 32-byte swap share. Supply only after the client verifies that refund is safe.
        payout:
          $ref: '#/components/schemas/RelayerPayout'
          description: Signed payout for the note committed at funding.
    ReversePhase:
      type: string
      enum:
      - awaitingFunding
      - confirmingFunding
      - sendingZec
      - awaitingReady
      - claiming
      - zecAvailable
      - refundAvailable
      - refunding
      - refunded
      - expired
    ReverseStatus:
      type: object
      description: Maker's reported progress. Verify the escrow and spendable Zcash independently before authorizing
        settlement.
      required:
      - swapId
      - phase
      - depositTxid
      - readyDeadline
      - refundAfter
      properties:
        swapId:
          $ref: '#/components/schemas/Hex32'
          description: 32-byte escrow identifier.
        phase:
          $ref: '#/components/schemas/ReversePhase'
          description: Latest progress recorded by the maker.
        depositTxid:
          type:
          - string
          - 'null'
          pattern: ^[0-9a-fA-F]{64}$
          description: Hex Zcash transaction ID with no 0x prefix, or null until the maker records a deposit.
        readyDeadline:
          $ref: '#/components/schemas/UnixSeconds'
          description: Ready deadline (t0) in Unix seconds.
        refundAfter:
          $ref: '#/components/schemas/UnixSeconds'
          description: Ready escrow refund boundary (t1) in Unix seconds.
    RelayerTerms:
      type: object
      description: Current swap payout fee and optional services offered by the relayer.
      required:
      - relayer
      - chainId
      - contract
      - fee
      properties:
        relayer:
          $ref: '#/components/schemas/EthereumAddress'
          description: Ethereum address of the swap relayer.
        chainId:
          $ref: '#/components/schemas/Uint64'
          description: EIP-155 chain ID of the settlement network.
        contract:
          $ref: '#/components/schemas/EthereumAddress'
          description: Ethereum address of the settlement contract.
        contractKind:
          type: string
          description: Contract family reported by the deployment. The window-based client expects windows.
        minWindow:
          $ref: '#/components/schemas/Uint64'
          description: Minimum interval required by the contract between opening and t0, and between t0 and t1,
            in seconds.
        lateWindow:
          $ref: '#/components/schemas/Uint64'
          description: Length of the forward maker's refund window after t1, in seconds.
        fee:
          $ref: '#/components/schemas/DecimalUint128'
          description: Swap payout fee in escrow-token base units.
        feeExpiresAt:
          $ref: '#/components/schemas/UnixSeconds'
          description: Last time the relayer honors the advertised fee or rate, in Unix seconds.
        reverseFunding:
          $ref: '#/components/schemas/ReverseFundingTerms'
          description: Present when this relayer sponsors initial reverse funding.
        railgunSends:
          $ref: '#/components/schemas/RailgunSendTerms'
          description: Present when this relayer broadcasts RAILGUN transfers and withdrawals.
        deposits:
          $ref: '#/components/schemas/DepositTerms'
          description: Present when this relayer shields tokens received at public deposit addresses.
    DepositTerms:
      type: object
      description: Fee schedule and authorization limits for public-token deposits.
      required:
      - contract
      - relayer
      - token
      - fee
      - feeBps
      - minValue
      - maxValidity
      - maxGasPriceWei
      properties:
        contract:
          $ref: '#/components/schemas/EthereumAddress'
          description: Deposits contract the authorization must pay.
        relayer:
          $ref: '#/components/schemas/EthereumAddress'
          description: Ethereum account bound to the deposit fee authorization.
        token:
          $ref: '#/components/schemas/EthereumAddress'
          description: Ethereum address of the escrow token.
        fee:
          $ref: '#/components/schemas/DecimalUint128'
          description: Base portion in token units. The total is fee plus ceil(value × feeBps / 10000). A rescue
            pays the base fee alone.
        feeBps:
          $ref: '#/components/schemas/Uint32'
          description: Variable portion of the deposit fee, in basis points.
        feeExpiresAt:
          $ref: '#/components/schemas/UnixSeconds'
          description: Last time the relayer honors the advertised fee or rate, in Unix seconds.
        minValue:
          $ref: '#/components/schemas/DecimalUint128'
          description: Minimum deposit in token base units.
        maxValidity:
          $ref: '#/components/schemas/Uint64'
          description: Maximum number of seconds from now to validBefore.
        maxGasPriceWei:
          $ref: '#/components/schemas/DecimalUint128'
          description: Maximum accepted gas price in wei per unit of gas.
    RailgunSendTerms:
      type: object
      description: Relayer fee and transaction limits for private sends and withdrawals.
      required:
      - railgunAddress
      - railgunProxy
      - token
      - fee
      - maxGasLimit
      - maxGasPriceWei
      - maxCalldataBytes
      properties:
        railgunAddress:
          type: string
          description: Relayer's 0zk address for the broadcaster fee note.
        railgunProxy:
          $ref: '#/components/schemas/EthereumAddress'
          description: Pinned RAILGUN proxy the transaction calls.
        token:
          $ref: '#/components/schemas/EthereumAddress'
          description: Token used to pay the fee.
        fee:
          $ref: '#/components/schemas/DecimalUint128'
          description: Minimum broadcaster fee in token base units.
        feePerUnitGas:
          $ref: '#/components/schemas/DecimalUint128'
          description: Rate in token base units per 10^18 wei of gas cost, including the relayer's margin.
        feeExpiresAt:
          $ref: '#/components/schemas/UnixSeconds'
          description: Last time the relayer honors the advertised fee or rate, in Unix seconds.
        maxGasLimit:
          $ref: '#/components/schemas/Uint64'
          description: Maximum gas units the relayer will submit for one transaction.
        maxGasPriceWei:
          $ref: '#/components/schemas/DecimalUint128'
          description: Maximum accepted gas price in wei per unit of gas.
        maxCalldataBytes:
          type: integer
          minimum: 0
          description: Maximum accepted calldata size in bytes.
    ReverseFundingTerms:
      type: object
      description: Sponsorship terms for RAILGUN funding of a reverse swap.
      required:
      - relayAdapt
      - token
      - maker
      - maxGasLimit
      - maxGasPriceWei
      - maxCalldataBytes
      - fee
      properties:
        relayAdapt:
          $ref: '#/components/schemas/EthereumAddress'
          description: V2 Relay Adapt contract used for funding.
        token:
          $ref: '#/components/schemas/EthereumAddress'
          description: Ethereum address of the escrow token.
        maker:
          $ref: '#/components/schemas/EthereumAddress'
          description: Maker whose escrow can be funded.
        maxGasLimit:
          $ref: '#/components/schemas/Uint64'
          description: Maximum gas units the relayer will submit for one transaction.
        maxGasPriceWei:
          $ref: '#/components/schemas/DecimalUint128'
          description: Maximum accepted gas price in wei per unit of gas.
        maxCalldataBytes:
          type: integer
          minimum: 0
          description: Maximum accepted calldata size in bytes.
        fee:
          $ref: '#/components/schemas/DecimalUint128'
          description: Fee the funding transaction pays the relayer in escrow-token base units.
    RelayerClaim:
      type: object
      description: Forward claim and signed payout assembled by the wallet.
      additionalProperties: false
      required:
      - swapId
      - terms
      - secret
      - payout
      properties:
        swapId:
          $ref: '#/components/schemas/Hex32'
          description: 32-byte escrow identifier.
        terms:
          $ref: '#/components/schemas/ForwardTerms'
          description: Escrow terms the relayer checks against the on-chain hash.
        secret:
          $ref: '#/components/schemas/Hex32'
          description: User's 32-byte swap share. Supply only when the reference client's checks allow its release.
        payout:
          $ref: '#/components/schemas/RelayerPayout'
          description: Signed payout bound to this swap.
    RelayerHeld:
      type: object
      description: Result of accepting an authorized claim to broadcast later.
      required:
      - held
      properties:
        held:
          type: boolean
          description: True when the relayer has retained the claim.
    RelayerPayout:
      type: object
      description: Authorization to shield a settled payout, less the signed fee.
      additionalProperties: false
      required:
      - swapId
      - terms
      - note
      - fee
      - signature
      properties:
        swapId:
          $ref: '#/components/schemas/Hex32'
          description: 32-byte escrow identifier.
        terms:
          $ref: '#/components/schemas/ForwardTerms'
          description: Escrow terms the relayer checks against the on-chain hash.
        note:
          $ref: '#/components/schemas/RelayerNote'
          description: Shield note that must match the escrow's commitment.
        fee:
          $ref: '#/components/schemas/DecimalUint128'
          description: Authorized fee in escrow-token base units.
        signature:
          $ref: '#/components/schemas/EthereumSignature'
          description: 65-byte Ethereum authorization signature in r, s, v order.
    RelayerRescue:
      type: object
      description: Signed instruction to shield tokens RAILGUN returned to this swap's vault.
      additionalProperties: false
      required:
      - swapId
      - terms
      - note
      - fee
      - nonce
      - deadline
      - signature
      properties:
        swapId:
          $ref: '#/components/schemas/Hex32'
          description: 32-byte escrow identifier.
        terms:
          $ref: '#/components/schemas/ForwardTerms'
          description: Escrow terms the relayer checks against the on-chain hash.
        note:
          $ref: '#/components/schemas/RelayerNote'
          description: RAILGUN shield destination and ciphertext.
        fee:
          $ref: '#/components/schemas/DecimalUint128'
          description: Authorized relayer fee in escrow-token base units.
        nonce:
          $ref: '#/components/schemas/Uint64'
          description: Current rescue nonce for this swap.
        deadline:
          $ref: '#/components/schemas/UnixSeconds'
          description: Expiry of the signed authorization, in Unix seconds.
        signature:
          $ref: '#/components/schemas/EthereumSignature'
          description: 65-byte Ethereum authorization signature in r, s, v order.
    RelayerNote:
      type: object
      description: RAILGUN shield note and its ciphertext.
      additionalProperties: false
      required:
      - npk
      - encryptedBundle
      - shieldKey
      properties:
        npk:
          $ref: '#/components/schemas/Hex32'
          description: 32-byte note public key.
        encryptedBundle:
          type: array
          minItems: 3
          maxItems: 3
          items:
            $ref: '#/components/schemas/Hex32'
          description: Three ordered 32-byte ciphertext words.
        shieldKey:
          $ref: '#/components/schemas/Hex32'
          description: 32-byte shield encryption public key.
    RailgunTransact:
      type: object
      description: Locally proved RAILGUN transfer or withdrawal submitted for broadcast.
      additionalProperties: false
      required:
      - chainId
      - to
      - data
      - value
      properties:
        chainId:
          $ref: '#/components/schemas/Uint64'
          description: EIP-155 chain ID of the settlement network.
        to:
          $ref: '#/components/schemas/EthereumAddress'
          description: Pinned RAILGUN proxy.
        data:
          $ref: '#/components/schemas/HexData'
          description: Calldata for a plain RAILGUN transact call.
        value:
          $ref: '#/components/schemas/DecimalUint128'
          const: '0'
          description: Native ETH value in wei. The relayed transfer route requires zero.
    RelayerConflict:
      type: object
      description: Conflict details, including any related transaction hashes the relayer knows.
      required:
      - code
      - error
      - transactions
      properties:
        code:
          $ref: '#/components/schemas/ErrorCode'
          description: Machine-readable cause, such as alreadySpent or conflict.
        error:
          type: string
          description: Human-readable detail.
        transactions:
          type: array
          items:
            $ref: '#/components/schemas/Hex32'
          description: Known Ethereum transaction hashes. Can be empty.
    ShieldDeposit:
      type: object
      description: Signed EIP-3009 token transfer from a public deposit address into its shield vault.
      additionalProperties: false
      required:
      - chainId
      - contract
      - from
      - value
      - validAfter
      - validBefore
      - note
      - fee
      - signature
      properties:
        chainId:
          $ref: '#/components/schemas/Uint64'
          description: EIP-155 chain ID of the settlement network.
        contract:
          $ref: '#/components/schemas/EthereumAddress'
          description: Pinned Deposits contract.
        from:
          $ref: '#/components/schemas/EthereumAddress'
          description: Public deposit address that signed the authorization.
        value:
          $ref: '#/components/schemas/DecimalUint128'
          description: Token amount to shield before fees, in base units.
        validAfter:
          $ref: '#/components/schemas/UnixSeconds'
          description: Lower time bound of the token authorization, in Unix seconds.
        validBefore:
          $ref: '#/components/schemas/UnixSeconds'
          description: Authorization expiry in Unix seconds.
        note:
          $ref: '#/components/schemas/RelayerNote'
          description: RAILGUN shield destination and ciphertext.
        fee:
          $ref: '#/components/schemas/DecimalUint128'
          description: Authorized relayer fee in token base units.
        signature:
          $ref: '#/components/schemas/EthereumSignature'
          description: EIP-3009 ReceiveWithAuthorization signature from the deposit address.
    RescueDeposit:
      type: object
      description: Signed instruction to shield a returned deposit again from its vault.
      additionalProperties: false
      required:
      - chainId
      - contract
      - from
      - note
      - fee
      - nonce
      - deadline
      - signature
      properties:
        chainId:
          $ref: '#/components/schemas/Uint64'
          description: EIP-155 chain ID of the settlement network.
        contract:
          $ref: '#/components/schemas/EthereumAddress'
          description: Pinned Deposits contract.
        from:
          $ref: '#/components/schemas/EthereumAddress'
          description: Public deposit address that controls the rescue.
        note:
          $ref: '#/components/schemas/RelayerNote'
          description: RAILGUN shield destination and ciphertext.
        fee:
          $ref: '#/components/schemas/DecimalUint128'
          description: Authorized relayer fee in token base units.
        nonce:
          $ref: '#/components/schemas/Uint64'
          description: Rescue nonce for the deposit address.
        deadline:
          $ref: '#/components/schemas/UnixSeconds'
          description: Expiry of the signed authorization, in Unix seconds.
        signature:
          $ref: '#/components/schemas/EthereumSignature'
          description: 65-byte Ethereum authorization signature in r, s, v order.
    RelayerSent:
      type: object
      examples:
      - transactions:
        - '0xaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa'
      description: Transaction submission result. Confirm settlement on chain.
      required:
      - transactions
      properties:
        transactions:
          type: array
          items:
            $ref: '#/components/schemas/Hex32'
          description: Ethereum transaction hashes known to the relayer. Some idempotent operations can return an
            empty list.
