/
txNormal_model.go
28 lines (26 loc) · 1.3 KB
/
txNormal_model.go
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
package blockscan
type getNormalTxsReq struct {
Status string `json:"status"`
Message string `json:"message"`
Result []NormalTxs `json:"result"`
}
type NormalTxs struct {
BlockNumber string `json:"blockNumber"` // tx block number
TimeStamp string `json:"timeStamp"` // tx timestamp
Hash string `json:"hash"` // tx hash
Nonce string `json:"nonce"` // tx nonce
BlockHash string `json:"blockHash"` // tx block hash
TransactionIndex string `json:"transactionIndex"` // tx index
From string `json:"from"` // who call the contract
To string `json:"to"` // who received the call
Value string `json:"value"` // value in WEI
Gas string `json:"gas"` //
GasPrice string `json:"gasPrice"` //
IsError string `json:"isError"` //
TxreceiptStatus string `json:"txreceipt_status"` //
Input string `json:"input"` // call data
ContractAddress string `json:"contractAddress"` //
CumulativeGasUsed string `json:"cumulativeGasUsed"` //
GasUsed string `json:"gasUsed"` //
Confirmations string `json:"confirmations"` //
}