Chat With Owner
Many dApps wish to enable and encourage two owners to interact and discuss a swap or sale. WalletChat chat-with-owner feature enables this use case:
Last updated
Many dApps wish to enable and encourage two owners to interact and discuss a swap or sale. WalletChat chat-with-owner feature enables this use case:
Last updated
To implement a "Chat With Owner" type feature as demonstrated at nft.walletchat.fun :
Ensure your NPM package is up to date yarn upgrade react-wallet-chat
Import the ChatWithOwner button:
The owner address is the message recipient, and is set via the ownerAddress parameter. Here is a code snipped to render a Chat WIth Owner button and the underlying functionality:
Add the following to the main App code, in this case the activeConnector is from the WAGMI package, and could be substituted as needed to get the wallet name/type.