Documentation
¶
Index ¶
- type Server
- func (s *Server) GetDetectedWithdrawals(ctx context.Context, req *connect.Request[pb.GetDetectedWithdrawalsRequest]) (*connect.Response[pb.GetDetectedWithdrawalsResponse], error)
- func (s *Server) GetWithdrawalByTxid(ctx context.Context, req *connect.Request[pb.GetWithdrawalByTxidRequest]) (*connect.Response[pb.GetWithdrawalByTxidResponse], error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server implements the SidechainService
func New ¶
func New(monitor *engines.SidechainMonitorEngine) *Server
New creates a new sidechain API server
func (*Server) GetDetectedWithdrawals ¶
func (s *Server) GetDetectedWithdrawals( ctx context.Context, req *connect.Request[pb.GetDetectedWithdrawalsRequest], ) (*connect.Response[pb.GetDetectedWithdrawalsResponse], error)
GetDetectedWithdrawals returns all detected fast withdrawal transactions
func (*Server) GetWithdrawalByTxid ¶
func (s *Server) GetWithdrawalByTxid( ctx context.Context, req *connect.Request[pb.GetWithdrawalByTxidRequest], ) (*connect.Response[pb.GetWithdrawalByTxidResponse], error)
GetWithdrawalByTxid returns a specific withdrawal by transaction ID
Click to show internal directories.
Click to hide internal directories.