vspd/responses.go
2020-05-14 18:52:21 +01:00

35 lines
803 B
Go

package main
type pubKeyResponse struct {
Timestamp int64 `json:"timestamp"`
PubKey []byte `json:"pubKey"`
}
type feeResponse struct {
Timestamp int64 `json:"timestamp"`
Fee float64 `json:"fee"`
}
type FeeAddressRequest struct {
TicketHash string `json:"ticketHash"`
Signature string `json:"signature"`
}
type feeAddressResponse struct {
Timestamp int64 `json:"timestamp"`
TicketHash string `json:"ticketHash"`
CommitmentSignature string `json:"commitmentSignature"`
FeeAddress string `json:"feeAddress"`
}
type PayFeeRequest struct {
Hex []byte `json:"feeTx"`
VotingKey string `json:"votingKey"`
VoteBits uint16 `json:"voteBits"`
}
type payFeeResponse struct {
Timestamp int64 `json:"timestamp"`
TxHash string `json:"txHash"`
}