Dapp Notifications

ONLY NETWORK (ONLY) provides a universal inbox to receive messages from dapps and wallets. This way, users can receive time-sensitive dapp messages, like an NFT floor price drop or an imminent liquidation in a lending protocol position. There would be tremendous user scenarios for such communication. A decentralized exchange can notify users when the desired gas price is reached, or an NFT marketplace sends out heads-up notifications of NFT auctions, saving users’ effort from regularly checking.

Below we provide a specific use case describing how the user can receive a decentralized exchange (DEX) notification inside the wallet app when the desired gas price is reached.

Use Case Name

Receiving DEX gas price notification from wallet

Actors

  1. DEX

  2. Wallet app

  3. User

  4. ONLY NETWORK protocol

Preconditions

  1. The DEX has integrated the ONLY NETWORK protocol.

  2. The wallet app has integrated the ONLY NETWORK protocol.

Basic Flow of Events

  1. The use case begins when a user authenticates in the DEX.

  2. The user sets a target gas price as a notification condition.

  3. When the gas price is met, DEX calls ONLY NETWORK service message interface to send out a notification message to the user's wallet address.

  4. The wallet receives the DEX message.

  5. The wallet displays the message.

  6. The use case ends successfully.

Last updated