rest

package
v0.0.0-...-902e17f Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultAPIAddress = "https://mediacoin.pro/rest"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

REST Client

func NewClient

func NewClient(apiAddr string) *Client

func (*Client) AddressInfo

func (c *Client) AddressInfo(addr []byte, memo uint64) (info *chain.AddressInfo, err error)

func (*Client) GetBlock

func (c *Client) GetBlock(num uint64) (block *chain.Block, err error)

func (*Client) GetBlocks

func (c *Client) GetBlocks(offset uint64, limit int) (blocks []*chain.Block, err error)

func (*Client) PutTx

func (c *Client) PutTx(tx *chain.Transaction) (err error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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