listen to mempool.space websocket
This commit is contained in:
@@ -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"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user