How to retreive all liquidity pool id for a given raydium program
i am trying to get all pool addresses for a given raydium program. I use solana/web3.js and raydium-io/raydium-sdk-v2. So i start with this:import { Connection} from '@solana/web3.js';import {...
View ArticleError creating program: TypeError: Expected Buffer
Page.tsx"use client";import { useEffect } from "react";import { WalletMultiButton } from "@solana/wallet-adapter-react-ui";import idl from '@/app/idl/idl.json';import { PublicKey } from...
View ArticleWhy is my PDA derivation mismatching between client-side and runtime on Solana?
I'm developing a Solana dApp and encountering an issue where the Program Derived Address (PDA) computed in my JavaScript client does not match the PDA derived during program execution in Rust,...
View ArticleProblem with testing pda contract
ive tried everything and the code that im trying to deploy for the test is not working...This is the lib.rs:#![allow(clippy::result_large_err)]use...
View ArticleNeed help in importing wallets to my phone
I have 3 wallets that are currently on my browser(2 old 1 new). I imported them on my phone but the other wallet (new one) shows as "you are watching this account" which means I can not use it. Any...
View ArticleDuring the swap, a sufficient number of tokens did not arrive
Сan anyone explain to me where my tokens...
View Articlenewly created SPL-tokens are not displaying in phantom
I created some SPL-tokens via spl-token create-token ..., and applied some metadata (name, symbol, description, image) via metaboss create metadata .... They appear correctly on solscan, but are not...
View ArticleTrying to send a Transaction to the Star Atlas marketplace using...
I've been trying for a week to pass a sell order to the Star Atlas marketplace using their Factory package, and it won't seem to work using the snippet provided by the APIconst orderTx = await...
View ArticleSolana Web3 Instructions Suddenly Not Working (Next.JS)
I've got a Next.js application making a few transactions calls using '@solana/wallet-adapter-react' and @solana/spl-tokenThe application has been working fine locally until with the transactions...
View ArticleToken 2022 rust anchor ( Instruction 0: custom program error: 0x4 )
newbie here !I'm trying to mint some token 2022 from a rust program. i followed every single instruction i found about turning a classic token 2017 to a 2022 compatible, like changin the default...
View ArticleInfo regarding LP Token
Is there a way to determine whether the LP token has been burned or not?Also, how can I retrieve the LP token associated with a given token address?API or any scriptI want to provide the LP token...
View Article'Octal escape sequences are not allowed in strict mode' error when generating...
I started Solana and web 3 dev recentlyHave been having this issue for like 3 days, tried checking online for solutions and nothing.Please help anyoneCODEimport { Keypair } from "@solana/web3.js";const...
View ArticleError Code: ConstraintSeeds. Error Number: 2006. Error Message: A seeds...
I have been getting a seed constraint error when calling the destake function. The stake function works fine. There is a modification for the destake function, it can only be called by the admin, so in...
View ArticleCan I change the null MINT authority of my spl-token if I am the...
Can I change the "null" MINT authority of my spl-token if I am the updateAuthority of the token?Or just can update the metadata?
View ArticleHow to retrieve the price of SOL to USDC manually?
def SOL_USDC(): client = Client("https://api.mainnet-beta.solana.com") base = "6P4tvbzRY6Bh3MiWDHuLqyHywovsRwRpfskPvyeSoHsz" quote = "6mK4Pxs6GhwnessH7CvPivqDYauiHZmAdbEFDpXFk9zt" base_pubkey =...
View ArticleCoin disappeared from Phantom wallet
A coin straight up disappeared from my phantom wallet, i still see it in solscan but i cant see it in the phantom wallet.I tried checking if it was disabled in the bottom but its not even there, I keep...
View ArticlePhantom wallet gone ;(
Not sure if I got hacked but I but money on pudgy penguins last night, about 15 mins after I posted this its all gone just looking for a answer.
View ArticleCoins purchased from Phantom Wallet disappeared
I swapped pudgy penguins coins this morning.A few hours later, the coins disappeared, and the balance decreased by the amount of coins that had disappeared. How can I solve this?24/12/09 14:47Solved....
View ArticleLost SOL from failed transactions
I lost funds from a failed transaction. There were also some messed up fees on top of this. I set priority fees to .0001 SOL and got charged with around $2. I've lost around $30 from this. How can I...
View ArticleWhere are my ETH?
I recently tried to buy ETH on the Phantom wallet.Unfortunately, even though the purchase looked good, I didn't receive any ETH. Can someone help me with what went wrong here? How can I sell the...
View Article