Versions in this module Expand all Collapse all v0 v0.2.0 Nov 8, 2024 Changes in this version + const ErrCodeInternal + const ErrCodeInvalidParams + const ErrCodeInvalidRequest + const ErrCodeMethodNotFound + const ErrCodeParse + var ErrInternal = &jsonRPCError + var ErrInvalidParams = &jsonRPCError + var ErrInvalidRequest = &jsonRPCError + var ErrMethodNotFound = &jsonRPCError + var ErrParse = &jsonRPCError + type Client struct + func NewClient() *Client + func (c *Client) ExecuteTxs(ctx context.Context, txs []types.Tx, blockHeight uint64, timestamp time.Time, ...) (types.Hash, uint64, error) + func (c *Client) GetTxs(ctx context.Context) ([]types.Tx, error) + func (c *Client) InitChain(ctx context.Context, genesisTime time.Time, initialHeight uint64, ...) (types.Hash, uint64, error) + func (c *Client) SetConfig(config *Config) + func (c *Client) SetFinal(ctx context.Context, blockHeight uint64) error + func (c *Client) Start(endpoint string) error + func (c *Client) Stop() error + type Config struct + DefaultTimeout time.Duration + MaxRequestSize int64 + func DefaultConfig() *Config + type Server struct + func NewServer(exec execution.Executor, config *Config) *Server + func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request)