Get Transaction History
Retrieves all transactions made from a user and a coin.
Example
query getTransactionHistory {
getTransactionHistory(cid: ARRR, uname: "", first: 10) {
nodes {
amount
coinPrice
createdAt
rowId
status
transactionId
}
}
}
Response
{
"data": {
"getTransactionHistory": {
"edges": [
{
"node": {
"amount": "",
"coinPrice": "",
"createdAt": "",
"rowId": "",
"status": "",
"transactionId": ""
}
}
]
}
}
}
Arguments
-
uname
(String!
) -
cid
(CurrencyProfileName!)
enum CurrencyProfileName {
ARRR
BTC
DASH
DCR
KMD
LBC
SC
SCP
ZEC
ZEN
USD
TBTC
ETH
TETH
USDT
}
-
first
(Int
) Only read the firstn
values of the set. -
last
(Int
) Only read the lastn
values of the set. -
offset
(Int
) Skip the firstn
values from ourafter
cursor, an alternative to cursor based pagination. May not be used withlast
. -
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 orderingPayoutTx
.
enum PayoutTxesOrderBy {
NATURAL
ID_ASC
ID_DESC
CREATED_AT_ASC
CREATED_AT_DESC
PRIMARY_KEY_ASC
PRIMARY_KEY_DESC
}
Filter
PayoutTxFilter
A filter to be used in determining which values should be returned by the collection.
type PayoutTxFilter {
rowId: IntFilter
createdAt: DatetimeFilter
and: [PayoutTxFilter!]
or: [PayoutTxFilter!]
not: PayoutTxFilter
}
Fields
-
rowId
(IntFilter
) Filter by the object’srowId
field. -
createdAt
(DatetimeFilter
) Filter by the object’screatedAt
field. -
and
([PayoutTxFilter!]) Checks for all expressions in this list. -
or
([PayoutTxFilter!]) Checks for any expressions in this list. -
not
([PayoutTxFilter]) Negates the expression.
Type
PayoutTxesConnection
A connection to a list of PayoutTx
values.
type PayoutTxesConnection {
nodes: [PayoutTx!]!
edges: [PayoutTxesEdge!]!
pageInfo: PageInfo!
totalCount: Int!
}
Fields
nodes
([PayoutTx!]!)
A list of PayoutTx
objects.
type PayoutTx implements Node {
id: ID!
rowId: Int!
createdAt: Datetime
amount: BigFloat
transactionId: String
status: String
coinPrice: BigFloat
}
Fields
-
id
(ID!
) A globally unique identifier. Can be used in various places throughout the system to identify this single value. -
rowId
(Int!
) -
createdAt
(Datetime
) Date and time when a payout tx was created -
amount
(BigFloat
) Amount of the payout transaction -
transactionId
(String
) Transaction Identifier -
status
(String
) Status of the payout transaction -
coinPrice
(BigFloat
)
Interfaces
Node
An object with a globally uniqueID
.
edges
([PayoutTxesEdge!]!)
A list of edges which contains the PayoutTx
and cursor to aid in pagination.
type PayoutTxesEdge {
cursor: Cursor
node: PayoutTx!
}
Fields
-
cursor
(Cursor
) A cursor for use in pagination. -
node
(PayoutTx!) ThePayoutTx
at the end of the edge.
pageInfo
Information to aid in pagination.
type PageInfo {
hasNextPage: Boolean!
hasPreviousPage: Boolean!
startCursor: Cursor
endCursor: Cursor
}
totalCount
(Int!
) The count of allPayoutTx
you could get from the connection.