Documentation ¶
Index ¶
- type GrpcHandlers
- type Server
- func (s *Server) Broadcast(ctx context.Context, tx *pb.SignedTransaction) (out *pb.SignedTransaction, err error)
- func (s *Server) GetActivationStatus(ctx context.Context, req *g.ActivationStatusRequest) (*g.ActivationStatusResponse, error)
- func (s *Server) GetActiveLeases(req *g.AccountRequest, srv g.AccountsApi_GetActiveLeasesServer) error
- func (s *Server) GetBalances(req *g.BalancesRequest, srv g.AccountsApi_GetBalancesServer) error
- func (s *Server) GetBaseTarget(ctx context.Context, req *empty.Empty) (*g.BaseTargetResponse, error)
- func (s *Server) GetBlock(ctx context.Context, req *g.BlockRequest) (*g.BlockWithHeight, error)
- func (s *Server) GetBlockRange(req *g.BlockRangeRequest, srv g.BlocksApi_GetBlockRangeServer) error
- func (s *Server) GetCumulativeScore(ctx context.Context, req *empty.Empty) (*g.ScoreResponse, error)
- func (s *Server) GetCurrentHeight(ctx context.Context, req *empty.Empty) (*wrappers.UInt32Value, error)
- func (s *Server) GetDataEntries(req *g.DataRequest, srv g.AccountsApi_GetDataEntriesServer) error
- func (s *Server) GetInfo(ctx context.Context, req *g.AssetRequest) (*g.AssetInfoResponse, error)
- func (s *Server) GetNFTList(req *g.NFTRequest, srv g.AssetsApi_GetNFTListServer) error
- func (s *Server) GetScript(ctx context.Context, req *g.AccountRequest) (*g.ScriptData, error)
- func (s *Server) GetStateChanges(req *g.TransactionsRequest, srv g.TransactionsApi_GetStateChangesServer) error
- func (s *Server) GetStatuses(req *g.TransactionsByIdRequest, srv g.TransactionsApi_GetStatusesServer) error
- func (s *Server) GetTransactions(req *g.TransactionsRequest, srv g.TransactionsApi_GetTransactionsServer) error
- func (s *Server) GetUnconfirmed(req *g.TransactionsRequest, srv g.TransactionsApi_GetUnconfirmedServer) error
- func (s *Server) ResolveAlias(ctx context.Context, req *wrappers.StringValue) (*wrappers.BytesValue, error)
- func (s *Server) Run(ctx context.Context, address string) error
- func (s *Server) Serve(l net.Listener) error
- func (s *Server) Sign(ctx context.Context, req *g.SignRequest) (*pb.SignedTransaction, error)
- func (s *Server) Stop()
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GrpcHandlers ¶ added in v0.8.0
type GrpcHandlers interface { grpc.AccountsApiServer grpc.AssetsApiServer grpc.BlockchainApiServer grpc.BlocksApiServer grpc.TransactionsApiServer }
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func NewServerWithHandlers ¶ added in v0.8.0
func NewServerWithHandlers(services services.Services, h GrpcHandlers) (*Server, error)
func (*Server) Broadcast ¶
func (s *Server) Broadcast(ctx context.Context, tx *pb.SignedTransaction) (out *pb.SignedTransaction, err error)
func (*Server) GetActivationStatus ¶
func (s *Server) GetActivationStatus(ctx context.Context, req *g.ActivationStatusRequest) (*g.ActivationStatusResponse, error)
func (*Server) GetActiveLeases ¶
func (s *Server) GetActiveLeases(req *g.AccountRequest, srv g.AccountsApi_GetActiveLeasesServer) error
func (*Server) GetBalances ¶
func (s *Server) GetBalances(req *g.BalancesRequest, srv g.AccountsApi_GetBalancesServer) error
func (*Server) GetBaseTarget ¶
func (*Server) GetBlock ¶
func (s *Server) GetBlock(ctx context.Context, req *g.BlockRequest) (*g.BlockWithHeight, error)
func (*Server) GetBlockRange ¶
func (s *Server) GetBlockRange(req *g.BlockRangeRequest, srv g.BlocksApi_GetBlockRangeServer) error
func (*Server) GetCumulativeScore ¶
func (*Server) GetCurrentHeight ¶
func (*Server) GetDataEntries ¶
func (s *Server) GetDataEntries(req *g.DataRequest, srv g.AccountsApi_GetDataEntriesServer) error
func (*Server) GetInfo ¶
func (s *Server) GetInfo(ctx context.Context, req *g.AssetRequest) (*g.AssetInfoResponse, error)
func (*Server) GetNFTList ¶ added in v0.8.0
func (s *Server) GetNFTList(req *g.NFTRequest, srv g.AssetsApi_GetNFTListServer) error
func (*Server) GetScript ¶
func (s *Server) GetScript(ctx context.Context, req *g.AccountRequest) (*g.ScriptData, error)
func (*Server) GetStateChanges ¶
func (s *Server) GetStateChanges(req *g.TransactionsRequest, srv g.TransactionsApi_GetStateChangesServer) error
func (*Server) GetStatuses ¶
func (s *Server) GetStatuses(req *g.TransactionsByIdRequest, srv g.TransactionsApi_GetStatusesServer) error
func (*Server) GetTransactions ¶
func (s *Server) GetTransactions(req *g.TransactionsRequest, srv g.TransactionsApi_GetTransactionsServer) error
func (*Server) GetUnconfirmed ¶
func (s *Server) GetUnconfirmed(req *g.TransactionsRequest, srv g.TransactionsApi_GetUnconfirmedServer) error
func (*Server) ResolveAlias ¶
func (s *Server) ResolveAlias(ctx context.Context, req *wrappers.StringValue) (*wrappers.BytesValue, error)
func (*Server) Sign ¶
func (s *Server) Sign(ctx context.Context, req *g.SignRequest) (*pb.SignedTransaction, error)
Click to show internal directories.
Click to hide internal directories.