close

fun close()

Closes this kit and releases all held resources: the Soroban RPC, indexer, and relayer HTTP clients, plus in-memory state (event listeners and registered signing keys).

This method does not clear the connection state or stored session. Call disconnect before close if you also want to end the session. The kit must not be used after calling this method.

Example:

val kit = OZSmartAccountKit.create(config)
try {
// use kit
} finally {
kit.close()
}