api

package
v0.0.0-...-242325e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package api provides a client for accessing the feesim services through its JSON-RPC API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient(cfg Config) *Client

func (*Client) BlockSource

func (c *Client) BlockSource() (map[string]interface{}, error)

func (*Client) CapRate

func (c *Client) CapRate(n int) (map[string][]float64, error)

func (*Client) Config

func (c *Client) Config() (map[string]interface{}, error)

func (*Client) EstimateFee

func (c *Client) EstimateFee(n int) (interface{}, error)

func (*Client) MempoolSize

func (c *Client) MempoolSize(n int) (map[string][]float64, error)

func (*Client) MempoolState

func (c *Client) MempoolState() (*col.MempoolState, error)

func (*Client) Metrics

func (c *Client) Metrics() (map[string]interface{}, error)

func (*Client) Pause

func (c *Client) Pause() error

func (*Client) Scores

func (c *Client) Scores() (map[string][]float64, error)

func (*Client) SetDebug

func (c *Client) SetDebug(d bool) error

func (*Client) Status

func (c *Client) Status() (map[string]string, error)

func (*Client) Stop

func (c *Client) Stop() error

func (*Client) TxRate

func (c *Client) TxRate(n int) (map[string][]float64, error)

func (*Client) Unpause

func (c *Client) Unpause() error

type Config

type Config struct {
	Host    string
	Port    string
	Timeout int
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL