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 ¶
func SendTransaction(t blockchain.Transaction) (*proto.SendTransactionResponse, error)
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.
Click to show internal directories.
Click to hide internal directories.