grin

package
v0.0.0-...-450f598 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// GrinAPIVersion .
	GrinAPIVersion = "/v1"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BestBlockNumber

type BestBlockNumber struct {
	Status  bool   `json:"status"`
	Message string `json:"message"`
	Height  uint32 `json:"height"`
}

BestBlockNumber .

type Client

type Client interface {
	// GetAccount(address string) (*Account, error)
	// GetBalance(addr string, symbol string) (uint64, error)
	// CreateTransaction(from, to string, amount uint32) (*CreateTransactionResponse, error)
	// Transfer(keyManager KeyManager, transfers []Transfer) (*TxCommitResult, error)
	// GetTokens() ([]Token, error)
	// GetTransactionReceipt(txid string) (*TransactionReceipt, error)
	// GetTransactionFee(txid string) (*Fee, error)
	// GetBlockByNumber(height uint32) (*Block, error)
	BestBlockNumber() (uint32, error)
}

Client .

func New

func New(apiURL string) Client

New .

Jump to

Keyboard shortcuts

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