Dubbz Docs
  • Welcome
    • Introduction
    • Pricing
    • User Payments
    • Onboarding
    • Legal and Compliance
  • Get Started
    • Choosing your Integration Path
    • Generate your API Key
    • HTTP API
      • Dubbz in Your Game
        • User Registration
          • Get user signature
          • Register User
        • Async Challenge
          • Create Wager Match
          • User Confirm Match
          • Report Score
        • PVP
          • Create Wager Match
          • User Confirm Match
          • Report Score
      • Your game in Dubbz
        • Async Challenge
          • Create Match
          • Report Score
        • PVP
          • Create Match
          • Report Score
    • Unity SDK
      • Installation Preparation
      • Configuration
      • Usage
  • Resources
    • FAQ
    • Contact us
Powered by GitBook
On this page
  1. Get Started
  2. HTTP API
  3. Dubbz in Your Game
  4. PVP

Create Wager Match

PreviousPVPNextUser Confirm Match

Last updated 1 year ago

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..."
        }
      ]
    }
  ]
}