{"id":31730758,"url":"https://github.com/devbambino/raydium-test","last_synced_at":"2025-10-09T07:40:17.926Z","repository":{"id":317477862,"uuid":"1066566158","full_name":"devbambino/raydium-test","owner":"devbambino","description":null,"archived":false,"fork":false,"pushed_at":"2025-10-01T04:39:04.000Z","size":673,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"dev","last_synced_at":"2025-10-01T06:26:19.371Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devbambino.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-09-29T16:56:15.000Z","updated_at":"2025-09-29T17:58:54.000Z","dependencies_parsed_at":"2025-10-02T13:02:05.154Z","dependency_job_id":null,"html_url":"https://github.com/devbambino/raydium-test","commit_stats":null,"previous_names":["devbambino/raydium-test"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/devbambino/raydium-test","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devbambino%2Fraydium-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devbambino%2Fraydium-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devbambino%2Fraydium-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devbambino%2Fraydium-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devbambino","download_url":"https://codeload.github.com/devbambino/raydium-test/tar.gz/refs/heads/dev","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devbambino%2Fraydium-test/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000978,"owners_count":26082974,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-09T02:00:07.460Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-10-09T07:40:14.796Z","updated_at":"2025-10-09T07:40:17.921Z","avatar_url":"https://github.com/devbambino.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RAYDIUM SDK V2 demo\n\n## About the project\n\nThis project is for [RAYDIUM SDK V2](https://github.com/raydium-io/raydium-sdk-V2) demonstration\n\n## Getting Started\n\n### Installation\n\n`yarn install`\n\nthis will install the dependencies for running the demo script\n\n### Prerequisites\n\nModify `config.ts.template` to fit your configuration, and rename it to `config.ts`\n\n- `\u003cYOUR_WALLET_SECRET_KEY\u003e`: replace to your own one\n- `\u003cYOUR_RPC_URL\u003e`: replace to your prefer one\n- `\u003cAPI_HOST\u003e`: by default it's no needed to provide raydium api host, only provide it when test on devent.\n\n### Usage\n\n- `yarn dev src/\u003cFOLDER\u003e/\u003cSCRIPT_NAME\u003e` run the specific demo script, e.g. yarn dev src/cpmm/deposit.ts. **Note: if you want to execute tx, remember to uncomment code in last line**\n\n### Sdk Methods\n\n#### Transaction methods return data\n\nall transaction related build function (e.g. await raydium.clmm.openPositionFromBase/ await raydium.cpmm.createPool ..etc) will return all transactions and instructions\n\n```\nconst { execute, transaction, builder, extInfo } = await raydium.clmm.openPositionFromBase({ xxx })\n\n```\n\n- `transaction or transactions`: all built transactions\n- `builder`: all instructions in transaction. e.g. builder.allInstructions, builder.AllTxData\n- `extInfo`: transaction related publicKeys. (e.g: extInfo from raydium.cpmm.createPool includes poolId, programId...etc)\n\n#### Fetch pool list by mints\n\n```\nimport { PoolFetchType } from '@raydium-io/raydium-sdk-v2'\n\nconst list = await raydium.api.fetchPoolByMints({\n  mint1: '4k3Dyjzvzp8eMZWUXbBCjEvwSkkk59S5iCNLY3QrkX6R', // required\n  mint2: 'EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v', // optional\n  type: PoolFetchType.All, // optional\n  sort: 'liquidity', // optional\n  order: 'desc', // optional\n  page: 1, // optional\n})\n```\n\n### Fetch Mint info from Api or Rpc\n\n```\nawait raydium.token.getTokenInfo('\u003cMint address\u003e')\n```\n\n### Fetch token account\n\n```\nawait raydium.account.fetchWalletTokenAccounts() // if need to force fetching token account, pass param { forceUpdate: true }\n```\n\n### FAQ\n\n#### Error: block height exceeded\n\n- transactions were expired, set higher priority fees (computeBudgetConfig) to make it go through smoothly\n- if you are testing in devnet, remember to replace programId to devnet one.\n\n#### raydium.api.fetchPoolById/raydium.api.fetchFarmInfoById return null\n\n- currently api doesn't support devnet pool/farm data, please test on mainnet.\n- only raydium.xxxx.getRpcPoolInfos support get devnet `rpc` pool info.\n\n#### create amm pool error\n\n- `0x10001a9`: you might use https://openbook-tools.dexlab.space/market/create?network=devnet to create devnet market, and they used wrong devent program id, so please use createMarket.ts in demo to create market\n- `lp amount is too less`: please provide more base/quote amount when create pool, if there's SOL/WSOL in your market, it's better provide more than 4 sol(4\\*10\\*\\*9) in initial amount.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevbambino%2Fraydium-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevbambino%2Fraydium-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevbambino%2Fraydium-test/lists"}