client

package
v0.0.0-...-ce5cf71 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Marshaller = jsonpb.Marshaler{
	EnumsAsInts:  false,
	EmitDefaults: true,
	Indent:       "  ",
	OrigName:     true,
}

Marshaller default for the client.

Functions

func GetBlockchain

func GetBlockchain() (*proto.GetBlockchainResponse, error)

GetBlockchain sends a request to the node server for its Blockchain

func MineBlock

func MineBlock(address string) (*proto.MineBlockResponse, error)

MineBlock sends a request to the node to mine the next block

func SendTransaction

SendTransaction sends a transaction to a node server to add it to its pending transactions

func VerifyBlockchain

func VerifyBlockchain() (*proto.VerifyBlockchainResponse, error)

VerifyBlockchain sends a request to the node to verify its blockchain

Types

This section is empty.

Jump to

Keyboard shortcuts

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