forked from FISCO-BCOS/go-sdk
/
transaction_detail.go
70 lines (57 loc) · 1.65 KB
/
transaction_detail.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
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
69
70
package types
type TransactionDetail struct {
Abi string `json:"abi"`
BlockLimit int64 `json:"blockLimit"`
ChainID string `json:"chainID"`
From string `json:"from"`
GroupID string `json:"groupID"`
Hash string `json:"hash"`
ImportTime int64 `json:"importTime"`
Input string `json:"input"`
Nonce string `json:"nonce"`
Signature string `json:"signature"`
To string `json:"to"`
TransactionProof []string `json:"txProof"`
Version uint64 `json:"version"`
}
func (t *TransactionDetail) GetAbi() string {
return t.Abi
}
func (t *TransactionDetail) GetBlockLimit() int64 {
return t.BlockLimit
}
func (t *TransactionDetail) GetChainID() string {
return t.ChainID
}
// GetValue returns the transaction pfrom address string
func (t *TransactionDetail) GetFrom() string {
return t.From
}
func (t *TransactionDetail) GetGroupID() string {
return t.GroupID
}
// GetValue returns the transaction hash string
func (t *TransactionDetail) GetHash() string {
return t.Hash
}
func (t *TransactionDetail) GetImportTime() int64 {
return t.ImportTime
}
// GetValue returns the transaction input string
func (t *TransactionDetail) GetInput() string {
return t.Input
}
// GetValue returns the transaction once string
func (t *TransactionDetail) GetNonce() string {
return t.Nonce
}
func (t *TransactionDetail) GetSignature() string {
return t.Signature
}
// GetValue returns the transaction to address string
func (t *TransactionDetail) GetTo() string {
return t.To
}
func (t *TransactionDetail) GetVersion() uint64 {
return t.Version
}