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

# Build a bet intent

> An unsigned XRPL Payment ready to sign with your own key, plus the projected implied odds AFTER your stake (parimutuel anti-slippage). counsel never holds a key.



## OpenAPI

````yaml /api-reference/openapi.json get /markets/{id}/bet-intent
openapi: 3.1.0
info:
  title: counsel API
  version: 1.0.0
  description: >-
    Public, read-only HTTP API for counsel, an L1-native parimutuel prediction
    market on the XRP Ledger. No API key, no auth, all responses JSON. It
    exposes live market state, indicative odds, unsigned bet construction,
    account positions and profiles, a copy-trading feed, and the
    SourceTag-attributed leaderboard.
  contact:
    name: counsel
    url: https://counsel.markets
  license:
    name: MIT
servers:
  - url: https://api.counsel.markets
    description: Canonical API host
  - url: https://counsel.markets/api/v1
    description: Path-based equivalent
security: []
paths:
  /markets/{id}/bet-intent:
    get:
      tags:
        - Markets
      summary: Build a bet intent
      description: >-
        An unsigned XRPL Payment ready to sign with your own key, plus the
        projected implied odds AFTER your stake (parimutuel anti-slippage).
        counsel never holds a key.
      operationId: getBetIntent
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
          description: Market id.
          example: 8679dd8bda43f5c1
        - name: account
          in: query
          required: true
          schema:
            type: string
          description: The bettor's XRPL classic address.
          example: rPT1Sjq2YGrBMTttX4GZHjKu9dyfzbpAYe
        - name: outcome
          in: query
          required: true
          schema:
            type: integer
          description: Outcome index (also the DestinationTag).
          example: 0
        - name: amount
          in: query
          required: true
          schema:
            type: number
          description: Stake in XRP.
          example: 10
      responses:
        '200':
          description: Unsigned bet Payment + projected odds
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/BetIntent'
        '400':
          description: Validation error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
        '403':
          description: Address not permitted (compliance denylist)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Errors'
        '404':
          description: Market not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    BetIntent:
      type: object
      required:
        - tx
        - pool_account
        - destination_tag
        - source_tag
        - amount_xrp
        - projected_implied_odds_after
        - market
      properties:
        tx:
          type: object
          description: Unsigned XRPL Payment. Sign it with your own key and submit it.
          additionalProperties: true
        pool_account:
          type: string
        destination_tag:
          type: integer
        source_tag:
          type: integer
          example: 2606220005
        amount_xrp:
          type: number
          example: 10
        projected_implied_odds_after:
          type: object
          required:
            - implied_prob
            - payout_per_unit
          properties:
            implied_prob:
              type: number
            payout_per_unit:
              type:
                - number
                - 'null'
        market:
          type: object
          required:
            - id
            - question
            - outcome
            - outcome_label
          properties:
            id:
              type: string
            question:
              type: string
            outcome:
              type: integer
            outcome_label:
              type: string
    Errors:
      type: object
      properties:
        errors:
          type: array
          items:
            type: string
          example:
            - invalid account address
    Error:
      type: object
      properties:
        error:
          type: string
          example: market not found

````