Ylide Protocol
  • What is Ylide Protocol?
  • Parts of the Ylide
  • Glossary
  • Use Ylide
    • Getting started
    • Authorization
    • Sending message
    • Reading message
  • Fundamentals
    • Communication keys
    • Storage of communication keys
    • Cryptographic primitives
    • Sending and reading messages
    • Registration of public keys
    • Smart contracts & blockchain interaction
    • On-chain indexing
  • Extras
    • FAQ
Powered by GitBook
On this page
  1. Use Ylide

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();

ylide.add(evm);

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.

PreviousGlossaryNextAuthorization

Last updated 1 year ago