Skip to main content

Queries

_meta

Type: _Meta_

_meta will return you the protocol subgraph metadata.

Arguments

NameDescription

block
Block_height

auctionCleared

Type: AuctionCleared

auctionCleared index all auctions that has been cleared or finalized. You can use this API to fetch a certain cleared/finalized auction.

Arguments

NameDescription

id
ID!

block
Block_height

The block at which the query should be executed. Can either be a { hash: Bytes } value containing a block hash, a { number: Int } containing the block number, or a { number_gte: Int } containing the minimum block number. In the case of number_gte, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.

subgraphError
SubgraphErrorPolicy!

Set to allow to receive data even if the subgraph has skipped over errors while syncing.

auctionCleareds

Type: [AuctionCleared!]!

auctionCleareds index all auctions that has been cleared or finalized. You can use this API to fetch all cleared auctions and filter based on certain requirements.

Arguments

NameDescription

skip
Int

first
Int

orderBy
AuctionCleared_orderBy

orderDirection
OrderDirection

where
AuctionCleared_filter

block
Block_height

The block at which the query should be executed. Can either be a { hash: Bytes } value containing a block hash, a { number: Int } containing the block number, or a { number_gte: Int } containing the minimum block number. In the case of number_gte, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.

subgraphError
SubgraphErrorPolicy!

Set to allow to receive data even if the subgraph has skipped over errors while syncing.

auctionDetail

Type: AuctionDetail

auctionDetail index all auction that has been created on the Moxie protocol. You can use this API to fetch a certain auction.

Arguments

NameDescription

id
ID!

block
Block_height

The block at which the query should be executed. Can either be a { hash: Bytes } value containing a block hash, a { number: Int } containing the block number, or a { number_gte: Int } containing the minimum block number. In the case of number_gte, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.

subgraphError
SubgraphErrorPolicy!

Set to allow to receive data even if the subgraph has skipped over errors while syncing.

auctionDetails

Type: [AuctionDetail!]!

auctionDetails index all auctions that has been created in the Moxie protocol. You can use this API to fetch all auctions and filter based on certain requirements.

Arguments

NameDescription

skip
Int

first
Int

orderBy
AuctionDetail_orderBy

orderDirection
OrderDirection

where
AuctionDetail_filter

block
Block_height

The block at which the query should be executed. Can either be a { hash: Bytes } value containing a block hash, a { number: Int } containing the block number, or a { number_gte: Int } containing the minimum block number. In the case of number_gte, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.

subgraphError
SubgraphErrorPolicy!

Set to allow to receive data even if the subgraph has skipped over errors while syncing.

blockInfo

Type: BlockInfo

blockInfo enables you to fetch on-chain data related to a certain block.

Arguments

NameDescription

id
ID!

block
Block_height

The block at which the query should be executed. Can either be a { hash: Bytes } value containing a block hash, a { number: Int } containing the block number, or a { number_gte: Int } containing the minimum block number. In the case of number_gte, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.

subgraphError
SubgraphErrorPolicy!

Set to allow to receive data even if the subgraph has skipped over errors while syncing.

blockInfos

Type: [BlockInfo!]!

blockInfos enables you to fetch on-chain data related to blocks indexed by the subgraph, that is when certain events from the Moxie protocol's auction contract occurs.

This is most useful when you include it in the response field when calling other APIs.

Arguments

NameDescription

skip
Int

first
Int

orderBy
BlockInfo_orderBy

orderDirection
OrderDirection

where
BlockInfo_filter

block
Block_height

The block at which the query should be executed. Can either be a { hash: Bytes } value containing a block hash, a { number: Int } containing the block number, or a { number_gte: Int } containing the minimum block number. In the case of number_gte, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.

subgraphError
SubgraphErrorPolicy!

Set to allow to receive data even if the subgraph has skipped over errors while syncing.

cancellationSellOrder

Type: CancellationSellOrder

Arguments

NameDescription

id
ID!

block
Block_height

The block at which the query should be executed. Can either be a { hash: Bytes } value containing a block hash, a { number: Int } containing the block number, or a { number_gte: Int } containing the minimum block number. In the case of number_gte, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.

