C++ SPNCXX is specially written for SpartanCoin JSON-RPC integrating into Application. It is very easy to integrate that.
// 1. include spncxx client header. #Include <spncxx/client.hxx> // 2. Create a connection to the SpartanCoin Wallet or blockchain RPC server. auto conn = spn::connection("127.0.0.1", "55883", "rpc-username", "rpc-password"); /* Notice that spn::connection returns such a c++ future object: std::future> You are not suggested to create the spn::Client object directly because it is not safe. */ // 3. Get the spn::Client shared ptr. auto client = conn.get(); // The get of that future returns std::shared_ptr object. // 4. Request RPC Command to query blockchain data. double diff = client->getdifficulty();