sale
Returns a single sale.
sale(id, order_key) {
/* Sale fields */
}
Arguments
id
Int
id
IntThe ID of the Sale to return. Cannot be used at the same time as order_key
.
order_key
String
order_key
StringThe order key of the Sale to return. Cannot be used at the same time as id
.
Response
Sale.*
Sale
Sale.*
SaleAny requested field from the AssetType object.
Example
Request
query {
sale(id: 63774) {
id
amount
listing {
id
}
marketplace {
name
}
order_key
created_at
}
}
query {
sale(order_key: "0x68dc4030a19e8e7aa01223a2525b44d0af9b78651caaefe688b5fc7c098df93b") {
id
amount
listing {
id
}
marketplace {
name
}
order_key
created_at
}
}
Response
{
"data": {
"sale": {
"id": 63774,
"amount": "1200000000000000000",
"listing": {
"id": 5437680,
"order_key": "0x68dc4030a19e8e7aa01223a2525b44d0af9b78651caaefe688b5fc7c098df93b"
},
"marketplace": {
"name": "x2y2"
},
"order_key": "0x68dc4030a19e8e7aa01223a2525b44d0af9b78651caaefe688b5fc7c098df93b",
"created_at": "2023-04-15 19:22:09+0000"
}
}
}