🇺🇸
Laika Documentation
Docs - EN
Docs - EN
  • 🐶What is Laika
  • Guides
    • Quickstart Guide
  • Fundamentals
    • Create a New Request
    • Sharing Imports
    • Laika Utilities
      • Create a Note
      • Code Snippets
      • Converters
    • Laika Scenarios
    • Laika Environments
  • Advanced
    • Use hardhat-laika
    • Using Laika with Web3 Node Providers
  • Use Cases
    • Laika for Lens
    • Use Laika with Hardhat
      • What is Hardhat
      • Why do we use Hardhat
      • Setup Project
      • Toy Example
Powered by GitBook
On this page
  1. Fundamentals
  2. Laika Utilities

Code Snippets

PreviousCreate a NoteNextConverters

Last updated 2 years ago

Laika knows about your Dapp development needs and provides you with a Code Snippets generator right in your workspace, which gives you the necessary code to call your Request as a function in your Dapp. We support code generation in:

  1. Ethers.js (ES6)

  2. Ethers.js (CommonJS)

  3. Web3.js (ES6)

  4. Web3.js (CommonJS)

  5. Web3.py

To make use of the Code Snippets, go over to the right pane of your workspace and click on the Code Tag Icon "</>".

This will expand the pane to show the Code Snippets Generator. You can select the pattern to use for generating the function specific code snippet here.

And that's it! You can copy the snippets directly and use them in your Dapp through your preferred code editor.

</> icon