GraphQL API

A GraphQL API including a query UI is available at https://q.instamint.network. Currently, the service searches through staging data only and will point to production data soon.

Asset Query & Schema

type asset {
    xref: String 
    instamint_asset_hashid: String 
    algorand_assetid: Int 
    explorerurl: String 
    created_at: String 
    mint_completed_status: Boolean 
    mint_requestjson: String 
    senderpk: String 
    clawbackpk: String 
    managerpk: String 
    freezepk: String 
    asset_name: String 
    unit_name: String 
    default_frozen: Boolean 
    total: String 
    parties: party
}

type party {
    owner: String 
    client: String 
    custodian: String 
    issuer: String
}

type Query {
    allAssets: [asset] asset(hashid: String): asset
}

Sample Query

The following sample query illustrates how GraphQL can be used to query asset data. The below query looks up an asset with hash ID a0517...2195/

Query
query sampleQuery {
  asset(hashid:"4cddb4593e5d6a4ecd38bf86bb00e24fdd419cdbd27903b3b939dab10e60da0c") {
    mint_completed_status
    explorerurl
    xref
    algorand_assetid
  }
}
Results
{
  "data": {
    "asset": {
      "mint_completed_status": true,
      "explorerurl": "https://testnet.algoexplorer.io/tx/BREN32FCVNV6UBT3ZEGNADHVIFDYY5K22V2AFVYZCQHRJMBLEPSQ",
      "xref": "invoice323",
      "algorand_assetid": 111900776
    }
  }
}

Access to the GraphQL is available via API or user interfaces, as demonstrated below

Last updated