One-night stands may soon become commitments thanks to an app that creates contracts for consensual sex.

LegalFling, a new app from a Dutch blockchain company, claims to be the first app to give users a “legally binding agreement” before getting it on.

The app also allows users to “match sexual preferences” before a fling to ensure the “do’s and don’t’s are clear… to set the rules before play.”

But this isn’t a “Fifty Shades of Grey” type of contract. According to the makers, LegalFling creates a “legally binding agreement” that records sexual consent as well as privacy for videos and photos.

“Sex should be fun and safe, but nowadays a lot of things can go wrong,” the site reads. “While you’re protected by law, litigating any offenses through court is nearly impossible in reality. LegalFling creates a legally binding agreement, which means any offense is a breach of contract.”

The app uses blockchain technology to create private, time-stamped records that are linked and secured using cryptography.

Rather than having potential partners sign on the dotted line, your “fling” simply needs to click to consent. App users can also request consent for a fling using WhatsApp, Telegram, Facebook Messenger and SMS.

Contracts created using LegalFling can also be customized; users can decide whether they want to prohibit having sex without a condom as well as requesting the other party is STD-free. There’s even an option to send requests for “group flings” to multiple people, explicit language use and BDSM.

Consent can also be withdrawn with a swipe, which ends the legal agreement.

And if there’s a breach of contract, app users can “escalate a breach,” which would trigger “cease and desist letters and enforcing penalty payments.”

However, whether the contract holds up in court depends on the country of residence, the site notes.

The app comes in the wake of the #MeToo movement amid sexual harassment allegations from celebrities, politicians and journalists.

LegalFling is still waiting approval by Apple and Google before it will be available to download.