Questions tagged [raydium]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
5 views

Check if coin is registrered on Raydium

What is the most efficient way to check if a Solana coin is listed on DEX in Python? I know it can be done through dexscreener getToken API. However, I don't need any information about the token other ...
Lars Mohammed's user avatar
0 votes
0 answers
7 views

RPC_ERROR: failed to simulate for instructions

The full body of the error is: const error: any = new Error(message) ^ Error: rpc simulateTransaction error at Logger.makeError (/home/nuh/Desktop/crypto_studies/...
nferturk's user avatar
0 votes
0 answers
28 views

Getting error for using Raydium SDK: Transaction instruction index 0 has undefined program id

I'm trying to do a simple swap on raydium but i keep getting an error of undefined program ID here is my code: const poolInfo = { "id": "H36eDWAtAZ2JytqrMur2TCn4aQJvqKD3F8ZhZGeepqUD&...
The matador's user avatar
0 votes
0 answers
26 views

Process Radium Token Swap in Python

Im a newly on Solana and feel as if my mind is bending xD. Im trying to process a transaction with a function where Ive swapped xxx amount of a token for yyy amount of solana and vice versa to work ...
Matt Halter's user avatar
0 votes
1 answer
45 views

Error failed to send transaction: Transaction signature verification failure

I'm trying to send swap transaction in Raydium using Raydium SDK, I made exactly as their demo, and at first when I tried with private RPC it worked and after I wanted to go production and bought ...
Daniel Kotlarov's user avatar
0 votes
1 answer
14 views

How can I get the details of a transaction through hash?

I can find all my transaction records through the wallet address, and I can get the hash of the transaction records, but I want to know how much tokenA I paid and how much tokenB I got for each swap ...
FengJob's user avatar
  • 21
1 vote
1 answer
57 views

Transaction fails when using skipPreflight: true

Sending and confirming a transaction works for me only using skipPreflight=false. As soon as i set skipPreflight=true the transaction does not come through and confirmation fails with: ...
trahktenbrot's user avatar
0 votes
0 answers
35 views

Using Look up tables with Raydium swap

I'm currently trying to write a multiple swap transaction (10 swaps) using lookup tables using Liquidity.makeSwapInstructionSimple. When writing standard v0 transactions, you simply pass the LUT to ...
hhoogg's user avatar
  • 1
0 votes
1 answer
29 views

Hey guys is it possible to change immutable metadata? Or to change the coin that’s under a market id?

I have a coin I made not too long ago with a market id on radydium that I never used (it’s all in my account), now I want to make another coin but I don’t wanna pay for another market id, so I tried ...
Ilay Levi's user avatar
0 votes
0 answers
32 views

Subscribe to AMM pool creation and generate the pool key structures

I am looking to subscribe to AMM pool creation and generate the pool key structures so that I do not have to load every time the expensive raydium mainnet.json file containing the pool keys. I have ...
Stickmen1's user avatar
2 votes
1 answer
129 views

How to get the price of the token on Raydium through the contract address of the token?

I'm using the Raydium SDK to implement a few functions, and I'm new to the blockchain space. I just want to know how to get the current price of a token, which is how much sol a token is currently ...
FengJob's user avatar
  • 21
0 votes
0 answers
25 views

Missing event when trying to fetch new tokens data

I am listening to new raydium pools using the connection.onLogs() rpc method with the filter of raydium program id, so I get logs of only raydium program, but some of the tx logs doesn't come while ...
modsiw's user avatar
  • 31
0 votes
0 answers
50 views

Solana - raydium swap functionality

I want to use Raydium swap functionality, but I don't know, how to get the full data for instructions. So far, I can receive these vars by listening to the events of liquidity pools (but I cannot get ...
Victor Kozykin's user avatar
1 vote
2 answers
139 views

Detecting coin price changes on Raydium within 1-500 milliseconds

I would like to be able to detect within 1-500 milliseconds of a price change on raydium for a select group of coins which I specify. I read the documentation for raydium api at https://docs.raydium....
Anish Mukherjee's user avatar
0 votes
0 answers
76 views

Raydium swap appears NO DATA(Node JS)

export async function swap(amount, tokenFrom, tokenTo, fixedSide, poolInfo) { const raydiumSwap = new RaydiumSwap(); console.log(Raydium swap initialized); console.log(Swapping ${amount} of ${...
adnis's user avatar
  • 1
1 vote
0 answers
48 views

Any risks regaring baseVault, quoteVault, baseMint Raydium v4 pool

How does analyzing the baseVault, quoteVault, baseMint, and related addresses in the Raydium pool help in evaluating the security against scams or rug pulls? Are there red flags in mint, freeze ...
otamtubol's user avatar
1 vote
0 answers
141 views

Transaction reverted during simulation for create an open book market on raydium

i try to create an open book market on raydium and when i what to pay the fees i get this "Transaction reverted during simulation". thanks for the answer
help's user avatar
  • 11
0 votes
1 answer
47 views

How to prevent transactions replay in solana?

Suppose I want to buy a token. If I send 100 transactions to buy it within 1 minute, how can I ensure that only at most 1 of these 100 transactions will be successful?
user2873314's user avatar
1 vote
2 answers
200 views

Raydium AMM Program Instruction "custom program error: 0x16"

I currently deployed a liquidity pool to Raydium. https://explorer.solana.com/tx/3VbKy14uCGGBNGzCgZTSZwVvNGinVr8PWz1Xhj6PZdL5bAp1yQmSTQVVXaWGjtf7pnruKSKN2WdDPyo8CVksr4VP When I created the liquidity ...
Steven Aguilar's user avatar
1 vote
0 answers
112 views

Track real time price changes of a token [closed]

I'd like to track real time price changes of tokens which has pools deployed in Raydium. It's getting really confusing to be fair, I'm seeing that Raydium uses Serum as an orderbook so technically to ...
shibuya_69's user avatar
2 votes
1 answer
941 views

Raydium Liquidity Pool API call && calculation of price

I have a problem regarding the calculation of a Raydium pool price. (https://github.com/raydium-io/raydium-sdk) Raydium API Request for Liquid Pool V4 SOL/USDC. import { Connection, PublicKey } from ...
axlynom's user avatar
  • 31
1 vote
2 answers
1k views

Simulate a swap / execute a swap on Raydium in Python

I'm a newby on Solana and 0 understanding of RUST and Typescript. I'm looking for a solution to simulate swap on Raydium using Python, and then also the code to execute the swap. I've been trying to ...
Davide Pasini's user avatar
0 votes
1 answer
165 views

Calculation of Tocken price (for example SOL-USDC)

Fetched data from a raydium pool. Which values do I need for the calculation of the "fair price" or rather current price? Outcome should looks something like this : 1 SOL = 169.3 USDC (If ...
axlynom's user avatar
  • 31
2 votes
1 answer
172 views

Why can slippage only be set to whole numbers using Raydium Swap SDK?

I am currently using the Raydium SDK to perform token swaps. I use the Percent class from the sdk to create the slippage value which I then use in my transaction, but it seems that this Percent class ...
sashavsthewrld's user avatar
0 votes
2 answers
139 views

How to get SPL token value in SOL / USD (exchange rate) using the Raydium SDK?

I've already got the SPL token mint address using @solana/spl-token and @solana/web3.js, now I want to get how much this SPL token is valued in SOL using the Raydium SDK. I've looked at some answers ...
Tyran's user avatar
  • 3
1 vote
1 answer
181 views

sendTransaction sometime not landing on the blockchain

I'm currently using the solana/web3.js and raydium-sdk library to perform swap with tokens. Everything seems to be working fine, however, I after sending my transaction with the sendTransaction ...
user11061's user avatar
0 votes
1 answer
249 views

why the transaction failed?

so I send the transaction const buySign = await connection.sendTransaction(swapTx, [wallet], { skipPreflight: true, preflightCommitment: 'confirmed', maxRetries: 3 }) I get ...
slntrx's user avatar
  • 97
0 votes
1 answer
378 views

Need help with raydium sdk

I am building a swap like app that uses raydium but I'm facing alot of problems. I copied someone's code and tried to change it a little bit but something is quite off. Whenever I try to sell the ...
user10900's user avatar
0 votes
3 answers
1k views

Why does my transaction takes ages to be sent

I am trying to make a swap transaction on Raydium using Python. I always preparing the transaction and necessary instructions for the swap in advance: print("Add Instructions To Transaction...&...
xallve's user avatar
  • 5
0 votes
0 answers
62 views

find coins near ATH in any solana dex

Is there any tool that can help me find coins near ATH or any api that can give me OHLC data ? Dexscreener/ dextools does not allow to filter by ath. Cryptorank is available but new pairs are not ...
saf's user avatar
  • 1
1 vote
1 answer
636 views

Raydium Swap -- Program log: Error: The amm account owner is not match with this program

Getting this error when attempting a swap on Raydium within the first few seconds of a pool being created. "Program log: Error: The amm account owner is not match with this program "Program ...
Fakebl0ck's user avatar
0 votes
2 answers
112 views

Trying to understand Solana Markets and Data Models

I'm working on trying to replicate the payload returned by Raydium from their liquidity pool data, but using python. { "id": "EP2ib6dYdEeqD8MfE2ezHCxX3kP3K2eLKkirfPm5eyMx", &...
sparrow's user avatar
  • 101
0 votes
0 answers
156 views

Subscribe to raydium swaps

I search for a way to subscribe to all swap transactions of the Raydium program. I have the following code: rpcClient.onProgramAccountChange( RAYDIUM_PROGRAM_ID, async (keyedAccountInfo, ...
Stefan D.'s user avatar
  • 181
0 votes
1 answer
91 views

How to swap assets on-chain on any popular DEX?

I need to create a Program with a function swap_on_dex(...) which will accept an input token with an amount, a target wallet address and execute a swap for SOL (optionally, for other token) on any ...
ursula's user avatar
  • 1
0 votes
0 answers
120 views

simulate transaction error

trying to simulate a swap transaction using jupiter for the quote + serialized swap tx the error im getting is: {'jsonrpc': '2.0', 'result': {'context': {'apiVersion': '1.17.21', 'slot': 250049932}, ...
user9116's user avatar
0 votes
0 answers
50 views

Add/Create LP on raydium using python [duplicate]

is there any know way to create lp on raydium or can someone point me into direction how to do it in python? thanks
Gensx X's user avatar
0 votes
1 answer
147 views

raydium clmm pool swap

I can perform token swap transactions in Raydium with Python. but I don't know how to do this on a token in the clmm pool. I can collect the keys from the Raydium API in the normal AMM pool and ...
Ali Mercan's user avatar
1 vote
1 answer
155 views

CLMM Pool on Raydium

I'm confused about creating a pool on CLMM on Raydium. I'm using the Raydium SDK to create a DEX, but I'm stuck understanding the addresses involved. As far as I understand, there are three main ...
Maidi's user avatar
  • 444
0 votes
0 answers
37 views

How can I transfer Solana from several different wallets to one wallet in a single tx?

How can I transfer Solana from several different wallets to one wallet in a single tx? I prefer web3.js if you have the code for that. also I am hiring so write your Discord below if you know the ...
Elliot's user avatar
  • 21
0 votes
0 answers
67 views

Custom program error 0x2e

I an trying to send a transaction to RAYDIUM V4 program to remove liquid from an Liquidity Pool. However, I encountered an error with code 0x2e. From here: https://github.com/raydium-io/raydium-amm/...
Bach Kim's user avatar
1 vote
1 answer
413 views

Error in getTokenAccountBalance (failed to get token account balance), when quickly buying/selling

I am attempting to sell tokens immediately after purchasing them (in few seconds), but I am encountering an error when trying to retrieve the balance/token account for the swap. I have used both ...
Mika Sens's user avatar
1 vote
1 answer
123 views

What Do I Put into a Quote Vault?

I have a platform asset, which I'm using as tying mechanic between a stack of my apps, for login and rewards etc. The problem I am having is working out what to put into the OpenBook Vaults. For the ...
JB Dark Knight Benjamin's user avatar
2 votes
3 answers
2k views

How to fetch Raydium pool keys in real time?

I'm trying to fetch the pool keys that are necessary to make swap a transaction using the Raydium SDK. These keys are available in the https://api.raydium.io/v2/sdk/liquidity/mainnet.json file, but ...
Ailef's user avatar
  • 121
-1 votes
1 answer
756 views

Interacting with the Raydium API

I don't know much about programming. I want to interact with the Raydium API in order to swap tokens <30 secs after launch. How do I do it? A detailed guide would be great, thanks.
adoonnnnn's user avatar
1 vote
0 answers
742 views

Adding/Removing liquidity to my own solana token

Im completely new to coding and im trying to figure out how to add/remove liquidity to my own solana token without having to use the Raydium UI as it is very slow. More specifically im trying to learn ...
user9067's user avatar
0 votes
1 answer
146 views

Raydium swap without creating Token Account

My typescripts program swaps tokens but creates an account token each time. I saw on Solscan that it is possible not to create an account. how can I do it, any advice or code? sample transaction: ...
user9036's user avatar
0 votes
1 answer
755 views

how to determine how many lp locked tokens were burned

so I have the addresses of the new token. I also have the address of the raydium pool. How do I determine how many lp tokens have been burned? I want to do something similar to that functionality from ...
slntrx's user avatar
  • 97
2 votes
1 answer
831 views

create POOL on raydium using JS/TS

I want to create a market ID and pool on Raydium using JS/TS. The transaction has been completed, but it does not appear on Solscan. edited: Create Market Transactions : [ '...
Maidi's user avatar
  • 444
0 votes
0 answers
258 views

How can I make a swap on raydium using typescript on devnet?

My end goal is to create a swap script, where user have SOL, if he does not hold WSOL it get's wrapped into it and then gets swapped with user's entered token address. Can someone help me out?
Dastageer Sayed's user avatar
1 vote
1 answer
138 views

How to swap SOL <-> token / vise versa but on-chain (in a smart contract)? On Raydium or SolDex

I'm aware of this question How to interact with router for swap transaction? but mine is different. How to swap a token for SOL or vise versa from within a Solana program/smart contract? That is, on-...
barugaggi's user avatar