code: function rpcCall(bugout, pk, call, args, nonce, callback) {
    var packet = {"y": "rr", "rn": nonce};
    if (bugout.api[call]) {
      bugout.api[call](bugout.address(pk), args, function(result) {
        packet["rr"] = JSON.stringify(result);
      });
    } else {
      packet["rr"] = JSON.stringify({"error": "No such API call."});
    }
    packet = makePacket(bugout, packet);
    packet = encryptPacket(bugout, pk, packet);
    sendRaw(bugout, packet);
  }
docs: network functions