NearApi.Block (near_api v0.1.4)

NEAR RPC - Block API

Link to this section Summary

Functions

Queries network and returns block for given height or hash. You can also use finality param to return latest block details.

Queries network and returns block for given height or hash. You can also use finality param to return latest block details. Warning: Experimental!

Link to this section Functions

Link to this function

block(block_id \\ nil, finality \\ "final")

Specs

block(block_id :: String.t(), finality :: String.t()) ::
  {:ok, body :: map()} | NearApi.Errors.t()

Queries network and returns block for given height or hash. You can also use finality param to return latest block details.

Link to this function

changes_in_block(block_id \\ nil, finality \\ "final")

Specs

changes_in_block(block_id :: String.t(), finality :: String.t()) ::
  {:ok, body :: map()} | NearApi.Errors.t()

Queries network and returns block for given height or hash. You can also use finality param to return latest block details. Warning: Experimental!