Skip to main content
GET
/
markets
/
{id}
/
bet-intent
Build a bet intent
curl --request GET \
  --url https://api.counsel.markets/markets/{id}/bet-intent
{
  "tx": {},
  "pool_account": "<string>",
  "destination_tag": 123,
  "source_tag": 2606220005,
  "amount_xrp": 10,
  "projected_implied_odds_after": {
    "implied_prob": 123,
    "payout_per_unit": 123
  },
  "market": {
    "id": "<string>",
    "question": "<string>",
    "outcome": 123,
    "outcome_label": "<string>"
  }
}
Returns an unsigned XRPL Payment for a specific bet, the pool account, the DestinationTag (the outcome) and SourceTag (counsel’s attribution), and projected_implied_odds_after: the line including your own stake, since a parimutuel line moves with every bet. Sign the tx with your own wallet and submit it to the XRP Ledger. counsel never holds a key.

Path Parameters

id
string
required

Market id.

Query Parameters

account
string
required

The bettor's XRPL classic address.

outcome
integer
required

Outcome index (also the DestinationTag).

amount
number
required

Stake in XRP.

Response

Unsigned bet Payment + projected odds

tx
object
required

Unsigned XRPL Payment. Sign it with your own key and submit it.

pool_account
string
required
destination_tag
integer
required
source_tag
integer
required
Example:

2606220005

amount_xrp
number
required
Example:

10

projected_implied_odds_after
object
required
market
object
required