Integration
  • Overview
  • Getting Started
  • SDK Integration
    • Standard
    • Advanced
  • Game API
    • Overview
    • Games
    • Collections
    • Tokens
    • Marketplace
    • Transactions
    • Users
  • Misc
    • FAQ
    • Best Practices
    • Staging Environment
    • Account Management
    • Webhooks
    • IAP Setup
      • Android. How to create IAP Vessel Product
        • How to find Product ID
        • How to get Public Key
        • How to setup Google Service Account and get Credentials JSON File
      • iOS. How to create IAP Vessel Product
        • How to find Product ID
Powered by GitBook
On this page

Was this helpful?

  1. Game API

Users

How to use the API to get information about users and their tokens

PreviousTransactionsNextFAQ

Last updated 2 years ago

Was this helpful?

* is a required field

User Lookup

Lookup all users who own the token in the collection

Lookup all users who own the token

User Token Lookup

Lookup all tokens in the game by the user

Lookup all tokens in the collection by the user

Lookup the details about the user token

Token Object

Name
Type
Description

fqTn

string

totalSupply

number

Total number of minted tokens

amount

number

Number of tokens user owns

token name

Fully qualified

List of all users who own tokens of the selected collection

get
Path parameters
fqGnstringRequired

Fully Qualified Game Name

Example: com.studio.game
qCnstringRequired

Qualified Collection Name

Example: armor01
Responses
200
OK
*/*
400
Bad Request
*/*
401
Unauthorized
*/*
403
Forbidden
*/*
404
Not Found
*/*
405
Method Not Allowed
*/*
409
Conflict
*/*
429
Too Many Requests
*/*
500
Internal Server Error
*/*
get
GET /users/{fqGn}/{qCn}/ HTTP/1.1
Host: game-api.openvessel.io
Accept: */*
{
  "response": [
    {
      "address": "text"
    }
  ]
}

All users who own a given token

get
Path parameters
fqGnstringRequired

Fully Qualified Game Name

Example: com.studio.game
qCnstringRequired

Qualified Collection Name

Example: armor01
qTnstringRequired

Qualified Token Name

Example: shield
Responses
200
OK
*/*
400
Bad Request
*/*
401
Unauthorized
*/*
403
Forbidden
*/*
404
Not Found
*/*
405
Method Not Allowed
*/*
409
Conflict
*/*
429
Too Many Requests
*/*
500
Internal Server Error
*/*
get
GET /users/{fqGn}/{qCn}/{qTn} HTTP/1.1
Host: game-api.openvessel.io
Accept: */*
{
  "response": [
    {
      "address": "text",
      "amount": 1
    }
  ]
}

List of all tokens for selected user

get
Path parameters
addressstringRequired

Filter by blockchain address of the given user

Example: 0xcafe000102030405060708090a0b0c0d0e0fbeefPattern: ^0x[a-fA-F0-9]{40}$
fqGnstringRequired

Fully Qualified Game Name

Example: com.studio.game
Responses
200
OK
*/*
400
Bad Request
*/*
401
Unauthorized
*/*
403
Forbidden
*/*
404
Not Found
*/*
405
Method Not Allowed
*/*
409
Conflict
*/*
429
Too Many Requests
*/*
500
Internal Server Error
*/*
get
GET /user/{address}/tokens/{fqGn}/ HTTP/1.1
Host: game-api.openvessel.io
Accept: */*
{
  "response": [
    {
      "fqTn": "text",
      "totalSupply": 1,
      "amount": 1
    }
  ]
}

List of all tokens for selected user

get
Path parameters
addressstringRequired

Filter by blockchain address of the given user

Example: 0xcafe000102030405060708090a0b0c0d0e0fbeefPattern: ^0x[a-fA-F0-9]{40}$
fqGnstringRequired

Fully Qualified Game Name

Example: com.studio.game
qCnstringRequired

Qualified Collection Name

Example: armor01
Responses
200
OK
*/*
400
Bad Request
*/*
401
Unauthorized
*/*
403
Forbidden
*/*
404
Not Found
*/*
405
Method Not Allowed
*/*
409
Conflict
*/*
429
Too Many Requests
*/*
500
Internal Server Error
*/*
get
GET /user/{address}/tokens/{fqGn}/{qCn}/ HTTP/1.1
Host: game-api.openvessel.io
Accept: */*
{
  "response": [
    {
      "fqTn": "text",
      "totalSupply": 1,
      "amount": 1
    }
  ]
}

Details about user token

get
Path parameters
addressstringRequired

Filter by blockchain address of the given user

Example: 0xcafe000102030405060708090a0b0c0d0e0fbeefPattern: ^0x[a-fA-F0-9]{40}$
fqGnstringRequired

Fully Qualified Game Name

Example: com.studio.game
qCnstringRequired

Qualified Collection Name

Example: armor01
qTnstringRequired

Qualified Token Name

Example: token
Responses
200
OK
*/*
400
Bad Request
*/*
401
Unauthorized
*/*
403
Forbidden
*/*
404
Not Found
*/*
405
Method Not Allowed
*/*
409
Conflict
*/*
429
Too Many Requests
*/*
500
Internal Server Error
*/*
get
GET /user/{address}/tokens/{fqGn}/{qCn}/{qTn} HTTP/1.1
Host: game-api.openvessel.io
Accept: */*
{
  "response": {
    "fqTn": "text",
    "totalSupply": 1,
    "amount": 1
  }
}
  • User Lookup
  • Lookup all users who own the token in the collection
  • GETList of all users who own tokens of the selected collection
  • Lookup all users who own the token
  • GETAll users who own a given token
  • User Token Lookup
  • Lookup all tokens in the game by the user
  • GETList of all tokens for selected user
  • Lookup all tokens in the collection by the user
  • GETList of all tokens for selected user
  • Lookup the details about the user token
  • GETDetails about user token
  • Token Object