diff --git a/README.md b/README.md index f2bd8e8..55c2170 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # TrueBlocks SDKs +[![Go Reference](https://pkg.go.dev/badge/github.com/TrueBlocks/trueblocks-sdk/v3.svg)](https://pkg.go.dev/github.com/TrueBlocks/trueblocks-sdk/v3) + ## Table of Contents - [TrueBlocks SDKs](#trueblocks-sdks) diff --git a/meta.go b/meta.go index 0883c25..de4408c 100644 --- a/meta.go +++ b/meta.go @@ -14,6 +14,11 @@ func GetMetaData(chain string) (*types.MetaData, error) { return meta, err } +func MustGetMetaData(chain string) *types.MetaData { + meta, _ := GetMetaData(chain) + return meta +} + func GetLatestBlock(chain string) base.Blknum { meta, _ := GetMetaData(chain) return meta.Latest