Knowledge Base Home

Example bash script with embedded JSON/RPC call

A simple bash script using the raw JSON/RPC API to connect to a Kaleido node and retrieve the latest block number on the chain.


  1. Clone the Kaleido Examples project.
  2. In the /bash/http sub-directory, open and:
    • Replace the RPC_ENDPOINT placeholder with the RPC endpoint for your node.
    • Replace the USER placeholder with the basic auth credentials username.
    • Replace the PASS placeholder with the basic auth credentials password.
  3. Save the file and run ./ to drive the call.

Prev Admin Tooling & Feedback Next Nethereum Example Application