-
Notifications
You must be signed in to change notification settings - Fork 34
/
TokenBalance.cs
68 lines (58 loc) · 1.99 KB
/
TokenBalance.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
using System.Numerics;
using NJsonSchema.Annotations;
namespace Tzkt.Api.Models
{
public class TokenBalance
{
/// <summary>
/// Internal TzKT id.
/// **[sortable]**
/// </summary>
public long Id { get; set; }
/// <summary>
/// Owner account.
/// Click on the field to expand more details.
/// </summary>
public Alias Account { get; set; }
/// <summary>
/// Token info.
/// Click on the field to expand more details.
/// </summary>
public TokenInfo Token { get; set; }
/// <summary>
/// Balance (raw value, not divided by `decimals`).
/// **[sortable]**
/// </summary>
[JsonSchemaType(typeof(string), IsNullable = false)]
public BigInteger Balance { get; set; }
/// <summary>
/// Balance value in mutez, based on the current token price.
/// **[sortable]**
/// </summary>
[JsonSchemaType(typeof(string), IsNullable = true)]
public BigInteger? BalanceValue { get; set; }
/// <summary>
/// Total number of transfers, affecting the token balance.
/// **[sortable]**
/// </summary>
public int TransfersCount { get; set; }
/// <summary>
/// Level of the block where the token balance was first changed.
/// **[sortable]**
/// </summary>
public int FirstLevel { get; set; }
/// <summary>
/// Timestamp of the block where the token balance was first changed.
/// </summary>
public DateTime FirstTime { get; set; }
/// <summary>
/// Level of the block where the token balance was last changed.
/// **[sortable]**
/// </summary>
public int LastLevel { get; set; }
/// <summary>
/// Timestamp of the block where the token balance was last changed.
/// </summary>
public DateTime LastTime { get; set; }
}
}