Getting started

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 { evm } from '@ylide/ethereum';

Now, you should instantiate Ylide singleton and connector:

const ylide = new Ylide();


await ylide.init();

You can easily verify availability of MetaMask (or any other wallet) in user’s browser:

const isWalletAvailable = await evmWalletFactories.metamask.isWalletAvailable();

The next step is to initialise communication keys.

Last updated