subgraphError
SubgraphErrorPolicy!

Set to allow to receive data even if the subgraph has skipped over errors while syncing.

cancellationSellOrders

Type: [CancellationSellOrder!]!

Arguments

NameDescription

skip
Int

first
Int

orderBy
CancellationSellOrder_orderBy

orderDirection
OrderDirection

where
CancellationSellOrder_filter

block
Block_height

The block at which the query should be executed. Can either be a { hash: Bytes } value containing a block hash, a { number: Int } containing the block number, or a { number_gte: Int } containing the minimum block number. In the case of number_gte, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.

subgraphError
SubgraphErrorPolicy!

Set to allow to receive data even if the subgraph has skipped over errors while syncing.

claimedFromOrder

Type: ClaimedFromOrder

Arguments

NameDescription

id
ID!

block
Block_height

The block at which the query should be executed. Can either be a { hash: Bytes } value containing a block hash, a { number: Int } containing the block number, or a { number_gte: Int } containing the minimum block number. In the case of number_gte, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.

subgraphError
SubgraphErrorPolicy!

Set to allow to receive data even if the subgraph has skipped over errors while syncing.

claimedFromOrders

Type: [ClaimedFromOrder!]!

Arguments

NameDescription

skip
Int

first
Int

orderBy
ClaimedFromOrder_orderBy

orderDirection
OrderDirection

where
ClaimedFromOrder_filter

block
Block_height

The block at which the query should be executed. Can either be a { hash: Bytes } value containing a block hash, a { number: Int } containing the block number, or a { number_gte: Int } containing the minimum block number. In the case of number_gte, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.

subgraphError
SubgraphErrorPolicy!

Set to allow to receive data even if the subgraph has skipped over errors while syncing.

newAuction

Type: NewAuction

Arguments

NameDescription

id
ID!

block
Block_height

The block at which the query should be executed. Can either be a { hash: Bytes } value containing a block hash, a { number: Int } containing the block number, or a { number_gte: Int } containing the minimum block number. In the case of number_gte, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.

subgraphError
SubgraphErrorPolicy!

Set to allow to receive data even if the subgraph has skipped over errors while syncing.

newAuctions

Type: [NewAuction!]!

Arguments

NameDescription

skip
Int

first
Int

orderBy
NewAuction_orderBy

orderDirection
OrderDirection

where
NewAuction_filter

block
Block_height

The block at which the query should be executed. Can either be a { hash: Bytes } value containing a block hash, a { number: Int } containing the block number, or a { number_gte: Int } containing the minimum block number. In the case of number_gte, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.

subgraphError
SubgraphErrorPolicy!

Set to allow to receive data even if the subgraph has skipped over errors while syncing.

newSellOrder

Type: NewSellOrder

Arguments

NameDescription

id
ID!

block
Block_height

The block at which the query should be executed. Can either be a { hash: Bytes } value containing a block hash, a { number: Int } containing the block number, or a { number_gte: Int } containing the minimum block number. In the case of number_gte, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.

subgraphError
SubgraphErrorPolicy!

Set to allow to receive data even if the subgraph has skipped over errors while syncing.

newSellOrders

Type: [NewSellOrder!]!

Arguments

NameDescription

skip
Int

first
Int

orderBy
NewSellOrder_orderBy

orderDirection
OrderDirection

where
NewSellOrder_filter

block
Block_height

The block at which the query should be executed. Can either be a { hash: Bytes } value containing a block hash, a { number: Int } containing the block number, or a { number_gte: Int } containing the minimum block number. In the case of number_gte, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.

subgraphError
SubgraphErrorPolicy!

Set to allow to receive data even if the subgraph has skipped over errors while syncing.

newUser

Type: NewUser

Arguments

NameDescription

id
ID!

block
Block_height

The block at which the query should be executed. Can either be a { hash: Bytes } value containing a block hash, a { number: Int } containing the block number, or a { number_gte: Int } containing the minimum block number. In the case of number_gte, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.

subgraphError
SubgraphErrorPolicy!

Set to allow to receive data even if the subgraph has skipped over errors while syncing.

