eosforce

package
v0.0.0-...-a58d1de Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2020 License: MIT Imports: 14 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EosForce

type EosForce struct {
	URL        url.URL
	CmdPrefix  []string
	HTTPClient *http.Client
}

EosForce Client data

func New

func New(cmdPrefix []string, rpcScheme string, rpcHost string) *EosForce

New create new EosForce Client

func (*EosForce) GetAvailable

func (ef *EosForce) GetAvailable(ctx context.Context, account string) (float64, error)

GetAvailable 获取指定账户可用余额

func (*EosForce) GetRewards

func (ef *EosForce) GetRewards(ctx context.Context, account string, bp string) (float64, error)

GetRewards 获取指定账户和 BP 的待领分红

func (*EosForce) GetStaked

func (ef *EosForce) GetStaked(ctx context.Context, account string, bp string) (float64, error)

GetStaked 获取指定账户和 BP 的投票金额

func (*EosForce) GetUnstaking

func (ef *EosForce) GetUnstaking(ctx context.Context, account string, bp string) (float64, error)

GetUnstaking 获取指定账户和 BP 的赎回金额

Jump to

Keyboard shortcuts

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