Ylide Protocol is an open-source cross-chain wallet-to-wallet communications solution for Web3 projects. We anticipate that for the mass adoption of the Web3 it is crucial to have native decentralized and secure communications layer. That's what's Ylide purpose is.
For all examples we will use EVM connectors for Polygon from @ylide/ethereum. To install core of the SDK, run:
npm install --save @ylide/sdk
On the next step you should install some blockchain connector to be able to read and send messages:
npm install --save @ylide/ethereum
So, first of all you should import these connectors:
import { evmBlockchainFactories, evmWalletFactories, EVMNetwork } from '@ylide/ethereum';
Afterward, you should register them in the Ylide singleton:
Ylide.registerBlockchainFactory(evmBlockchainFactories[EVMNetwork.POLYGON]);
Ylide.registerWalletFactory(evmWalletFactories.metamask);
You can easily verify availability of MetaMask (or other Ethereum wallet) in user’s browser:
const isWalletAvailable = await evmWalletFactories.metamask.isWalletAvailable();
Please see our full documentation here. You can start with:
- Getting started - How to initalize SDK and create your first project using Ylide
- Initializing communication keys - How to work with Ylide communication keys
- Sending messages - How to send on-chain messages
- Reading messages - How to read messages from multiple blockchains
- Want to report a bug or request a feature? Please open an issue.
- Want to build something amazing with Ylide? Fork the project, and check out our issues.
- Join our Discord to ask any question!
- [email protected] - for business inquiries - send us an email