Get Node Health
You can check the health of any node.
Client in Wallet
If you are using a wallet you can always get the client by calling the client()
/getClient()
/get_client()
method
The following code example will:
- Create a
Client
which will connect to the Shimmer Testnet. - Use the created client to get the health of the specified url.
- Print the information to the console.
Code Example
- Rust
- Nodejs
- Python
sdk/examples/how_tos/client/get_health.rs
loading...
bindings/nodejs/examples/how_tos/client/get-health.ts
loading...
bindings/python/examples/how_tos/client/get_health.py
loading...
Expected Output
Healthy: true