Snip20Querier..::..GetTransactionHistory Method
The original TransferHistory query paints an incomplete picture of users' interactions with the token.
It only records operations performed through Transfer, TransferFrom, Send, and SendFrom, while the other operations which move funds around - Mint, Burn, Deposit, Withdraw etc.
are not recorded and can not be easily tracked by users after the fact.
The following is the specification of the new TransactionHistory query, which aims to provide a complete description of the history of users' balances.
This query MUST be authenticated.
Namespace:
SecretNET.TokenAssembly: SecretNET.Token (in SecretNET.Token.dll)
Syntax
public Task<SecretQueryContractResult<GetTransactionHistoryResponse>> GetTransactionHistory( string contractAddress, int pageSize, string viewingKey, Permit permit, Nullable<int> page, Nullable<string> walletAddress, Nullable<string> codeHash )
Public Function GetTransactionHistory ( _ contractAddress As String, _ pageSize As Integer, _ viewingKey As String, _ permit As Permit, _ page As Nullable(Of Integer), _ walletAddress As Nullable(Of String), _ codeHash As Nullable(Of String) _ ) As Task(Of SecretQueryContractResult(Of GetTransactionHistoryResponse))
Parameters
- contractAddress
- Type: String
The contract address.
- pageSize
- Type: Int32
Size of the page.
- viewingKey
- Type: String
The viewing key.
- permit
- Type: Permit
The permit.