Integrating Push Chat
Overview about Push Chat SDK
Integrating Push Chat for any functionality is extremely easy. The Push Chat SDK is divided into the following functionalities:
This guide provides high-level knowledge about function calls and what they do, to dive into code @pushprotocol/restapiâ
ð
Push Chat API is in alpha, please bookmark this page for the new APIs introduction.
For an overview of Push Chat, please go to https://docs.push.org/developers/concepts/push-chat-for-web3.
npm
yarn
npm install @pushprotocol/[email protected] [email protected]^5.6
yarn add @pushprotocol/[email protected] [email protected]^5.6
Each User of Push Chat has a PGP key that is created locally and stored encrypted on Push nodes.
You are required to get the PGP key and decrypt it locally, for which you can use the following SDK functions.
This function will create a new user and return the created userâs information, like the PGP keys. It takes as arguments the address of the wallet and the environment variable.