Skip to main content

=nil; CLI: reading and writing info

The =nil; CLI provides several commands that produce data about key cluster entities including blocks, transactions, and logs.

To view the latest block recorded by shard with shardId = 1:

nil block latest --shard-id 1

To call an existing smart contract via the smart account:

nil smart-account send-transaction CONTRACT_ADDRESS METHOD_NAME [ARGS] --abi path/to/contract.abi

To read information about the resulting transaction:

nil transaction HASH 

To read the transaction receipt:

nil receipt HASH