newUsers

Type: [NewUser!]!

Arguments

NameDescription

skip
Int

first
Int

orderBy
NewUser_orderBy

orderDirection
OrderDirection

where
NewUser_filter

block
Block_height

The block at which the query should be executed. Can either be a { hash: Bytes } value containing a block hash, a { number: Int } containing the block number, or a { number_gte: Int } containing the minimum block number. In the case of number_gte, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.

subgraphError
SubgraphErrorPolicy!

Set to allow to receive data even if the subgraph has skipped over errors while syncing.

order

Type: Order

Arguments

NameDescription

id
ID!

block
Block_height

The block at which the query should be executed. Can either be a { hash: Bytes } value containing a block hash, a { number: Int } containing the block number, or a { number_gte: Int } containing the minimum block number. In the case of number_gte, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.

subgraphError
SubgraphErrorPolicy!

Set to allow to receive data even if the subgraph has skipped over errors while syncing.

orderCounter

Type: OrderCounter

Arguments

NameDescription

id
ID!

block
Block_height

The block at which the query should be executed. Can either be a { hash: Bytes } value containing a block hash, a { number: Int } containing the block number, or a { number_gte: Int } containing the minimum block number. In the case of number_gte, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.

subgraphError
SubgraphErrorPolicy!

Set to allow to receive data even if the subgraph has skipped over errors while syncing.

orderCounters

Type: [OrderCounter!]!

Arguments

NameDescription

skip
Int

first
Int

orderBy
OrderCounter_orderBy

orderDirection
OrderDirection

where
OrderCounter_filter

block
Block_height

The block at which the query should be executed. Can either be a { hash: Bytes } value containing a block hash, a { number: Int } containing the block number, or a { number_gte: Int } containing the minimum block number. In the case of number_gte, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.

subgraphError
SubgraphErrorPolicy!

Set to allow to receive data even if the subgraph has skipped over errors while syncing.

orders

Type: [Order!]!

Arguments

NameDescription

skip
Int

first
Int

orderBy
Order_orderBy

orderDirection
OrderDirection

where
Order_filter

block
Block_height

The block at which the query should be executed. Can either be a { hash: Bytes } value containing a block hash, a { number: Int } containing the block number, or a { number_gte: Int } containing the minimum block number. In the case of number_gte, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.

subgraphError
SubgraphErrorPolicy!

Set to allow to receive data even if the subgraph has skipped over errors while syncing.

orderTxn

Type: OrderTxn

Arguments

NameDescription

id
ID!

block
Block_height

The block at which the query should be executed. Can either be a { hash: Bytes } value containing a block hash, a { number: Int } containing the block number, or a { number_gte: Int } containing the minimum block number. In the case of number_gte, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.

subgraphError
SubgraphErrorPolicy!

Set to allow to receive data even if the subgraph has skipped over errors while syncing.

orderTxns

Type: [OrderTxn!]!

Arguments

NameDescription

skip
Int

first
Int

orderBy
OrderTxn_orderBy

orderDirection
OrderDirection

where
OrderTxn_filter

block
Block_height

The block at which the query should be executed. Can either be a { hash: Bytes } value containing a block hash, a { number: Int } containing the block number, or a { number_gte: Int } containing the minimum block number. In the case of number_gte, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.

subgraphError
SubgraphErrorPolicy!

Set to allow to receive data even if the subgraph has skipped over errors while syncing.

ownershipTransferred

Type: OwnershipTransferred

Arguments

NameDescription

id
ID!

block
Block_height

The block at which the query should be executed. Can either be a { hash: Bytes } value containing a block hash, a { number: Int } containing the block number, or a { number_gte: Int } containing the minimum block number. In the case of number_gte, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.

subgraphError
SubgraphErrorPolicy!

Set to allow to receive data even if the subgraph has skipped over errors while syncing.

ownershipTransferreds

Type: [OwnershipTransferred!]!

Arguments

NameDescription

skip
Int

first
Int

orderBy
OwnershipTransferred_orderBy

orderDirection
OrderDirection

where
OwnershipTransferred_filter

block
Block_height

