MCPcopy Create free account
hub / github.com/QuipNetwork/cpp-sdk / handleGetPqOwner

Method handleGetPqOwner

src/cli.cpp:866–882  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

864}
865
866bool CLI::handleGetPqOwner(const std::vector<std::string> &args) {
867 if (args.size() != 1) {
868 std::cerr << "Usage: pq-owner <address>" << std::endl;
869 return false;
870 }
871
872 try {
873 Address address = parseAddress(args[0]);
874 auto wallet = createWallet(address);
875 Address owner = wallet->getPqOwner();
876 std::cout << "PQ Owner: " << owner << std::endl;
877 return true;
878 } catch (const std::exception &e) {
879 std::cerr << "Error: " << e.what() << std::endl;
880 return false;
881 }
882}
883
884bool CLI::handleGenerateKeypair(const std::vector<std::string> &args) {
885 if (args.size() != 2) {

Callers

nothing calls this directly

Calls 1

getPqOwnerMethod · 0.45

Tested by

no test coverage detected