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

1
type asset {
2
xref: String
3
instamint_asset_hashid: String
4
algorand_assetid: Int
5
explorerurl: String
6
created_at: String
7
mint_completed_status: Boolean
8
mint_requestjson: String
9
senderpk: String
10
clawbackpk: String
11
managerpk: String
12
freezepk: String
13
asset_name: String
14
unit_name: String
15
default_frozen: Boolean
16
total: String
17
parties: party
18
}
19
20
type party {
21
owner: String
22
client: String
23
custodian: String
24
issuer: String
25
}
26
27
type Query {
28
allAssets: [asset] asset(hashid: String): asset
29
}
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
1
query sampleQuery {
2
asset(hashid:"4cddb4593e5d6a4ecd38bf86bb00e24fdd419cdbd27903b3b939dab10e60da0c") {
3
mint_completed_status
4
explorerurl
5
xref
6
algorand_assetid
7
}
8
}
9
Results
1
{
2
"data": {
3
"asset": {
4
"mint_completed_status": true,
5
"explorerurl": "https://testnet.algoexplorer.io/tx/BREN32FCVNV6UBT3ZEGNADHVIFDYY5K22V2AFVYZCQHRJMBLEPSQ",
6
"xref": "invoice323",
7
"algorand_assetid": 111900776
8
}
9
}
10
}
Access to the GraphQL is available via API or user interfaces, as demonstrated below
GraphQL access via UI at https://q.instamint.network
GraphQL access via Postman / CURL