vspd/webapi/vspstatus.go
2020-07-15 13:46:00 +00:00

21 lines
418 B
Go

package webapi
import (
"time"
"github.com/decred/vspd/version"
"github.com/gin-gonic/gin"
)
// vspInfo is the handler for "GET /vspinfo".
func vspInfo(c *gin.Context) {
sendJSONResponse(vspInfoResponse{
Timestamp: time.Now().Unix(),
PubKey: signPubKey,
FeePercentage: cfg.VSPFee,
Network: cfg.NetParams.Name,
VspClosed: cfg.VspClosed,
VspdVersion: version.String(),
}, c)
}