-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathTxJson.cs
45 lines (36 loc) · 883 Bytes
/
TxJson.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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Newtonsoft.Json;
namespace Generator
{
public class JSONBack
{
[JsonProperty("CellID")]
public Int64 CellID;
[JsonProperty("hash")]
public String hash;
[JsonProperty("time")]
public Int64 time;
[JsonProperty("ins")]
public List<Input> ins;
[JsonProperty("outs")]
public List<string> outs;
[JsonProperty("amount")]
public Int64 amount;
}
public class Input
{
public Input(string _addr, Int64 _tx_index)
{
this.addr = _addr;
this.tx_index = _tx_index;
}
[JsonProperty("addr")]
public string addr;
[JsonProperty("tx_index")]
public Int64 tx_index;
}
}