Documentation
¶
Index ¶
- type Handler
- func (h *Handler) DepositGas(c *gin.Context)
- func (h *Handler) EstimateGas(c *gin.Context)
- func (h *Handler) GetAccount(c *gin.Context)
- func (h *Handler) GetAccountTransactions(c *gin.Context)
- func (h *Handler) GetAccounts(c *gin.Context)
- func (h *Handler) GetTransactions(c *gin.Context)
- func (h *Handler) Register(router *gin.RouterGroup)
- func (h *Handler) WithdrawGas(c *gin.Context)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler handles Gas Bank API requests
func NewHandler ¶
NewHandler creates a new gas bank handler
func (*Handler) DepositGas ¶
DepositGas handles gas deposits
func (*Handler) EstimateGas ¶
EstimateGas estimates gas for an operation
func (*Handler) GetAccount ¶
GetAccount returns a specific gas account
func (*Handler) GetAccountTransactions ¶
GetAccountTransactions returns transactions for a specific account
func (*Handler) GetAccounts ¶
GetAccounts returns all gas accounts for a user
func (*Handler) GetTransactions ¶
GetTransactions returns all gas transactions for a user
func (*Handler) Register ¶
func (h *Handler) Register(router *gin.RouterGroup)
Register registers the gas bank routes
func (*Handler) WithdrawGas ¶
WithdrawGas handles gas withdrawals
Click to show internal directories.
Click to hide internal directories.