CHAIN connecting…

Sign in with Dznye, and send money or rewards by link

Add a password-free login to any app, and send DZY, tokens or reward points to anyone by email or chat link, even before they have a wallet.

Two tools that let an app grow without a login company or a payment company in the middle.

Sign in with Dznye

A login for any website or app. No password, no account to make with you, and no server of ours is asked: your app checks the person's signature itself.

  1. Send the person to https://wallet.dznye.com/login?app=<your origin>&nonce=<a fresh random code>&return=<a page on your origin>.
  2. Their wallet asks "Sign in to your-app.com?". If they agree, it sends them back to your return page with #dzy=<proof> after the address (it never reaches any server's logs).
  3. Check it:
import { verifyLogin } from 'https://developers.dznye.com/js/chain/sdk.js';
const proof = location.hash.replace('#dzy=', '');
const address = await verifyLogin(proof, { app: location.origin, nonce: theNonceYouSent });
// the person is \`address\`; their name, if any: GET https://api.dznye.com/account/<address> → name

The proof works only for your app, only for that nonce, and only for five minutes. Keep the nonce on your side (in the session) so a proof cannot be reused.

Send DZY or any token to someone who may not have a wallet yet. The chain holds the coins; a link carries the one-time key that claims them. Whoever opens the link claims them into their wallet, or into a new one made on the spot, and the welcome fund pays their fee.

const { link } = await dz.gift(myKey, '5', { note: 'thanks for joining' });   // 5 DZY
const { link: points } = await dz.gift(myKey, '100', { asset: myPointsToken, days: 7 });

Send the link however you like: your own email, a chat message, a QR code on a receipt. In the wallet: Send, then "Send as a link", then "Email it".

Pay with Dznye: cashback paid by the shop

A shop can give money back on every payment, automatically, from a reserve it funds itself:

await dz.setCashback(shopKey, 'DZY', 5, { name: 'My ebook shop' });   // 5% back on payments in DZY
await dz.fundShop(shopKey, 'DZY', '100');                                // 100 DZY set aside for cashback
await dz.payShop(buyerKey, '@my-ebook-shop', '10', { order: 'ebook-881' }); // the buyer gets 0.5 DZY back at once

Pay links and QR codes to a shop pay through it too, so the cashback works from any of them. The cashback can be in your own points token instead of DZY ({ reward: tokenId }). It only ever comes from what the shop put in: nobody can farm it, and no DZY is made for it.

Card and bank purchases on your own site

When someone pays you by card in your own app (an ebook, a subscription), your server gets the card provider's confirmation; then your app's own account sends the reward: dz.send(appKey, buyerAddress, '2'), or dz.gift(...) by email if they have no wallet yet. The reward comes from your app's own DZY or points.

Rewards and points for your app

Make your own token (make a token), then give it out by link when someone signs up, buys or helps. Pair it with DZY in a pool (pools and instant swaps) if you want people to be able to swap it.