Info Service API

Documentation for Blockparty Info Service GraphQL API

API Endpoints

COMING SOON

Queries

indexer

Response

Returns an NFTIndexer!

Arguments

Name Description

name - String!

Example

Query
query indexer($name: String!) {
  indexer(name: $name) {
    name
    network {
      ...NetworkFragment
    }
    graphql
    playground
    chainSync {
      ...ChainSyncInfoFragment
    }
    metaSync {
      ...MetaSyncInfoFragment
    }
  }
}

Variables

{"name": "xyz789"}

Response

{
  "data": {
    "indexer": {
      "name": "xyz789",
      "network": Network,
      "graphql": "xyz789",
      "playground": "abc123",
      "chainSync": ChainSyncInfo,
      "metaSync": MetaSyncInfo
    }
  }
}

indexers

Response

Returns [NFTIndexer!]!

Example

Query
query indexers {
  indexers {
    name
    network {
      ...NetworkFragment
    }
    graphql
    playground
    chainSync {
      ...ChainSyncInfoFragment
    }
    metaSync {
      ...MetaSyncInfoFragment
    }
  }
}

Response

{
  "data": {
    "indexers": [
      {
        "name": "xyz789",
        "network": Network,
        "graphql": "abc123",
        "playground": "xyz789",
        "chainSync": ChainSyncInfo,
        "metaSync": MetaSyncInfo
      }
    ]
  }
}

network

Response

Returns a Network!

Arguments

Name Description

name - String

chainID - Int

Example

Query
query network(
  $name: String,
  $chainID: Int
) {
  network(
    name: $name,
    chainID: $chainID
  ) {
    name
    chainID
  }
}

Variables

{"name": "xyz789", "chainID": 987}

Response

{
  "data": {
    "network": {
      "name": "abc123",
      "chainID": 123
    }
  }
}

networks

Response

Returns [Network!]!

Example

Query
query networks {
  networks {
    name
    chainID
  }
}

Response

{
  "data": {
    "networks": [
      {"name": "xyz789", "chainID": 987}
    ]
  }
}

service

Response

Returns a Service!

Arguments

Name Description

name - String!

Example

Query
query service($name: String!) {
  service(name: $name) {
    name
    versions {
      ...DEXContractFragment
    }
    graphql
    playground
    chainSync {
      ...ChainSyncInfoFragment
    }
  }
}

Variables

{"name": "abc123"}

Response

{
  "data": {
    "service": {
      "name": "abc123",
      "versions": [DEXContract],
      "graphql": "xyz789",
      "playground": "xyz789",
      "chainSync": ChainSyncInfo
    }
  }
}

services

Response

Returns [Service!]!

Example

Query
query services {
  services {
    name
    versions {
      ...DEXContractFragment
    }
    graphql
    playground
    chainSync {
      ...ChainSyncInfoFragment
    }
  }
}

Response

{
  "data": {
    "services": [
      {
        "name": "xyz789",
        "versions": [DEXContract],
        "graphql": "xyz789",
        "playground": "abc123",
        "chainSync": ChainSyncInfo
      }
    ]
  }
}

Types

Boolean

Description

The Boolean scalar type represents true or false.

Example

true

ChainSyncInfo

Fields

Field Name Description

status - SyncStatus!

startBlock - UInt64!

currentBlock - UInt64

latestBlock - UInt64

progress - String

eta - String

Example

{
  "status": "NOT_STARTED",
  "startBlock": UInt64,
  "currentBlock": UInt64,
  "latestBlock": UInt64,
  "progress": "abc123",
  "eta": "abc123"
}

DEXContract

Fields

Field Name Description

address - String!

version - String!

explorer - String!

abi - String!

network - Network!

Example

{
  "address": "xyz789",
  "version": "xyz789",
  "explorer": "abc123",
  "abi": "xyz789",
  "network": Network
}

Int

Description

The Int scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.

Example

987

MetaSyncInfo

Fields

Field Name Description

status - SyncStatus!

progress - String

eta - String

tokensOk - UInt64

tokensNA - UInt64

tokensPending - UInt64

Example

{
  "status": "NOT_STARTED",
  "progress": "abc123",
  "eta": "xyz789",
  "tokensOk": UInt64,
  "tokensNA": UInt64,
  "tokensPending": UInt64
}

NFTIndexer

Fields

Field Name Description

name - String!

network - Network!

graphql - String

playground - String

chainSync - ChainSyncInfo!

metaSync - MetaSyncInfo!

Example

{
  "name": "xyz789",
  "network": Network,
  "graphql": "abc123",
  "playground": "xyz789",
  "chainSync": ChainSyncInfo,
  "metaSync": MetaSyncInfo
}

Network

Fields

Field Name Description

name - String!

chainID - Int!

Example

{"name": "xyz789", "chainID": 987}

Service

Fields

Field Name Description

name - String!

versions - [DEXContract!]!

graphql - String

playground - String

chainSync - ChainSyncInfo!

Example

{
  "name": "abc123",
  "versions": [DEXContract],
  "graphql": "abc123",
  "playground": "abc123",
  "chainSync": ChainSyncInfo
}

String

Description

The String scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.

Example

"abc123"

SyncStatus

Values

Enum Value Description

NOT_STARTED

INITIALIZING

SYNCING

SYNCED

CLEANING

DISABLED

PASSIVE

Example

"NOT_STARTED"

UInt64

Example

UInt64