You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
spiderman/pkg/models/blockchain.go

15 lines
526 B

// Package models defines the data models used throughout the application
package models
// BlockHeightResponse represents the block height response
type BlockHeightResponse struct {
Height uint64 `json:"height" example:"12345"`
}
// ChainInfoResponse represents the blockchain information response
type ChainInfoResponse struct {
Height uint64 `json:"height" example:"12345"`
BlockHash string `json:"blockHash,omitempty" example:"a1b2c3d4e5f6..."`
ChainName string `json:"chainName,omitempty" example:"mychannel"`
}