Passer au contenu principal
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>"
  }
}
Renvoie un Payment XRPL non signé pour un pari donné, le compte du pool, le DestinationTag (le résultat) et le SourceTag (l’attribution de counsel), ainsi que projected_implied_odds_after : la ligne qui inclut votre propre mise, puisqu’une ligne parimutuelle évolue à chaque pari. Signez le tx avec votre propre wallet et soumettez-le au XRP Ledger. counsel ne détient jamais de clé.

Paramètres de chemin

id
string
requis

Market id.

Paramètres de requête

account
string
requis

The bettor's XRPL classic address.

outcome
integer
requis

Outcome index (also the DestinationTag).

amount
number
requis

Stake in XRP.

Réponse

Unsigned bet Payment + projected odds

tx
object
requis

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

pool_account
string
requis
destination_tag
integer
requis
source_tag
integer
requis
Exemple:

2606220005

amount_xrp
number
requis
Exemple:

10

projected_implied_odds_after
object
requis
market
object
requis