@@ -32,7 +32,7 @@ type AccountBalance struct {
32
32
33
33
// NormalTx holds info from normal tx query
34
34
type NormalTx struct {
35
- BlockNumber int `json:"blockNumber,string"`
35
+ BlockNumber int64 `json:"blockNumber,string"`
36
36
TimeStamp Time `json:"timeStamp"`
37
37
Hash string `json:"hash"`
38
38
Nonce int `json:"nonce,string"`
@@ -41,20 +41,22 @@ type NormalTx struct {
41
41
From string `json:"from"`
42
42
To string `json:"to"`
43
43
Value * BigInt `json:"value"`
44
- Gas int `json:"gas,string"`
44
+ Gas int64 `json:"gas,string"`
45
45
GasPrice * BigInt `json:"gasPrice"`
46
46
IsError int `json:"isError,string"`
47
47
TxReceiptStatus string `json:"txreceipt_status"`
48
48
Input string `json:"input"`
49
49
ContractAddress string `json:"contractAddress"`
50
- CumulativeGasUsed int `json:"cumulativeGasUsed,string"`
51
- GasUsed int `json:"gasUsed,string"`
50
+ CumulativeGasUsed int64 `json:"cumulativeGasUsed,string"`
51
+ GasUsed int64 `json:"gasUsed,string"`
52
52
Confirmations int `json:"confirmations,string"`
53
+ MethodId string `json:"methodId"`
54
+ FunctionName string `json:"functionName"`
53
55
}
54
56
55
57
// InternalTx holds info from internal tx query
56
58
type InternalTx struct {
57
- BlockNumber int `json:"blockNumber,string"`
59
+ BlockNumber int64 `json:"blockNumber,string"`
58
60
TimeStamp Time `json:"timeStamp"`
59
61
Hash string `json:"hash"`
60
62
From string `json:"from"`
@@ -63,19 +65,19 @@ type InternalTx struct {
63
65
ContractAddress string `json:"contractAddress"`
64
66
Input string `json:"input"`
65
67
Type string `json:"type"`
66
- Gas int `json:"gas,string"`
67
- GasUsed int `json:"gasUsed,string"`
68
+ Gas int64 `json:"gas,string"`
69
+ GasUsed int64 `json:"gasUsed,string"`
68
70
TraceID string `json:"traceId"`
69
71
IsError int `json:"isError,string"`
70
72
ErrCode string `json:"errCode"`
71
73
}
72
74
73
75
// ERC20Transfer holds info from ERC20 token transfer event query
74
76
type ERC20Transfer struct {
75
- BlockNumber int `json:"blockNumber,string"`
77
+ BlockNumber int64 `json:"blockNumber,string"`
76
78
TimeStamp Time `json:"timeStamp"`
77
79
Hash string `json:"hash"`
78
- Nonce int `json:"nonce,string"`
80
+ Nonce int64 `json:"nonce,string"`
79
81
BlockHash string `json:"blockHash"`
80
82
From string `json:"from"`
81
83
ContractAddress string `json:"contractAddress"`
@@ -85,20 +87,20 @@ type ERC20Transfer struct {
85
87
TokenSymbol string `json:"tokenSymbol"`
86
88
TokenDecimal uint8 `json:"tokenDecimal,string"`
87
89
TransactionIndex int `json:"transactionIndex,string"`
88
- Gas int `json:"gas,string"`
90
+ Gas int64 `json:"gas,string"`
89
91
GasPrice * BigInt `json:"gasPrice"`
90
- GasUsed int `json:"gasUsed,string"`
91
- CumulativeGasUsed int `json:"cumulativeGasUsed,string"`
92
+ GasUsed int64 `json:"gasUsed,string"`
93
+ CumulativeGasUsed int64 `json:"cumulativeGasUsed,string"`
92
94
Input string `json:"input"`
93
95
Confirmations int `json:"confirmations,string"`
94
96
}
95
97
96
98
// ERC721Transfer holds info from ERC721 token transfer event query
97
99
type ERC721Transfer struct {
98
- BlockNumber int `json:"blockNumber,string"`
100
+ BlockNumber int64 `json:"blockNumber,string"`
99
101
TimeStamp Time `json:"timeStamp"`
100
102
Hash string `json:"hash"`
101
- Nonce int `json:"nonce,string"`
103
+ Nonce int64 `json:"nonce,string"`
102
104
BlockHash string `json:"blockHash"`
103
105
From string `json:"from"`
104
106
ContractAddress string `json:"contractAddress"`
@@ -108,20 +110,20 @@ type ERC721Transfer struct {
108
110
TokenSymbol string `json:"tokenSymbol"`
109
111
TokenDecimal uint8 `json:"tokenDecimal,string"`
110
112
TransactionIndex int `json:"transactionIndex,string"`
111
- Gas int `json:"gas,string"`
113
+ Gas int64 `json:"gas,string"`
112
114
GasPrice * BigInt `json:"gasPrice"`
113
- GasUsed int `json:"gasUsed,string"`
114
- CumulativeGasUsed int `json:"cumulativeGasUsed,string"`
115
+ GasUsed int64 `json:"gasUsed,string"`
116
+ CumulativeGasUsed int64 `json:"cumulativeGasUsed,string"`
115
117
Input string `json:"input"`
116
118
Confirmations int `json:"confirmations,string"`
117
119
}
118
120
119
121
// ERC1155Transfer holds info from ERC1155 token transfer event query
120
122
type ERC1155Transfer struct {
121
- BlockNumber int `json:"blockNumber,string"`
123
+ BlockNumber int64 `json:"blockNumber,string"`
122
124
TimeStamp Time `json:"timeStamp"`
123
125
Hash string `json:"hash"`
124
- Nonce int `json:"nonce,string"`
126
+ Nonce int64 `json:"nonce,string"`
125
127
BlockHash string `json:"blockHash"`
126
128
From string `json:"from"`
127
129
ContractAddress string `json:"contractAddress"`
@@ -132,10 +134,10 @@ type ERC1155Transfer struct {
132
134
TokenDecimal uint8 `json:"tokenDecimal,string"`
133
135
TokenValue uint8 `json:"tokenValue,string"`
134
136
TransactionIndex int `json:"transactionIndex,string"`
135
- Gas int `json:"gas,string"`
137
+ Gas int64 `json:"gas,string"`
136
138
GasPrice * BigInt `json:"gasPrice"`
137
- GasUsed int `json:"gasUsed,string"`
138
- CumulativeGasUsed int `json:"cumulativeGasUsed,string"`
139
+ GasUsed int64 `json:"gasUsed,string"`
140
+ CumulativeGasUsed int64 `json:"cumulativeGasUsed,string"`
139
141
Input string `json:"input"`
140
142
Confirmations int `json:"confirmations,string"`
141
143
}
0 commit comments