eosforce

package
v0.0.0-...-fb247b5 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2018 License: MIT Imports: 14 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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