API Docs
Revenue
Get Transaction History

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 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.

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’s rowId field.

  • createdAt (DatetimeFilter) Filter by the object’s createdAt 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 unique ID.
  • 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!) The PayoutTx 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 all PayoutTx you could get from the connection.