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

# Sign a veto

> Records a veto for the current window. Sign this exact message with the wallet, as UTF-8 bytes, and send the ed25519 signature in base58:

```text
veto.fun

I veto the creator payout of <mint> for epoch <epoch>.
```

The wallet must hold at least the coin's minimum holding. Signing again in the same window updates the vote. Rate limited to 20 per minute.




## OpenAPI

````yaml /api-reference/openapi.yaml post /api/tokens/{mint}/veto
openapi: 3.1.0
info:
  title: Veto API
  version: 1.0.0
  description: >-
    Public API behind veto.fun. Coins, payouts, wallets, launches, trades and
    vetoes.
servers:
  - url: https://api.veto.fun
    description: Production
  - url: http://localhost:4000
    description: Local development
security: []
tags:
  - name: Platform
  - name: Coins
  - name: Payouts
  - name: Veto
  - name: Launch and trade
paths:
  /api/tokens/{mint}/veto:
    post:
      tags:
        - Veto
      summary: Sign a veto
      description: >
        Records a veto for the current window. Sign this exact message with the
        wallet, as UTF-8 bytes, and send the ed25519 signature in base58:


        ```text

        veto.fun


        I veto the creator payout of <mint> for epoch <epoch>.

        ```


        The wallet must hold at least the coin's minimum holding. Signing again
        in the same window updates the vote. Rate limited to 20 per minute.
      operationId: postVeto
      parameters:
        - $ref: '#/components/parameters/Mint'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/VetoVote'
      responses:
        '200':
          description: The updated window.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/VetoState'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          description: The signature doesn't match the wallet.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: The wallet holds less than the coin's minimum holding.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          description: >-
            The window in the request has closed. Fetch the current epoch and
            sign again.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          $ref: '#/components/responses/RateLimited'
components:
  parameters:
    Mint:
      name: mint
      in: path
      required: true
      description: The coin's mint address.
      schema:
        type: string
  schemas:
    VetoVote:
      type: object
      required:
        - wallet
        - epoch
        - signature
      properties:
        wallet:
          type: string
        epoch:
          type: integer
          description: Must be the current window's `epoch`.
        signature:
          type: string
          description: Base58 ed25519 signature of the veto message.
    VetoState:
      type: object
      required:
        - epoch
        - endsAt
        - thresholdPct
        - weightPct
        - voters
        - escrow
        - escrowSol
      properties:
        epoch:
          type: integer
          description: >-
            The current 24-hour window, starting at 0 at launch. Sign this
            number.
        endsAt:
          type: string
          format: date-time
        thresholdPct:
          type: number
          description: Share of supply needed to veto.
        weightPct:
          type: number
          description: Share of supply held by wallets that signed so far.
        voters:
          type: integer
        escrow:
          type: number
          description: Creator cut held for this window, in the pair asset.
        escrowSol:
          type: number
          description: The escrow's SOL value at current prices.
    Error:
      type: object
      required:
        - error
      properties:
        error:
          type: string
          description: A message you can show to users as-is.
  responses:
    BadRequest:
      description: The request is invalid. The message names the field.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: 'symbol: Ticker can only use letters and numbers'
    NotFound:
      description: Not found.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            error: Token not found
    RateLimited:
      description: Too many requests from this IP. Wait and retry.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'

````

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