Documentation
¶
Index ¶
- func NewBroadcastHttpHandler(db *store.Store, c *client.Client) *broadcastHttpHandler
- func NewBroadcastUseCase(db *store.Store, c *client.Client) *broadcastUseCase
- func NewGetByHeightHttpHandler(db *store.Store, c *client.Client) *getByHeightHttpHandler
- func NewGetByHeightUseCase(db *store.Store, c *client.Client) *getByHeightUseCase
- type BroadcastRequest
- type BroadcastResponse
- type ListItem
- type ListView
- type Request
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewBroadcastHttpHandler ¶ added in v0.7.0
func NewBroadcastUseCase ¶ added in v0.7.0
Types ¶
type BroadcastRequest ¶ added in v0.7.0
type BroadcastRequest struct {
TxRaw string `form:"tx_raw" binding:"required" json:"tx_raw"`
}
type BroadcastResponse ¶ added in v0.8.0
type BroadcastResponse struct {
Submitted bool `json:"submitted"`
}
type ListItem ¶ added in v0.4.0
type ListItem struct { PublicKey string `json:"public_key"` Hash string `json:"hash"` Nonce uint64 `json:"nonce"` Fee types.Quantity `json:"fee"` GasLimit uint64 `json:"gas_limit"` GasPrice types.Quantity `json:"gas_price"` Method string `json:"method"` SignatureVerified bool `json:"signature_verified"` }
type ListView ¶
type ListView struct {
Items []ListItem `json:"items"`
}
func ToListView ¶
func ToListView(rawTransactions []*transactionpb.Transaction) *ListView
Click to show internal directories.
Click to hide internal directories.