code: public static SendRequest forTx(Transaction tx) {
          SendRequest req = new SendRequest();
          req.tx = tx;
          return req;
      }
docs: Simply wraps a pre-built incomplete transaction provided by you.