Questions tagged [dex]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
13 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
0 votes
1 answer
33 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
20 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
  • 394
2 votes
0 answers
67 views

How to listen for raydium and other pools live transactions in solana

i want to listen to transactions from pools like raydium or orca and get buy or sell amounts and holder address but im confused about the limitation of the rpc , i don't want to use paid rpc even if ...
The Yoo-Dev's user avatar
1 vote
1 answer
52 views

Creating DEX on Solana

Can I use any package to create the DEX on Solana, or do I have to deploy the Rust contract and then use those contracts for my own DEX?
Maidi's user avatar
  • 394
0 votes
1 answer
77 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
202 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
  • 394
0 votes
0 answers
51 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
0 votes
0 answers
80 views

Trying to do a DEX CPI to perform fully on-chain swaps

I want to create a fully-onchain swap through any clmm dex so for this example I'm trying through raydium even tho I just want to make it work. I'm using the github repo here to import necessary ...
David's user avatar
  • 1
1 vote
2 answers
924 views

Performing a swap

I am clueless on how to perform a swap (ex. USDT to USDC) on the Solana blockchain on Raydium with code. I am currently using @solana/web3 and also not too familiar when it comes to programming. Any ...
stacksolana's user avatar
1 vote
1 answer
386 views

I want to add liquidity into Raydium programmatically

I have developed a presale smart contract using Anchor, and it is currently functional. Now, I am exploring ways to transition to a public sale on decentralized exchanges (DEX) like Raydium after ...
Bheem Coin's user avatar
1 vote
1 answer
543 views

Decoding Transactions

I am learning how to decode solana transactions, how do i decode it like sol scan to get the instructions/swaps for tokens such as raydium? I see a programIdIndex and data, the data is base58 decoded ...
wonton's user avatar
  • 21
0 votes
0 answers
13 views

Withdraw asset from Defi 01

How can I withdraw my asset from 01? we can deposit but cannot withdraw. They closed TG, no one reply in Discord.
user6873's user avatar
0 votes
0 answers
55 views

How to get a token's "pubkey" prior to owning it?

executing the following code using solana's mint address, So11111111111111111111111111111111111111112, I can't get the public key for Solana if I don't have wrapped Solana in my wallet. How can you ...
modalxx's user avatar
  • 21
1 vote
0 answers
767 views

How to get AmmId of a pair of tokens with Raydium pool [closed]

I'm trying to make a swap transaction between USDC and another token. The instruction take the AmmId as a parameter. How can I get that value if I only have the addresses of the tokens?
Bruno's user avatar
  • 11
1 vote
0 answers
74 views

How to have a Sequence of Union while using buffer-layout?

I'm trying to create some layouts for serum-dex Slab accounts, where, export class Slab { readonly header: SlabHeader; readonly nodes: SlabNode[]; constructor(header: SlabHeader, nodes: ...
sayantank's user avatar
  • 425
1 vote
1 answer
73 views

Serum dex Error

i'm trying to do a token swap in my code through serum dex but I'm getting this error Program 9xQeWvG816bUx9EPjHmaT23yvVM2ZWbrrpZb9PusVFin failed: custom program error: 0x100016b Does anybody know ...
iMEF's user avatar
  • 326
1 vote
0 answers
18 views

dex lab invisibile token in swap

I'm trying to exchange my token on dex lab but I can't do it, because it's not visible in the area "buy my token". You can look here: https://www.dexlab.space/token/...
AlexWin99's user avatar
0 votes
1 answer
27 views

Assets not sent after issuing successful trade transaction on Serum DEX [closed]

We deployed the Serum UI and DEX contract and managed to create orders but for some reason, when trade happens, assets are not sent to seller/buyer.
Brian Nguyen's user avatar
-5 votes
1 answer
91 views

How to convert from USDT (Tether) to USDC? [closed]

I've USDT (Tether) on gate.io (which support SOL or other Solana tokens), but they don't support USDC. In this case, what's the easiest way to convert/swap USDT to Solana's USDC? Is it possible to ...
kenorb's user avatar
  • 529