Code Snippets
Last updated
Last updated
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:
Ethers.js (ES6)
Ethers.js (CommonJS)
Web3.js (ES6)
Web3.js (CommonJS)
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.