raydium-io / raydium-sdk-V2-demo

Open-source Typescript SDK demos
50 stars 31 forks source link

CreateAmmPool throw block height exceeded exception on DEVNET #11

Closed dexweb3 closed 4 months ago

dexweb3 commented 4 months ago

Before running the script, I set up the environment: updated the values in config.ts.

My call code: image

I ensured that marketId, as well as base and quote, are correctly set (exactly the same values that were passed in the transaction to create the market).

Error: Signature XXX has expired: block height exceeded.

For some reason, at the devnet, the transaction just hangs with no reaction. I tried retrying it many times, changing/removing computeBudgetConfig.

No any issue with connection because the market creation transaction, for example, executed instantly.

Also, in the Solana explorer, this transaction does not appear as successfully completed nor as failed. It's as if it didn't even attempt to execute.

Are there any reasons why this might be happening? Maybe I have something incorrectly set up considering working with devnet?

cruzshia commented 4 months ago

add devent example to lastest commit, you should modify programId/market programId/fee programId https://github.com/raydium-io/raydium-sdk-V2-demo/blob/master/src/amm/createAmmPool.ts#L27 also, remember to modify cluster to devent in config.ts https://github.com/raydium-io/raydium-sdk-V2-demo/blob/master/src/config.ts.template#L16

dexweb3 commented 4 months ago

Thanks @cruzshia , it works 👍