Global Object Identification

Get any object (or array of objects) with just their IDs

The BuyCoins API GraphQL Schema implements the GraphQL Global Object Identification Specification.

What this means is that you can use the node or nodes query to get ANY object(s) as long as you have the id(s).

For example, if you wanted to pull data on a Transaction:

node(id: "VHlwZXM6OlB1YmxpY0FwaTo6QWRkcmVzcy1mOGRmNGZlYy1iZTJmLTQ1YjktOWJjMy04YjMwMGNhZTg5Y2I") {
... on Transaction {
txhash
address
confirmed
}
}

Alternatively, if you had a list/an array of ids:

nodes(ids: ["id1", "id2"]){
...on Transaction {
txhash
address
}
...on Address {
cryptocurrency
}
}

As can be seen from the example above, you can handle for multiple types.