Tamperproofing utilities
Current State
:::: tabs CurrentState returns the last state of the server.
::: tab Go
go
state, err := client.CurrentState(ctx)
if err != nil {
log.Fatal(err)
}
fmt.Printf("current state is : %v", state):::
::: tab Java
java
ImmuState currState = immuClient.currentState();
System.out.printf("The current state is " + currState.toString());:::
::: tab Python This feature is not yet supported or not documented. Do you want to make a feature request or help out? Open an issue on Python sdk github project :::
::: tab Node.js
ts
import ImmudbClient from 'immudb-node'
const IMMUDB_HOST = '127.0.0.1'
const IMMUDB_PORT = '3322'
const IMMUDB_USER = 'immudb'
const IMMUDB_PWD = 'immudb'
const cl = new ImmudbClient({ host: IMMUDB_HOST, port: IMMUDB_PORT });
(async () => {
await cl.login({ user: IMMUDB_USER, password: IMMUDB_PWD })
const currentStateRes = await cl.currentState()
console.log('success: currentState', currentStateRes)
})():::
::: tab .Net This feature is not yet supported or not documented. Do you want to make a feature request or help out? Open an issue on .Net sdk github project :::
::: tab Others If you're using another development language, please refer to the immugw option. :::
::::