@unmarshal/sdk
TypeScript icon, indicating that this package has built-in type declarations

2.0.2 • Public • Published
Unmarshal JS SDK

Unmarshal SDK (JavaScript / TypeScript)

A library that gives you access to the powerful Unmarshal Server backend from your JavaScript app.


Features:

  • Wallet APIs
  • Protocol(LP) APIs
  • NFTs
  • Price Store
  • Token Store
  • Top Traders
  • EVM APIs
  • Notifications APIs
  • Modular package: include only what you need
  • Fully Typescript ready out-of-the box

🚀 Quick start

If you're new to unmarshal, check the quickstart guide in the official docs on how to get started.

If you're already familiar with unmarshal and have your server set up. Then follow along to connect your SDK:

1. Install unmarshal

The easiest way to integrate the unmarshal SDK into your JavaScript project is through the npm module.

Install the package via npm:

npm install @unmarshal/sdk  

or yarn:

yarn add @unmarshal/sdk  

Import unmarshal:

import {Unmarshal, Chain} from "@unmarshal/sdk";

2. Initialise unmarshal

After your dependency is added, you simply need to create new unmarshal instance by passing your auth key

const unmarshal = new Unmarshal({  
    apiKey: "YOUR_API_KEY_GOES_HERE"  
});

Usage

After initialisation, you can use any unmarshal functionalities via, as described in our extensive docs

unmarshal.WalletApi
    .getTokenBalances(Chain.ethereum, "demo.eth")
    .then(({data}) => console.log(data))

Dependencies (1)

Dev Dependencies (1)

Package Sidebar

Install

npm i @unmarshal/sdk

Weekly Downloads

5

Version

2.0.2

License

ISC

Unpacked Size

95.6 kB

Total Files

59

Last publish

Collaborators

  • pujith_unmarshal
  • unmarshal-info