
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
@stabbleorg/clmm-sdk
Advanced tools
An SDK for building applications on top of Raydium.
$ yarn add @raydium-io/raydium-sdk-v2
$ yarn dev {directory}
e.g. yarn dev test/init.ts
import { Raydium } from "@raydium-io/raydium-sdk";
const raydium = await Raydium.load({
connection,
owner, // key pair or publicKey, if you run a node process, provide keyPair
signAllTransactions, // optional - provide sign functions provided by @solana/wallet-adapter-react
tokenAccounts, // optional, if dapp handle it by self can provide to sdk
tokenAccountRowInfos, // optional, if dapp handle it by self can provide to sdk
disableLoadToken: false, // default is false, if you don't need token info, set to true
});
import { parseTokenAccountResp } from "@raydium-io/raydium-sdk";
const solAccountResp = await connection.getAccountInfo(owner.publicKey);
const tokenAccountResp = await connection.getTokenAccountsByOwner(owner.publicKey, { programId: TOKEN_PROGRAM_ID });
const token2022Req = await connection.getTokenAccountsByOwner(owner.publicKey, { programId: TOKEN_2022_PROGRAM_ID });
const tokenAccountData = parseTokenAccountResp({
owner: owner.publicKey,
solAccountResp,
tokenAccountResp: {
context: tokenAccountResp.context,
value: [...tokenAccountResp.value, ...token2022Req.value],
},
});
# token
raydium.token.tokenList
raydium.token.tokenMap
raydium.token.mintGroup
# token account
raydium.account.tokenAccounts
raydium.account.tokenAccountRawInfos
const data = await raydium.api.getTokenList();
const data = await raydium.api.getTokenInfo([
"So11111111111111111111111111111111111111112",
"4k3Dyjzvzp8eMZWUXbBCjEvwSkkk59S5iCNLY3QrkX6R",
]);
const data = await raydium.api.getPoolList({});
// ids: join pool ids by comma(,)
const data = await raydium.api.fetchPoolById({
ids: "AVs9TA4nWDzfPJE9gGVNJMVhcQy3V9PGazuz33BfG2RA,8sLbNZoA1cfnvMJLPfp98ZLAnFSYCFApfJKMbiXNLwxj",
});
const data = await raydium.api.fetchPoolByMints({
mint1: "So11111111111111111111111111111111111111112",
mint2: "4k3Dyjzvzp8eMZWUXbBCjEvwSkkk59S5iCNLY3QrkX6R", // optional,
// extra params: https://github.com/raydium-io/raydium-sdk-V2/blob/master/src/api/type.ts#L249
});
// ids: join farm ids by comma(,)
const data = await raydium.api.fetchFarmInfoById({
ids: "4EwbZo8BZXP5313z5A2H11MRBP15M5n6YxfmkjXESKAW,HUDr9BDaAGqi37xbQHzxCyXvfMCKPTPNF8g9c9bPu1Fu",
});
FAQs
An SDK for building applications on top of stabble's CLMM
The npm package @stabbleorg/clmm-sdk receives a total of 4 weekly downloads. As such, @stabbleorg/clmm-sdk popularity was classified as not popular.
We found that @stabbleorg/clmm-sdk demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
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.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.