yarn add @segna/segna-sdk
npm i @segna/segna-sdk
Import the library and initialize with your API Key, which can be found in your Account Settings.
import segna from '@segna/segna-sdk';
If you want to use Segna from elsewhere (such as backend or even CL), you can hit our Public APIs directly!