listen to mempool.space websocket

This commit is contained in:
2023-12-21 17:33:20 -05:00
parent 9e83d6cc7d
commit babd5d8253
6 changed files with 254 additions and 68 deletions
+24
View File
@@ -1,5 +1,29 @@
package mempool
type Message struct {
Block *Block `json:"block"`
Conversions *Conversions `json:"conversions"`
Fees *Fees `json:"fees"`
}
type Block struct {
Height int64 `json:"height"`
}
type Conversions struct {
USD int `json:"USD"`
EUR int `json:"EUR"`
GBP int `json:"GBP"`
CAD int `json:"CAD"`
CHF int `json:"CHF"`
AUD int `json:"AUD"`
JPY int `json:"JPY"`
}
type Fees struct {
FastestFee int `json:"fastestFee"`
HalfHourFee int `json:"halfHourFee"`
HourFee int `json:"hourFee"`
EconomyFee int `json:"economyFee"`
MinimumFee int `json:"minimumFee"`
}