Files
realy/nwc/get_balance.go
mleku 84c29a156d fixed all tests to pass
also pushed up the current state of the new NWC library and JSON parsing helpers
2024-11-28 10:36:35 +00:00

20 lines
399 B
Go

package nwc
type GetBalanceRequest struct {
Request
// nothing to see here, move along
}
func NewGetBalanceRequest() *GetBalanceRequest {
return &GetBalanceRequest{Request{Methods.GetBalance}}
}
type GetBalanceResponse struct {
Response
Balance Msat
}
func NewGetBalanceResponse(balance Msat) *GetBalanceResponse {
return &GetBalanceResponse{Response{Type: Methods.GetBalance}, balance}
}