utils

package
v0.0.0-...-91a82d4 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2019 License: LGPL-3.0 Imports: 15 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CoreURL        string
	DefaultCoreURL = utils.EnvString("URANUS_URL", "http://localhost:8000")

	OneLine bool // Streamline pattern, Output less and better content
)

Functions

func ClientCall

func ClientCall(path string, args, reply interface{})

ClientCall Wrapper rpc call api.

func DefaultDataDir

func DefaultDataDir() string

func GetBlockheight

func GetBlockheight(arg string) *rpcapi.BlockHeight

func GetUint64

func GetUint64(arg string) uint64

func Getbig

func Getbig(arg string) *big.Int

func HomeDir

func HomeDir() string

func IsHexAddr

func IsHexAddr(str string) string

func IsHexHash

func IsHexHash(str string) string

func MustRPCClient

func MustRPCClient() *urpc.Client

MustRPCClient Wraper rpc's client

func PrintJSON

func PrintJSON(data interface{})

func PrintJSONList

func PrintJSONList(data interface{})

func Version

func Version()

Types

This section is empty.

Jump to

Keyboard shortcuts

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