-
```
const inputAmount = new BN(amountToSend);
const reserveA =
(poolInfo.mintA.address.toString() === tokenToSend) === bIsTokenSwap
? rpcData.qu…
-
https://github.com/raydium-io/raydium-sdk-V2-demo/blob/ca8615fce7d911eece0370d58f2d67b016482aa9/src/amm/swap.ts#L33
For some reason slippage change do not affect to requested amountOut when I make …
-
The jupiter swap api using yellowstone plugin does not update the prices as often as the available public swap api.
When sending the example request every 200ms, te api updates the prices once a fe…
-
-
when listening add Liquidity Pool AMM,
then use raydium-sdk-V2-demo/src/amm/swap.ts to swap,
but
> const poolInfo = data[0] as ApiV3PoolInfoStandardItem
return null。
A few minutes later …
-
logs: [
'Program CAMMCzo5YL8w4VFF8KVHrK22GGUsp5VTaW7grrKgrWqK invoke [1]',
'Program log: Instruction: SwapV2',
'Program log: AnchorError caused by account: observation_state. Error Cod…
-
I used the jupiter-swap-api v6.0.15 version. The program ran for a long time, but the following command returned the Connection close response body.
`curl -s 'http:127.0.0.1:8080/quote?inputMint=So11…
yclsl updated
2 months ago
-
After I do run the program, the program returns the txid normally but when I go to check it, it's an empty transaction
-
when i run this code i am facing this error
/Users/webskitters/Desktop/raydium-sdk-swap-example-typescript/node_modules/base-x/src/index.js:113
throw new Error('Non-base' + BASE + ' charact…
-
SOL token or vise versa, or token token
How does one swap assets **on-chain?** Within a smart contract or program. Is there an example?