Queries for Contract Addresses

contractAddress

Returns a single contract address.

contractAddress(id) {
  /* ContractAddress fields */
}

Arguments

id Int! -- required

The ID of the contract address to return.

Response

ContractAddress.* ContractAddress

Any requested field from the ContractAddress object.

Example

Request

query {
  contractAddress(id: 23) {
    id
    address
    game {
      name
    }
    collection {
      name
    }
  }
}

Response

{
  "data": {
    "contractAddress": {
      "id": 23,
      "address": "0x4a537f61ef574153664c0dbc8c8f4b900cacbe5d",
      "game": {
        "name": "Heroes of Mavia"
      },
      "collection": {
        "name": "Land"
      }
    }
  }
}

contractAddresses

Returns all available contract addresses.

contractAddresses {
  /* ContractAddress fields */
}

Arguments

None

Response

ContractAddress.* [ContractAddress!]

A list of ContractAddress objects returning any requested fields from the ContractAddress object.

Example

Request

query {
  contractAddresses {
    id
    address
  }
}

Response

{
  "data": {
    "contractAddresses": [
      {
        "id": 71,
        "address": "0x3f101ea630737a578672e1740d820dda16c07f31"
      },
      {
        "id": 76,
        "address": "0xfefd7cefa51282d0c9da3eea661e3e90ccbe7508"
      },
      
      ...
      
      {
        "id": 1,
        "address": "0xf87e31492faf9a91b02ee0deaad50d51d56d5d4d"
      }
    ]
  }
}