Skip to main content

Get Payment History

GET /v1/trovo-api/users/payment-history/${walletPublicKey}

This gets the paginated payment history for the $walletPublicKey specified: public key must be within your access scope.

Json Response

{
Pages int `json:"pages"`
CurrentPage int `json:"currentPage"`
TotalRecords int `json:"totalRecords"`
Limit int `json:"limit"`
Records [ ]PaymentHistoryJSON `json:"records"`
}

PaymentHistoryJSON object:

{
TransactionDate time.Time `json:"transactionDate"`
TransactionType string `json:"transactionType"`
From string `json:"from"` //trovoapp alias and name
FromPublicKey string `json:"fromPublicKey"`
To string `json:"to"` //trovoapp alias and name
ToPublicKey string `json:"toPublicKey"`
Memo string `json:"memo"`
AssetIssuer string `json:"assetIssuer"`
AssetCode string `json:"assetCode"`
Amount string `json:"amount"`
TransactionID string `json:"transactionId"`
}

Query Filters

  • page: sets the page to view. Defaults to 1
  • limit: default is 25. Sets how many records per page.
  • transactionType: sets which transaction type to filter with. Select from the available list: payment, swap, burn token, mint token.
  • fromPublicKey: filters by the public key where the payment was done from.
  • toPublicKey: filters by the public key where the payment was sent to.
  • assetIssuer: by the issuer of the asset.
  • assetCode: by the asset code
  • name: filters by the name of sender. Only when the name is at least 2 characters long that it is applicable. It searches in part.
  • memo: filters by memo part. Only when the memo is at least 2 characters long that it can be useful as a parameter.
  • dateBetween: this filters by the date range separated by a pipe character. 2020-01-01|2020-02-31 full range date that filters transaction between 2020-01-01 and 2020-02-31
  • amount: this filters by the amount in the form of a range. E.g 8|2900 filters amount from units 8 to 2900.
  • transactionID: filters by the transaction hash id.