Comment on page

User Non-Marketplace Activity & History

For tracking non-marketplace related activity that happens to a token (e.g Mints, Staking, Loans)
*Note: Currently we only support "MINT", Staking is coming soon
Function: getNonMpaUserHistory
Inputs:
Condition Inputs:
  • [Required] userAddress
    • Type: String
    • Description: Wallet address of user
  • [Required] nonMpaActionTypes
    • Type: NonMarketplaceActionEnums[]
    • Description: Non market place actions
    • Example:
    • [
      "MINT"
      ]
Example
const hsClient = new HyperspaceClient(API_KEY);
hsClient.getNonMpaUserHistory({
condition: {
userAddress: publicKey.toString(),
nonMpaActionTypes: ["MINT"] as NonMarketplaceActionEnums[]
},
paginationInfo: {
page_size: 30,
page_number: 1
}
}).then(result => console.log(result.getNonMpaUserHistory.market_place_snapshots));