NFTIndexer API
Documentation for Blockparty NFTIndexer
Queries
balance
Response
Returns a Balance
Arguments
| Name | Description |
|---|---|
|
|
|
|
|
|
|
balances
Response
Returns a Balances!
Arguments
| Name | Description |
|---|---|
|
Default = |
|
Default = |
|
|
|
|
|
|
|
|
|
|
|
|
|
Example
Query
query balances(
$first: Int,
$skip: Int,
$after: String,
$owner: ID!,
$where: BalanceFilter,
$orderBy: BalanceOrderBy,
$orderDirection: OrderDirection,
$whereToken: TokenFilter,
$whereContract: ContractFilter
) {
balances(
first: $first,
skip: $skip,
after: $after,
owner: $owner,
where: $where,
orderBy: $orderBy,
orderDirection: $orderDirection,
whereToken: $whereToken,
whereContract: $whereContract
) {
count
remaining
cursor
balances {
...BalanceFragment
}
}
}
Variables
{
"first": 10,
"skip": 0,
"after": "xyz789",
"owner": 4,
"where": BalanceFilter,
"orderBy": "CONTRACT",
"orderDirection": "ASC",
"whereToken": TokenFilter,
"whereContract": ContractFilter
}
contract
Response
Returns a Contract
Arguments
| Name | Description |
|---|---|
|
contracts
Response
Returns a Contracts!
Arguments
| Name | Description |
|---|---|
|
Default = |
|
Default = |
|
|
|
|
|
|
|
Example
Query
query contracts(
$first: Int,
$skip: Int,
$after: String,
$where: ContractFilter,
$orderBy: ContractOrderBy,
$orderDirection: OrderDirection
) {
contracts(
first: $first,
skip: $skip,
after: $after,
where: $where,
orderBy: $orderBy,
orderDirection: $orderDirection
) {
count
remaining
cursor
contracts {
...ContractFragment
}
}
}
Variables
{
"first": 10,
"skip": 0,
"after": "abc123",
"where": ContractFilter,
"orderBy": "ID",
"orderDirection": "ASC"
}
token
Response
Returns a Token
Example
Query
query token(
$contract: ID!,
$tokenID: ID!
) {
token(
contract: $contract,
tokenID: $tokenID
) {
contract {
...ContractFragment
}
tokenID
tokenURI
tokenURIStatus
image {
...ImageFragment
}
metadataStatus
metadataContent
metadataContentType
createdAt
createdBlock
burnedAt
burnedBlock
errorMsg
name
description
expired
dexTrades
holders {
...BalancesFragment
}
}
}
Response
{
"data": {
"token": {
"contract": Contract,
"tokenID": "abc123",
"tokenURI": "xyz789",
"tokenURIStatus": "OK",
"image": Image,
"metadataStatus": "OK",
"metadataContent": "xyz789",
"metadataContentType": "xyz789",
"createdAt": "10:15:30Z",
"createdBlock": 987,
"burnedAt": "10:15:30Z",
"burnedBlock": 123,
"errorMsg": "abc123",
"name": "xyz789",
"description": "abc123",
"expired": true,
"dexTrades": 123,
"holders": Balances
}
}
}
tokenCount
Response
Returns an UInt64!
Arguments
| Name | Description |
|---|---|
|
|
|
|
|
tokens
Response
Returns a Tokens!
Arguments
| Name | Description |
|---|---|
|
Default = |
|
Default = |
|
|
|
|
|
|
|
|
|
|
|
Example
Query
query tokens(
$first: Int,
$skip: Int,
$after: String,
$where: TokenFilter,
$orderBy: TokenOrderBy,
$orderDirection: OrderDirection,
$whereContract: ContractFilter,
$whereSwap: SwapFilter
) {
tokens(
first: $first,
skip: $skip,
after: $after,
where: $where,
orderBy: $orderBy,
orderDirection: $orderDirection,
whereContract: $whereContract,
whereSwap: $whereSwap
) {
count
cursor
tokens {
...TokenFragment
}
timing
}
}
Types
Balances
Fields
| Field Name | Description |
|---|---|
|
|
|
|
|
|
|
Contract
Fields
| Field Name | Description |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Arguments======= ======= ======= ======= ======= ======= |
ContractFilter
Fields
| Input Field | Description |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Contracts
Fields
| Field Name | Description |
|---|---|
|
|
|
|
|
|
|
ID
Description
The ID scalar type represents a unique identifier, often used to
refetch an object or as a key for a cache. The ID type appears in a JSON
response as a String; however, it is not intended to be human-readable.
When expected as an input type, any string (such as "4") or integer
(such as 4) input value will be accepted as an ID.
Image
Fields
| Field Name | Description |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
Arguments======= ======= ======= |
|
|
|
|
Int
MetadataStatus
String
SwapFilter
Fields
| Input Field | Description |
|---|---|
|
|
|
|
|
|
|
|
|
Thumbnail
Fields
| Field Name | Description |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
ThumbnailFilter
Fields
| Input Field | Description |
|---|---|
|
ThumbnailPreset
Token
Fields
| Field Name | Description |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Example
{
"contract": Contract,
"tokenID": "xyz789",
"tokenURI": "xyz789",
"tokenURIStatus": "OK",
"image": Image,
"metadataStatus": "OK",
"metadataContent": "xyz789",
"metadataContentType": "xyz789",
"createdAt": "10:15:30Z",
"createdBlock": 987,
"burnedAt": "10:15:30Z",
"burnedBlock": 123,
"errorMsg": "abc123",
"name": "xyz789",
"description": "abc123",
"expired": false,
"dexTrades": 987,
"holders": Balances
}
TokenFilter
Fields
| Input Field | Description |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|