0.8.39 • Published 1 year ago

@frakt-protocol/frakt-sdk v0.8.39

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

frakt-sdk

npm version

Library to interact with frakt.xyz protocols on Solana. This SDK is available under the MIT license.

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.

0.8.39

1 year ago

0.8.34

1 year ago

0.8.33

1 year ago

0.8.36

1 year ago

0.8.35

1 year ago

0.8.30

1 year ago

0.8.32

1 year ago

0.8.38

1 year ago

0.8.37

1 year ago

0.8.29

1 year ago

0.8.27-beta.1

2 years ago

0.8.27-beta.4

2 years ago

0.8.27-beta.5

2 years ago

0.8.27-beta.2

2 years ago

0.8.27-beta.3

2 years ago

0.8.27-beta.8

2 years ago

0.8.27-beta.6

2 years ago

0.8.25

2 years ago

0.8.27

2 years ago

0.8.26

2 years ago

0.8.28

2 years ago

0.8.27-beta.10

2 years ago

0.8.22-beta.5

2 years ago

0.8.22-beta.0

2 years ago

0.8.22-beta.2

2 years ago

0.8.22-beta.3

2 years ago

0.8.22-beta.4

2 years ago

0.8.23

2 years ago

0.8.24

2 years ago

0.8.21

2 years ago

0.8.20

2 years ago

0.8.21-beta.1

2 years ago

0.8.21-beta.0

2 years ago

0.8.21-beta.3

2 years ago

0.8.21-beta.2

2 years ago

0.8.12

2 years ago

0.8.11

2 years ago

0.8.14

2 years ago

0.8.13

2 years ago

0.8.19

2 years ago

0.8.16

2 years ago

0.8.15

2 years ago

0.8.18

2 years ago

0.8.17

2 years ago

0.8.9

2 years ago

0.8.8

2 years ago

0.8.5

2 years ago

0.8.4

2 years ago

0.8.7

2 years ago

0.8.6

2 years ago

0.7.11

2 years ago

0.7.12

2 years ago

0.8.10

2 years ago

0.8.0

2 years ago

0.8.3

2 years ago

0.8.2

2 years ago

0.7.10

2 years ago

0.7.2-beta.2

2 years ago

0.7.2-beta.3

2 years ago

0.7.4

2 years ago

0.7.3

2 years ago

0.7.9

2 years ago

0.7.6

2 years ago

0.7.5

2 years ago

0.7.8

2 years ago

0.7.7

2 years ago

0.7.2-beta.0

2 years ago

0.7.2-beta.1

2 years ago

0.0.30

2 years ago

0.0.31

2 years ago

0.1.0

2 years ago

0.6.2-beta.6

2 years ago

0.3.0

2 years ago

0.6.2-beta.5

2 years ago

0.1.1

2 years ago

0.7.2

2 years ago

0.6.4-beta.0

2 years ago

0.6.3-beta.0

2 years ago

0.6.2-beta.0

2 years ago

0.7.1

2 years ago

0.6.3-beta.1

2 years ago

0.0.28

2 years ago

0.6.4-beta.1

2 years ago

0.0.29

2 years ago

0.6.2-beta.4

2 years ago

0.5.0

2 years ago

0.6.2-beta.3

2 years ago

0.7.0

2 years ago

0.6.3-beta.2

2 years ago

0.6.2-beta.2

2 years ago

0.0.20

2 years ago

0.0.21

2 years ago

0.0.22

2 years ago

0.0.24

2 years ago

0.0.25

2 years ago

0.0.15

3 years ago

0.0.16

3 years ago

0.0.17

3 years ago

0.0.18

3 years ago

0.0.19

3 years ago

0.0.10

3 years ago

0.0.11

3 years ago

0.0.13

3 years ago

0.0.14

3 years ago

0.2.1

2 years ago

0.2.0

2 years ago

0.6.3

2 years ago

0.0.9

3 years ago

0.6.2

2 years ago

0.0.8

3 years ago

0.6.4

2 years ago

0.4.1

2 years ago

0.4.0

2 years ago

0.2.2

2 years ago

0.6.1

2 years ago

0.6.0

2 years ago

0.0.7

3 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago