Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@mercurial-finance/frakt-sdk

Package Overview
Dependencies
Maintainers
5
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mercurial-finance/frakt-sdk

Frakt SDK for interacting with frakt.xyz protocols

  • 0.0.2
  • latest
  • npm
  • Socket score

Version published
Maintainers
5
Created
Source

frakt-sdk

npm version

Library to interact with frakt.xyz protocols on Solana.

Install

npm install @frakt-protocol/frakt-sdk --save

Usage

import { utils, loans, pools } from '@frakt-protocol/frakt-sdk';

Also frakt-sdk exports AnchorProvider, BN.js, @raydium-io/raydium-sdk and @solana/web3.js.

import { AnchorProvider, BN, web3 } from '@frakt-protocol/frakt-sdk';

Current versions in dependencies

LibraryVersion
@project-serum/anchor0.24.2
@raydium-io/raydium-sdk1.0.1-beta.46
@solana/web3.js^1.36.0
BN.js^5.1.2

Examples

import { utils, web3 } from '@frakt-protocol/frakt-sdk';

const { accountInfo } = await utils.getTokenAccount({
    tokenMint: new web3.PublicKey('...'),
    owner: new web3.PublicKey('...'),
    connection: new web3.Connection('ENDPOINT'),
});
import { pools, web3, TokenInfo } from '@frakt-protocol/frakt-sdk';

const poolDataByMint = await pools.fetchPoolDataByMint({
    connection: web3.Connection('ENDPOINT'),
    tokensMap: new Map<string, TokenInfo>(),
});

Docs

All methods and interfaces of frakt-sdk are available in documentation.

Keywords

FAQs

Package last updated on 28 Jan 2023

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