SecretNET.Token Namespace

Snip20Querier..::..GetTransferHistory Method

Gets the transfer history (This query MUST be authenticated). This query SHOULD return a list of json objects describing the transactions made by the querying address, in newest-first order. The user may optionally specify a limit on the amount of information returned by paging the available items.

Namespace:  SecretNET.Token
Assembly:  SecretNET.Token (in SecretNET.Token.dll)

Syntax


public Task<SecretQueryContractResult<GetTransferHistoryResponse>> GetTransferHistory(
	string contractAddress,
	int pageSize,
	Nullable<int> page,
	Nullable<string> walletAddress,
	Nullable<string> viewingKey,
	Nullable<Permit> permit,
	Nullable<string> codeHash
)
Public Function GetTransferHistory ( _
	contractAddress As String, _
	pageSize As Integer, _
	page As Nullable(Of Integer), _
	walletAddress As Nullable(Of String), _
	viewingKey As Nullable(Of String), _
	permit As Nullable(Of Permit), _
	codeHash As Nullable(Of String) _
) As Task(Of SecretQueryContractResult(Of GetTransferHistoryResponse))
public:
Task<SecretQueryContractResult<GetTransferHistoryResponse^>^>^ GetTransferHistory(
	String^ contractAddress, 
	int^ pageSize, 
	Nullable<int^> page, 
	Nullable<String^> walletAddress, 
	Nullable<String^> viewingKey, 
	Nullable<Permit^> permit, 
	Nullable<String^> codeHash
)

Parameters

contractAddress
Type: String
The contract address.
pageSize
Type: Int32
Number of transactions to return, starting from the latest. i.e. n=1 will return only the latest transaction..
page
Type: Nullable<(Of <(<'Int32>)>)>
This defaults to 0. Specifying a positive number will skip page * page_size txs from the start.
walletAddress
Type: Nullable<(Of <(<'String>)>)>
The wallet address.
viewingKey
Type: Nullable<(Of <(<'String>)>)>
Authenticate with viewing key.
permit
Type: Nullable<(Of <(<'Permit>)>)>
Authenticate with permit.
codeHash
Type: Nullable<(Of <(<'String>)>)>
CodeHash is (not really) optional and makes a call way faster.

Return Value

SecretQueryContractResult<GetTransferHistoryResponse>.