-
Notifications
You must be signed in to change notification settings - Fork 35
/
TokenInfoFilter.cs
41 lines (35 loc) · 1.47 KB
/
TokenInfoFilter.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
using Newtonsoft.Json;
namespace Tzkt.Api
{
public class TokenInfoFilter
{
/// <summary>
/// Filter by internal TzKT id. Note, this is not the same as `tokenId`.
/// Click on the parameter to expand more details.
/// </summary>
public Int32Parameter id { get; set; }
/// <summary>
/// Filter by contract address.
/// Click on the parameter to expand more details.
/// </summary>
public AccountParameter contract { get; set; }
/// <summary>
/// Filter by tokenId (for FA1.2 tokens tokenId is always `"0"`).
/// Click on the parameter to expand more details.
/// </summary>
public NatParameter tokenId { get; set; }
/// <summary>
/// Filter by token standard (`fa1.2` or `fa2`).
/// Click on the parameter to expand more details.
/// </summary>
public TokenStandardParameter standard { get; set; }
/// <summary>
/// Filter by metadata. Note, this parameter supports the following format: `token.metadata{.path?}{.mode?}=...`,
/// so you can specify a path to a particular field to filter by, for example: `?token.metadata.symbol.in=kUSD,uUSD`.
/// Click on the parameter to expand more details.
/// </summary>
public JsonParameter metadata { get; set; }
[JsonIgnore]
public bool HasFilters => contract != null || tokenId != null || standard != null;
}
}