Go to file
foxon dcd4fa2145
Added fields to EngineStatus
2022-12-14 18:37:13 -07:00
LICENSE Initial commit 2022-04-09 16:54:37 -06:00
blockchain.go Added fields to EngineStatus 2022-12-14 18:37:13 -07:00
contracts.go Initial commit 2022-04-09 17:02:22 -06:00
fungibles.go Patch getFungible 2022-04-12 08:45:06 -06:00
go.mod Update go.mod 2022-06-29 08:23:34 -06:00
go.sum Moving RPC client to jrc 2022-06-09 15:55:28 -06:00
herpc.go Moving RPC client to jrc 2022-06-09 15:55:28 -06:00
nft.go Remove debug print 2022-05-06 01:42:41 -04:00
readme.md Update readme.md 2022-04-09 23:21:41 -06:00
witnesses.go Func getAllWitnesses made public 2022-12-13 12:52:15 -07:00

readme.md

HiveEngineGo - A client for the Hive Engine side chain on the Hive blockchain

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

Example usage:

create a client:

herpc := hiveenginego.NewHiveEngineRpc("http://MyHiveEngineApi")

Query latest block info:

latestBlockInfo, err := herpc.GetLatestBlockInfo()
//Returns a struct
latestBlockNum := latestBlockInfo.BlockNumber

Get All NFT of a given symbol (return rpc resonse as raw bytes):

rawNftBytes, err := herpc.GetSymbolAllNftFast("STAR")

Get block range as the raw response from the rpc (in bytes):

rpcResponsesBytes, err := herpc.GetBlockRangeFast(start, end)

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