Initialization
Last updated
Last updated
Prerequisites:
To initialize the library, add the following code to your dApp:
Once the Ternoa-JS library is initialized, you will be able to use all the powerful NFT FRAMEs designed by Ternoa to build your dApps.
That's it! You're ready to build your dApp on Ternoa.
Ternoa SDK provides a powerful function named getRawApi()
to interact with the API. If the API is connected, it will be directly returned. You can use it all throughout your development experience to access passed data, subscribe to blockchain events, and access real-time blockchain info outside of extrinsics, constants, or queries.