From e88b6060b885b7a29be86562c16de7ec0593eedc Mon Sep 17 00:00:00 2001 From: Cruz Shia Date: Tue, 24 Dec 2024 15:49:13 +0800 Subject: [PATCH] update hint --- README.md | 4 ++-- src/amm/createMarket.ts | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index aca46e7..5dfb272 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ const { execute, transaction, builder, extInfo } = await raydium.clmm.openPositi - `builder`: all instructions in transaction. e.g. builder.allInstructions, builder.AllTxData - `extInfo`: transaction related publicKeys. (e.g: extInfo from raydium.cpmm.createPool includes poolId, programId...etc) -#### Fetch pool list by mints +#### Fetch pool list by mints (mainnet only) ``` import { PoolFetchType } from '@raydium-io/raydium-sdk-v2' @@ -70,7 +70,7 @@ await raydium.account.fetchWalletTokenAccounts() // if need to force fetching to ### FAQ -#### Error: block height exceeded +#### Error: block height exceeded / exceeded CUs meter at BPF instruction - transactions were expired, set higher priority fees (computeBudgetConfig) to make it go through smoothly - if you are testing in devnet, remember to replace programId to devnet one. diff --git a/src/amm/createMarket.ts b/src/amm/createMarket.ts index 204461f..d5698e5 100644 --- a/src/amm/createMarket.ts +++ b/src/amm/createMarket.ts @@ -51,7 +51,9 @@ export const createMarket = async () => { sequentially: true, }) - console.log('note: create market does not support token 2022') + console.log( + 'note: create market does not support token 2022, if you need more detail error info, set txVersion to TxVersion.LEGACY' + ) console.log('create market txIds:', txIds) process.exit() // if you don't want to end up node execution, comment this line }