src/lib/jsoncalls.cpp
int JsonCalls::setRpcCall(string method){
    string msg = "";
    if(method == "getnewaddress"){
        callType = 2;
    }else if(method == "getreceivedbyaddress"){
        callType = 3;
    }else if(method == "sendfrom"){
        callType = 4;
    }else if(method == "getbalance"){
        callType = 5;
    }else if(method == "getaccount"){
        callType = 6;
    }else if(method == "getaccountaddress"){
        callType = 7;
    }else if(method == "getaccountaddress"){  // get fee wallet
        callType = 8;
    }else if(method == "settxfee"){  // get fee wallet
        callType = 9;
    }else if(method == "gettransaction"){
        callType = 10;
    }else if(method == "service_charge"){
        callType = 11;
    }else if(method == "move"){
        callType = 12;
    }else if(method == "getaccount"){
        callType = 13;
    }else if(method == "getbalance_service"){
        callType = 10004;
    }else{
        callType = 101010;
    }
    return callType;
}
/*
 *  get/set RPC call action
 */
get/set RPC call action
get / set RPC call action
int JsonCalls::setRpcCall(string method){
    string msg = "";
    if(method == "getnewaddress"){
        callType = 2;
    }else if(method == "getreceivedbyaddress"){
        callType = 3;
    }else if(method == "sendfrom"){
        callType = 4;
    }else if(method == "getbalance"){
        callType = 5;
    }else if(method == "getaccount"){
        callType = 6;
    }else if(method == "getaccountaddress"){
        callType = 7;
    }else if(method == "getaccountaddress"){  
        callType = 8;
    }else if(method == "settxfee"){  
        callType = 9;
    }else if(method == "gettransaction"){
        callType = 10;
    }else if(method == "service_charge"){
        callType = 11;
    }else if(method == "move"){
        callType = 12;
    }else if(method == "getaccount"){
        callType = 13;
    }else if(method == "getbalance_service"){
        callType = 10004;
    }else{
        callType = 101010;
    }
    return callType;
}
int JsonCalls :: setRpcCall ( string method ) { string msg = " " ; if ( method == " " ) { callType = 2 ; } else if ( method == " " ) { callType = 3 ; } else if ( method == " " ) { callType = 4 ; } else if ( method == " " ) { callType = 5 ; } else if ( method == " " ) { callType = 6 ; } else if ( method == " " ) { callType = 7 ; } else if ( method == " " ) { callType = 8 ; } else if ( method == " " ) { callType = 9 ; } else if ( method == " " ) { callType = 10 ; } else if ( method == " " ) { callType = 11 ; } else if ( method == " " ) { callType = 12 ; } else if ( method == " " ) { callType = 13 ; } else if ( method == " " ) { callType = 10004 ; } else { callType = 101010 ; } return callType ; }
get/set RPC call action
get / set RPC call action
// get fee wallet // get fee wallet