Skip to main content

Get Transaction History

Retrieves all transactions made from a user and a coin.

curl --request POST 'https://api.beta.luxor.tech/graphql' \
--header 'Content-Type: application/json' \
--header 'x-lux-api-key: YOUR_API_KEY' \
--data-raw '{"query":"getTransactionHistory($cid: CurrencyProfileName!, $uname:String!, $first:Int) {getTransactionHistory(uname: $uname, cid: $cid, first: $first){edges {node {createdAt amount status transactionId}}}}"}'

Example

query getTransactionHistory {
getTransactionHistory(cid: ARRR, uname: "") {
nodes {
amount
coinPrice
createdAt
id
rowId
status
transactionId
}
}
}

Response

{
"data": {
"getTransactionHistory": {
"edges": [
{
"node": {
"createdAt": "",
"amount": "",
"status": "",
"transactionId": ""
}
}
]
}
}
}

Arguments

uname (String!)

cid (CurrencyProfileName!)

first (Int)

Only read the first n values of the set.

last (Int)

Only read the last n values of the set.

offset (Int)

Skip the first n values from our after cursor, an alternative to cursor based pagination. May not be used with last.

before (Cursor)

Read all values in the set before (above) this cursor.

after (Cursor)

Read all values in the set after (below) this cursor.

orderBy ([PayoutTxesOrderBy!])

The method to use when ordering PayoutTx.

filter (PayoutTxFilter)

A filter to be used in determining which values should be returned by the collection.

Type

PayoutTxesConnection

A connection to a list of PayoutTx values.