Guides

Profile Action History

Introduction

The Profile Action History query allows authorized users to retrieve a history of profile actions. This query provides information about actions performed by users, including details such as action type, user, transaction hash, and action timestamp.

Authorization Required: Only authorized users can use this endpoint.

Query: profileActionHistory

Retrieve a history of profile actions.

Input

  • request (Type: ProfileActionHistoryRequest!): An object that contains the query parameters. This request may include pagination options.

Output

  • items (Type: [ProfileAction!]): A list of ProfileAction objects, each representing a profile action.

    • id (Type: ID!): The unique identifier of the action.
    • actionType (Type: String!): The type of action performed.
    • who (Type: String!): The user who performed the action.
    • txHash (Type: String!): The transaction hash associated with the action.
    • actionedOn (Type: DateTime!): The timestamp when the action was performed.
  • pageInfo (Type: PageInfo): Pagination information for navigating the list.

    • prev (Type: String): The previous page token for pagination.
    • next (Type: String): The next page token for pagination.

Input Type: ProfileActionHistoryRequest

This input type is used to specify the parameters for the profileActionHistory query, including pagination options.

Fields

  • offset (Type: Int): The number of items to skip before starting to collect the query results.
  • limit (Type: Int): The maximum number of items to return in the query results.

Example Query

Here's an example query that retrieves a history of profile actions:

query {
  profileActionHistory(request: { offset: 0, limit: 10 }) {
    items {
      id
      actionType
      who
      txHash
      actionedOn
    }
    pageInfo {
      prev
      next
    }
  }
}