The block at which the query should be executed. Can either be a { hash: Bytes } value containing a block hash, a { number: Int } containing the block number, or a { number_gte: Int } containing the minimum block number. In the case of number_gte, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.

subgraphError
SubgraphErrorPolicy!

Set to allow to receive data even if the subgraph has skipped over errors while syncing.

summaries

Type: [Summary!]!

Arguments

NameDescription

skip
Int

first
Int

orderBy
Summary_orderBy

orderDirection
OrderDirection

where
Summary_filter

block
Block_height

The block at which the query should be executed. Can either be a { hash: Bytes } value containing a block hash, a { number: Int } containing the block number, or a { number_gte: Int } containing the minimum block number. In the case of number_gte, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.

subgraphError
SubgraphErrorPolicy!

Set to allow to receive data even if the subgraph has skipped over errors while syncing.

summary

Type: Summary

Arguments

NameDescription

id
ID!

block
Block_height

The block at which the query should be executed. Can either be a { hash: Bytes } value containing a block hash, a { number: Int } containing the block number, or a { number_gte: Int } containing the minimum block number. In the case of number_gte, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.

subgraphError
SubgraphErrorPolicy!

Set to allow to receive data even if the subgraph has skipped over errors while syncing.

token

Type: Token

Arguments

NameDescription

id
ID!

block
Block_height

The block at which the query should be executed. Can either be a { hash: Bytes } value containing a block hash, a { number: Int } containing the block number, or a { number_gte: Int } containing the minimum block number. In the case of number_gte, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.

subgraphError
SubgraphErrorPolicy!

Set to allow to receive data even if the subgraph has skipped over errors while syncing.

tokens

Type: [Token!]!

Arguments

NameDescription

skip
Int

first
Int

orderBy
Token_orderBy

orderDirection
OrderDirection

where
Token_filter

block
Block_height

The block at which the query should be executed. Can either be a { hash: Bytes } value containing a block hash, a { number: Int } containing the block number, or a { number_gte: Int } containing the minimum block number. In the case of number_gte, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.

subgraphError
SubgraphErrorPolicy!

Set to allow to receive data even if the subgraph has skipped over errors while syncing.

user

Type: User

Arguments

NameDescription

id
ID!

block
Block_height

The block at which the query should be executed. Can either be a { hash: Bytes } value containing a block hash, a { number: Int } containing the block number, or a { number_gte: Int } containing the minimum block number. In the case of number_gte, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.

subgraphError
SubgraphErrorPolicy!

Set to allow to receive data even if the subgraph has skipped over errors while syncing.

userRegistration

Type: UserRegistration

Arguments

NameDescription

id
ID!

block
Block_height

The block at which the query should be executed. Can either be a { hash: Bytes } value containing a block hash, a { number: Int } containing the block number, or a { number_gte: Int } containing the minimum block number. In the case of number_gte, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.

subgraphError
SubgraphErrorPolicy!

Set to allow to receive data even if the subgraph has skipped over errors while syncing.

userRegistrations

Type: [UserRegistration!]!

Arguments

NameDescription

skip
Int

first
Int

orderBy
UserRegistration_orderBy

orderDirection
OrderDirection

where
UserRegistration_filter

block
Block_height

The block at which the query should be executed. Can either be a { hash: Bytes } value containing a block hash, a { number: Int } containing the block number, or a { number_gte: Int } containing the minimum block number. In the case of number_gte, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.

subgraphError
SubgraphErrorPolicy!

Set to allow to receive data even if the subgraph has skipped over errors while syncing.

users

Type: [User!]!

Arguments

NameDescription

skip
Int

first
Int

orderBy
User_orderBy

orderDirection
OrderDirection

where
User_filter

block
Block_height

The block at which the query should be executed. Can either be a { hash: Bytes } value containing a block hash, a { number: Int } containing the block number, or a { number_gte: Int } containing the minimum block number. In the case of number_gte, the query will be executed on the latest block only if the subgraph has progressed to or past the minimum block number. Defaults to the latest block when omitted.

subgraphError
SubgraphErrorPolicy!

Set to allow to receive data even if the subgraph has skipped over errors while syncing.