Create Wager Match

Create Wager Match

post

Create the wager match on Dubbz with the specified parameters.

Body
amountstringOptionalExample: 5
currencystringOptionalExample: USD
metadataobjectOptional
Responses
201
Create Wager Match
application/json
post
POST /api/v1/partner/pvp/matches HTTP/1.1
Host: dubbz.com
Content-Type: application/json
Accept: */*
Content-Length: 197

{
  "amount": "5",
  "currency": "USD",
  "metadata": {},
  "teams": [
    {
      "players": [
        {
          "address": "0xf977814e90da44bfa03b6295a0616a897441acec"
        }
      ]
    },
    {
      "players": [
        {
          "address": "0x61edcdf5bb737adffe5043706e7c5bb1f1a56eea"
        }
      ]
    }
  ]
}
201

Create Wager Match

{
  "amount": "5",
  "currency": "USD",
  "id": "29d7c1d5-c4af-4686-bb2a-9e654f377ea3",
  "matchId": "123d4383-dce1-4ddd-b2da-de5a796a6294",
  "metadata": {},
  "teams": [
    {
      "id": "0895f96a-e342-4775-9008-c07f8ba0b126",
      "players": [
        {
          "address": "0xf977814e90da44bfa03b6295a0616a897441acec",
          "signMessage": "Your are giving your consent to Dubbz..."
        }
      ]
    },
    {
      "id": "c439bb3b-5b49-4ebf-b4d6-7ccd155f6190",
      "players": [
        {
          "address": "0x61edcdf5bb737adffe5043706e7c5bb1f1a56eea",
          "signMessage": "Your are giving your consent to Dubbz..."
        }
      ]
    }
  ]
}

Last updated