Users
How to use the API to get information about users and their tokens
User Lookup
Lookup all users who own the token in the collection
Path parameters
fqGnstringRequiredExample:
Fully Qualified Game Name
com.studio.game
qCnstringRequiredExample:
Qualified Collection Name
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"
}
]
}
Lookup all users who own the token
Path parameters
fqGnstringRequiredExample:
Fully Qualified Game Name
com.studio.game
qCnstringRequiredExample:
Qualified Collection Name
armor01
qTnstringRequiredExample:
Qualified Token Name
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
}
]
}
User Token Lookup
Lookup all tokens in the game by the user
Path parameters
addressstringRequiredExample:
Filter by blockchain address of the given user
0xcafe000102030405060708090a0b0c0d0e0fbeef
Pattern: ^0x[a-fA-F0-9]{40}$
fqGnstringRequiredExample:
Fully Qualified Game Name
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
}
]
}
Lookup all tokens in the collection by the user
Path parameters
addressstringRequiredExample:
Filter by blockchain address of the given user
0xcafe000102030405060708090a0b0c0d0e0fbeef
Pattern: ^0x[a-fA-F0-9]{40}$
fqGnstringRequiredExample:
Fully Qualified Game Name
com.studio.game
qCnstringRequiredExample:
Qualified Collection Name
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
}
]
}
Lookup the details about the user token
Path parameters
addressstringRequiredExample:
Filter by blockchain address of the given user
0xcafe000102030405060708090a0b0c0d0e0fbeef
Pattern: ^0x[a-fA-F0-9]{40}$
fqGnstringRequiredExample:
Fully Qualified Game Name
com.studio.game
qCnstringRequiredExample:
Qualified Collection Name
armor01
qTnstringRequiredExample:
Qualified Token Name
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
}
}
Token Object
Name
Type
Description
totalSupply
number
Total number of minted tokens
amount
number
Number of tokens user owns
Last updated
Was this helpful?