From 4cfe818a8f584d130696d24e4360df83ac696a65 Mon Sep 17 00:00:00 2001 From: leohhhn Date: Mon, 29 Apr 2024 15:25:49 +0200 Subject: [PATCH] update ref docs --- docs/reference/gnoclient/client.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/docs/reference/gnoclient/client.md b/docs/reference/gnoclient/client.md index 3f258fa683e..ca90a368f7f 100644 --- a/docs/reference/gnoclient/client.md +++ b/docs/reference/gnoclient/client.md @@ -25,6 +25,30 @@ func (c *Client) AddPackage(cfg BaseTxCfg, msgs ...MsgAddPackage) (*ctypes.Resul `AddPackage` executes one or more [AddPackage](#type-msgaddpackage) calls on the blockchain. +### func \(\*Client\) [Block]() + +```go +func (c *Client) Block(height int64) (*ctypes.ResultBlock, error) +``` + +`Block` gets the latest block at height, if any. Height must be larger than 0. + +### func \(\*Client\) [BlockResult]() + +```go +func (c *Client) BlockResult(height int64) (*ctypes.ResultBlockResults, error) +``` + +`BlockResult` gets the latest block results at height, if any. Height must be larger than 0. + +### func \(\*Client\) [LatestBlockHeight]() + +```go +func (c *Client) LatestBlockHeight() (int64, error) +``` + +`LatestBlockHeight` gets the latest block height on the chain. + ### func \(\*Client\) [Call]() ```go