Skip to content
forked from vsc-eco/hivego

HiveGo - A client for the Hive blockchain

License

Notifications You must be signed in to change notification settings

MegaBytee/hivego

 
 

Repository files navigation

HiveGo - A client for the Hive blockchain

At this time, there are only a few functions from the client. More will be added.

Example usage:

see some code in /examples create a client:

hrpc := hivego.NewHiveClient(1, "https://api.hive.blog")
	

get account info:

r, err := hrpc.GetAccount([]string{"megabytee"})

submit a custom json tx:

txid, err := hrpc.BroadcastJson([]string{submittingAccount}, []string{}, id, string(jsonPayload), &activeWif)

vote a post:

txid, err := hrpc.VotePost(voter, author, permlink, weight, &wif)

get n blocks starting from block x as the raw response from the rpc (in bytes):

responseBytes, err := hrpc.GetBlockRangeFast(startBlock int, count int)

WARNING: It is not recommended to stream blocks from public APIs. They are provided as a service to users and saturating them with block requests may (rightfully) result in your IP getting banned

About

HiveGo - A client for the Hive blockchain

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 100.0%