sgns::neoswarm::network::SGClient¶
#include <super_genius_client.hpp>
Public Classes¶
| Name | |
|---|---|
| struct | Config |
| struct | Impl |
Public Functions¶
| Name | |
|---|---|
| SGClient(Config cfg) | |
| ~SGClient() | |
| SGClient(const SGClient & ) =delete | |
| SGClient & | operator=(const SGClient & ) =delete |
| SGClient(SGClient && ) | |
| SGClient & | operator=(SGClient && ) |
| outcome::result< void > | Initialize() Initialize the GeniusSDK node in-process. |
| outcome::result< std::vector< uint8_t > > | SubmitJob(const std::string & gnusSchemaJson) Submit a GNUS schema JSON job and wait for the result. |
| void | Disconnect() Shut down the GeniusSDK node and release resources. |
| bool | IsConnected() const Check whether the SDK node is ready. |
Public Functions Documentation¶
function SGClient¶
function ~SGClient¶
function SGClient¶
function operator=¶
function SGClient¶
function operator=¶
function Initialize¶
Initialize the GeniusSDK node in-process.
Return: outcome::success or error.
Calls GeniusSDKInit() — the SDK generates its own keypair internally for blockchain identity. NEO-SWARM's NodeIdentity is separate (swarm P2P). After this, SubmitJob() can dispatch via GeniusSDKProcess().
function SubmitJob¶
Submit a GNUS schema JSON job and wait for the result.
Parameters:
- gnusSchemaJson The GNUS_Schema JSON from BuildSchemaJson().
Return: Raw output bytes or error.
Passes the raw GNUS schema JSON directly to GeniusSDKProcess(). The SDK handles auth internally via its own identity.
function Disconnect¶
Shut down the GeniusSDK node and release resources.
Calls GeniusSDKShutdown() to tear down the in-process node.
function IsConnected¶
Check whether the SDK node is ready.
Return: true if GeniusSDKGetNodeState() == GENIUS_NODE_READY.
Updated on 2026-10-09 at 03:59:42 +0000