Setting up Ceramic

Once you have your Web3 Provider ready, you can quickly setup Ceramic with the following two steps.

If you don't have a provider at this point, go back to Web3 Providers

Step 1 : Initialization

Initialize the Ceramic client with an optional endpoint. Protico's endpoint will be used by default.

const ceramicClient = new ProticoCeramic(ceramicEndpoint?:string);
Step 2 : Connection to the provider

You can now login using the previously obtained provider, and your dApp domain.

const hasLoggedIn = await ceramicClient.login(
        provider, 
        domain,
      );
      

Last updated