icon

package
v0.0.0-...-c576f33 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const AddressStringLength = 42

Variables

View Source
var (
	// ErrInvalidAddress is returned when an address
	// is not valid.
	ErrInvalidAddress = &types.Error{
		Code:    12,
		Message: "Invalid address",
	}
)

Functions

func CheckAddress

func CheckAddress(as string) *types.Error

Types

type Client

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

func NewClient

func NewClient(
	endpoint string,
	currency *RosettaTypes.Currency,
) *Client

func (*Client) EstimateStep

func (ic *Client) EstimateStep(tx client_v1.Transaction) (*client_v1.Response, error)

func (*Client) GetBalance

func (*Client) GetBlock

func (*Client) GetPeer

func (ic *Client) GetPeer() ([]*RosettaTypes.Peer, error)

func (*Client) GetTransaction

func (ic *Client) GetTransaction(params *RosettaTypes.TransactionIdentifier) (*RosettaTypes.Transaction, error)

func (*Client) SendTransaction

func (ic *Client) SendTransaction(tx client_v1.Transaction) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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