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

# Prepare the registration

> The message to sign to attach a strategy to a Pons launch you sent. It carries the `walletKey` the coin will run on, the strategy in words on a `sets:` line and its hash, so send the same `walletKey` and `config` to submit, byte for byte.



## OpenAPI

````yaml /openapi.json post /pons/register/prepare
openapi: 3.1.0
info:
  title: PURPS API
  version: 2.0.0
  description: >-
    Everything purps.lol can do, as JSON. Read the coin list, a coin's full page
    and the launchpad; launch coins on purps.lol, pump.fun and Pons; wire an
    existing pump.fun coin's fees into a strategy; steer a coin you own. No key,
    no signup. A launch is one call that returns unsigned transactions: the
    launch transaction can only land with your wallet's signature, and that is
    the proof. The few writes that need a message signature (Pons launches,
    wiring a strategy onto a coin, creator authority) come as a prepare/submit
    pair. Every transaction is signed in your wallet, never by us. Every
    response is `{ ok: true, data }` or `{ ok: false, error }`. Cross-origin
    requests are allowed from any site. Every answer from the API itself carries
    `RateLimit-Limit` and `RateLimit-Policy`; uncached ones (writes, prepare and
    submit, refusals) carry `RateLimit-Remaining` and `RateLimit-Reset` as well.
    The 503 while the API is paused and the 410 on old v1 write addresses carry
    neither.
servers:
  - url: https://purps.lol/api/v2
security: []
tags:
  - name: Coins
    description: Read what the site shows.
  - name: Launch on purps.lol
    description: Launch a coin on purps.lol. Build, sign, send, poll.
  - name: Launch on pump.fun
    description: Launch straight on pump.fun with fees wired to a strategy.
  - name: Launch on Pons
    description: Launch through Pons, the launchpad on Robinhood Chain.
  - name: Redirect a pump.fun coin
    description: Point an existing pump.fun coin's creator fees at a strategy.
  - name: Manage a coin
    description: Attach a strategy to a coin launched without one. Creator-signed.
  - name: Creator authority
    description: >-
      Steer a purps.lol coin you own: act on a position, change its strategy,
      ask for authority, or hand the coin on. Every move is signed by the
      owner's wallet and published on the coin's Changes tab.
  - name: Transactions
    description: Send a signed Solana transaction through our relay and watch it land.
paths:
  /pons/register/prepare:
    post:
      tags:
        - Launch on Pons
      summary: Prepare the registration
      description: >-
        The message to sign to attach a strategy to a Pons launch you sent. It
        carries the `walletKey` the coin will run on, the strategy in words on a
        `sets:` line and its hash, so send the same `walletKey` and `config` to
        submit, byte for byte.
      operationId: preparePonsRegister
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/PonsRegisterTerms'
      responses:
        '200':
          description: What to sign.
          content:
            application/json:
              schema:
                type: object
                properties:
                  ok:
                    type: boolean
                    enum:
                      - true
                  data:
                    $ref: '#/components/schemas/Prepared'
        '400':
          description: Every failure carries the same envelope.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: Every failure carries the same envelope.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    PonsRegisterTerms:
      type: object
      properties:
        creatorWallet:
          type: string
          description: The wallet that sent the launch.
          required: true
        txHash:
          type: string
          description: The launch transaction hash.
          required: true
        walletKey:
          type: string
          description: From submit or from /pons/launches/{ref}. In the signed words.
          required: true
        config:
          $ref: '#/components/schemas/Strategy'
          type: object
          description: >-
            The strategy to run. In the signed words and hashed; send it to
            submit exactly as sent here.
          required: true
    Prepared:
      type: object
      properties:
        ts:
          type: integer
          description: Unix seconds. Send it back unchanged with the signature.
        message:
          type: string
          description: >-
            The exact text to sign. Sign the UTF-8 bytes as they are: no prefix,
            no hashing on Solana; `personal_sign` on Robinhood Chain.
        expiresInSeconds:
          type: integer
          description: How long the signature stays valid. 300.
        hash:
          type: string
          description: >-
            Pons launch prepare only: the terms' hash, as embedded in the
            message. For your records.
        configHash:
          type: string
          description: >-
            Strategy and Pons register prepare only: the hash of `config`
            exactly as you sent it, as embedded in the message.
    Error:
      type: object
      properties:
        ok:
          type: boolean
          description: Always false on a failure.
        error:
          type: string
          description: >-
            A short reason in plain words: `coin not found`, `too many
            requests`, `invalid wallet signature`.
    Strategy:
      type: object
      description: >-
        How a coin uses its fees. Basis points sum to 10000 across the three
        splits.
      properties:
        splitBuybackBps:
          type: integer
          description: Share of each fee that buys the coin back.
          required: true
        splitMarginBps:
          type: integer
          description: Share sent to the perp exchange as margin.
          required: true
        splitReserveBps:
          type: integer
          description: Share kept as a reserve that backs the positions.
          required: true
        perpLegs:
          type: array
          description: >-
            The positions to hold: `{ market, direction, leverage, weightBps,
            reserveMode }`. `market` from /markets, `leverage` a whole number
            within its cap, weights summing to 10000, `reserveMode` `defensive`
            or `none` (use the preset's `legReserveMode`); optional
            `takeProfitPct` and `stopLossPct` (percent, shown in the signed
            words when set) and `reserveTranches`. Empty means no perps, in
            which case margin and reserve must be 0.
          items:
            type: object
          required: true
        rewardMode:
          type: string
          description: >-
            What profits do: `burn` (default), `holders` pays the coin itself,
            `backed` pays `payoutMint`. Paying coins need `holderPayoutsEnabled`
            in /launch-options.
          enum:
            - burn
            - holders
            - backed
        payoutMint:
          type: string
          description: >-
            `backed` only: the asset holders are paid in. On Solana, a mint from
            /launch-options `payoutAssets` or any Solana mint with a real
            market. On Robinhood Chain, a `0x` token address that passes the
            depth check: one of the launchpad's `payoutAssets`, or any token
            /pons/assets/{address} reports as payable. ETH itself cannot be a
            payout asset there.
          nullable: true
        payoutMintsExtra:
          type: array
          items:
            type: string
          description: >-
            Further payout assets for any paying coin, up to four beyond the
            first; every buyback splits evenly across all of them and holders
            receive each. Same rules per asset as `payoutMint`.
          nullable: true
        payoutMint2:
          type: string
          description: Older form of `payoutMintsExtra` with one asset; still accepted.
          nullable: true
        strategy:
          type: object
          description: >-
            The trading rules: `{ preset, tpTriggerPct, tpSlicePct, rungCount,
            rungMode }`. Take a preset's `config.strategy` from /launch-options,
            or set your own.
          nullable: true
        ownerControls:
          type: boolean
          description: >-
            Creator authority from launch: the creator can steer the coin from
            its page or through /coins/{mint}/authority, every move signed and
            shown to holders. Off unless set; honoured only while the platform
            has creator authority open (see `openToPublic` on
            /coins/{mint}/authority). It is part of the signed words when set.

````