close
Closes this kit and releases all held HTTP client resources.
Closes the Soroban RPC server connection and the indexer HTTP client if present. The relayer client manages its own per-request connections and requires no explicit cleanup.
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()
}Content copied to clipboard