@@ -116,6 +116,30 @@ type ERC721Transfer struct {
116116 Confirmations int `json:"confirmations,string"`
117117}
118118
119+ // ERC1155Transfer holds info from ERC1155 token transfer event query
120+ type ERC1155Transfer struct {
121+ BlockNumber int `json:"blockNumber,string"`
122+ TimeStamp Time `json:"timeStamp"`
123+ Hash string `json:"hash"`
124+ Nonce int `json:"nonce,string"`
125+ BlockHash string `json:"blockHash"`
126+ From string `json:"from"`
127+ ContractAddress string `json:"contractAddress"`
128+ To string `json:"to"`
129+ TokenID * BigInt `json:"tokenID"`
130+ TokenName string `json:"tokenName"`
131+ TokenSymbol string `json:"tokenSymbol"`
132+ TokenDecimal uint8 `json:"tokenDecimal,string"`
133+ TokenValue uint8 `json:"tokenValue,string"`
134+ TransactionIndex int `json:"transactionIndex,string"`
135+ Gas int `json:"gas,string"`
136+ GasPrice * BigInt `json:"gasPrice"`
137+ GasUsed int `json:"gasUsed,string"`
138+ CumulativeGasUsed int `json:"cumulativeGasUsed,string"`
139+ Input string `json:"input"`
140+ Confirmations int `json:"confirmations,string"`
141+ }
142+
119143// MinedBlock holds info from query for mined block by address
120144type MinedBlock struct {
121145 BlockNumber int `json:"blockNumber,string"`
@@ -180,8 +204,8 @@ type Log struct {
180204 Removed bool `json:"removed"`
181205}
182206
183- //GasPrices holds info for Gas Oracle queries
184- //Gas Prices are returned in Gwei
207+ // GasPrices holds info for Gas Oracle queries
208+ // Gas Prices are returned in Gwei
185209type GasPrices struct {
186210 LastBlock int
187211 SafeGasPrice float64
0 commit comments