@stakingcapital/sdk

0.1.2 • Public • Published

Getting Started

Note

This SDK currently only consists of a single function, fetchNFTs, which returns a list of NFTs staked/unstaked by a given wallet address for a specific stakepool. If you need further functionality or help, please reach out to us on Twitter.

Installation

npm install @stakingcapital/sdk

Basic Usage

import { StakingCapitalAPI } from '@stakingcapital/sdk';

const sdk = new StakingCapitalAPI();

const nfts = await sdk.fetchNFTs({
  owner: 'INSERT_STAKER_WALLET_ADDRESS_HERE',
  stakepool: 'INSERT_STAKEPOOL_ADDRESS_HERE',
});

console.log('Staked NFTs', nfts.staked);
console.log('Unstaked NFTs', nfts.unstaked);

Readme

Keywords

none

Package Sidebar

Install

npm i @stakingcapital/sdk

Weekly Downloads

1

Version

0.1.2

License

ISC

Unpacked Size

8.39 kB

Total Files

14

Last publish

Collaborators

  • stakingcapital