New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@liteflow/core

Package Overview
Dependencies
Maintainers
3
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@liteflow/core

This document provides a step-by-step guide on how to install and use the Liteflow Javascript SDK. The SDK allows you to access various modules such as Account, Asset, and Exchange.

  • 3.0.0
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
3
decreased by-85.71%
Maintainers
3
Weekly downloads
 
Created
Source

Core SDK

This document provides a step-by-step guide on how to install and use the Liteflow Javascript SDK. The SDK allows you to access various modules such as Account, Asset, and Exchange.

Installation

First, you need to install the @liteflow/core package. You can do this using npm with the following command:

npm i @liteflow/core

Creating a Client

After installation, you can create a client to access the different modules of the Liteflow SDK. To create a client, you will need an API key, which can be obtained from the Liteflow dashboard at https://dashboard.liteflow.com/developer/connection.

Here is a sample code snippet to create a client:

import { Client } from '@liteflow/core'

const client = new Client('API_KEY')

User Authentication

To authenticate a user, you need to pass the authorization in the options while creating the client. Here's how you can do it:

new Client('API_KEY', { authorization: 'xxxx' })

Using Modules

The core library is divided into different modules that you can use to perform various actions. Here are some of the modules:

  • Account: Allows you to execute actions on an account.
  • Asset: Lets you perform actions related to NFTs (also known as Assets).
  • Exchange: Enables you to exchange NFTs and create various offers.

You can access these modules directly from the client using the following structure:

client.MODULE.ACTION

In the above structure, MODULE is the module you want to use, and ACTION is the action you want to execute.

For example, if you want to list a token in the exchange module, you can do it as follows:

client.exchange.listToken(...)

That's it! You are now ready to use the Liteflow Javascript SDK.

FAQs

Package last updated on 17 May 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc