Wall Street banks are taking their unicorn playbooks to China.

After arranging billions of dollars in loans for highly valued — and money-losing — U.S. startups like Uber Technologies Inc., banks including Morgan Stanley and Goldman Sachs Group Inc. are angling to do the same for some of China’s biggest unicorns. They helped Bytedance Ltd., owner of the wildly popular TikTok video app, borrow $1.3 billion in April and are said to be raising as much as $1.4 billion for two other Chinese tech startups — borrowers that until recently had rarely tapped the syndicated loan market.

Banks are betting the loans will lead to more lucrative mandates like initial public offerings, just as they did in the U.S. with mega-listings by Uber and several of its peers. But that’s no guarantee as China’s trade war with America spreads to the technology industry, heightening investor concerns over frothy valuations.

While banks earned an average margin of 145 basis points over benchmark rates on five-year syndicated loans for Chinese borrowers this year, the juiciest fees come from follow-on services like equity issuance. Underwriters have charged 5% to 6% of the float value for U.S. debut share offerings in recent years and between 2% and 3% in Hong Kong, though fees are sometimes lower for larger offerings, according to data compiled by Bloomberg.

“The returns on these loans are usually acceptable, given that leverage tends to be low and given the expected future cross-sell opportunities, including future capital markets and trade financing,” said Benjamin Ng, head of Asia Pacific debt syndicate and acquisition finance at Citigroup Inc. in Hong Kong.

Morgan Stanley, the lead sponsor of Uber’s IPO in May, earned $41 million from that deal, about a year after the bank helped arrange a $1.1 billion loan for the ride-hailing company, according to data compiled by Bloomberg. Dropbox Inc. tapped banks including Goldman for a $600 million credit facility in 2017, people familiar with the matter said at the time, about a year before the cloud storage company went public. Goldman was one of the IPO’s lead underwriters.

“Banks have gotten a lot more comfortable lending to these asset-light companies,” said Vey-Sern Ling, an analyst at Bloomberg Intelligence in Hong Kong. “If your competitor is lending to these billion-dollar startups, you can’t not be there.”

Morgan Stanley and Goldman Sachs didn’t immediately reply to requests for comment. They were bookrunners on Bytedance’s loan and are now leading a facility of as much as $1 billion for Beike Zhaofang, which runs an online property brokerage.

Loans appeal to Chinese unicorns because they can be arranged quickly with few public disclosures, a plus for young companies that want to avoid giving away too much information to competitors, according to Andrew Ashman, the Singapore-based head of loan syndicate for Asia Pacific at Barclays Plc.

Historically low borrowing costs add to the allure. Bytedance, which was valued at $75 billion in a funding round late last year, offered an interest margin of 280 basis points over Libor for its loan in April. Beike asked banks for an interest margin of 210 basis points, people familiar with the matter said in May.

Bytedance and Beike declined to comment. So did Guazi.com, an online marketplace for used cars that’s in talks with banks to borrow as much as $400 million, according to people familiar with the matter.

While Barclays predicts similar deals will emerge in the second half, there are plenty of headwinds. Chief among them is the escalating China-U.S. conflict, which has expanded beyond tariffs in recent months to encompass parts of the tech industry and threatens to weigh on global economic growth.

That’s adding to investor jitters about overstretched valuations for companies with unproven business models. Uber and rival Lyft Inc. are both trading below their IPO prices, while Luckin Coffee Inc. — a Chinese rival to Starbucks Corp. that reported a loss of about $241 million last year — has dropped 15% from its post-IPO high earlier this month. The MSCI China Technology Index has slumped more than 20% over the past year.

If the U.S.-China spat drags on, banks could be waiting a long time for their unicorn paydays.

More must-read stories from Fortune:

—Does the SEC’s ICO lawsuit against Kik go too far?

—How cord-cutting is driving big changes across the media landscape

—Andreessen Horowitz’s Scott Kupor demystifies the VC funding process

—To break up Facebook, here’s where the government might start

—Listen to our new audio briefing, Fortune 500 Daily

Follow Fortune on Flipboard to stay up-to-date on the latest news and analysis.