Skip to content

Commit a1340f6

Browse files
committed
Added Log Data Structure for deserializing etherscan log events into
1 parent 0158ce5 commit a1340f6

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

response.go

+12
Original file line numberDiff line numberDiff line change
@@ -159,3 +159,15 @@ type LatestPrice struct {
159159
ETHUSD float64 `json:"ethusd,string"`
160160
ETHUSDTimestamp Time `json:"ethusd_timestamp"`
161161
}
162+
163+
type Log struct {
164+
Address string `json:"address"`
165+
Topics []string `json:"topics"`
166+
Data string `json:"data"`
167+
BlockNumber string `json:"blockNumber"`
168+
TransactionHash string `json:"transactionHash"`
169+
BlockHash string `json:"blockHash"`
170+
LogIndex string `json:"logIndex"`
171+
Removed bool `json:"removed"`
172+
}
173+

0 commit comments

Comments
 (0)