Questions tagged [solana-program]

The tag has no usage guidance.

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

Error: failed to get recent blockhash: FetchError: request to https://api.devnet.solana.com/ failed, reason: connect ETIMEDOUT 31.13.69.169:443

when I run the template code from solana-movie-client, I've got the error. MacOs Node v16.20.2 Npm 8.19.4
Kyrie lee's user avatar
-1 votes
0 answers
7 views

Selling Wrapped Solana

I have about 20$ worth of wrapped solana im trying to get rid of, im new to this crypto stuff, so what would be the best way to offload it?
Jerry Horn's user avatar
-1 votes
0 answers
10 views

Looking to add taxes to our existing community takeover token

I am a mod with $CBDC a community takeover token. We currently have majority of our transactions pooled with Raydium and they did mention it is possible to create a new pool to implement taxes. If ...
Crypto Savior's user avatar
0 votes
1 answer
19 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
1 vote
1 answer
30 views

How to fetch constants from a program?

So to fetch the current state of given account I'd do: let acc = await program.account.<ACCOUNT_TYPE>.fetch(<ADDRESS>); Programs can have hardcoded constants (which can be changed upon ...
mega_creamery's user avatar
0 votes
0 answers
37 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
0 votes
0 answers
13 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
  • 384
0 votes
0 answers
10 views

Cannot compile `solana-program` crate with new `sqlx` versions

For some reason when trying to compile a project having both sqlx and solana-program I get an error on package version mismatches, which is strange, because those should come from different crates and ...
RowanStone's user avatar
0 votes
0 answers
15 views

Hot to read Compressed NFT (bubblegum) on-chain

I need to read Compressed NFT (bubblegum) to check NFT owner on-chain. Do I need to get leaf owner from merkle tree? Can you show me how to do in rust program?
Peter Ferriman's user avatar
1 vote
0 answers
15 views

Where can I find the most popular Solana programs?

I am doing a small research on blockchains and I want to analyze the most popular Solana programs (ideally, most popular entry points). Where can I find addresses so that I can download the bytecode? ...
George M's user avatar
0 votes
1 answer
29 views

Metaplex - Attempt to debit an account but found no record of a prior credit

I'm really strugling to much on this one as I don't understand my error. My goal is to imput metadata on my token thx to Metaplex and here is my code : import {Collection, ...
TrashCola's user avatar
0 votes
1 answer
37 views

Transaction simulation error using phantom wallet

`Transaction error: Error: failed to send transaction: Transaction simulation failed: Error processing Instruction 0: custom program error: 0x92 at Connection.sendEncodedTransaction (connection.ts:...
user9345's user avatar
1 vote
1 answer
36 views

Error: unknown signer: 149J5z7P1MLvbUMepVf2DCxESoRPN5cQHFdA7dwCW121

async function createCounter() { const provider = getProvider(); if (!provider) { console.error('Provider is not available'); return; } if (!baseAccount || !...
user9345's user avatar
0 votes
0 answers
10 views

Deserialize Solana.Transaction Golang

I have a Golang Solana.Transaction object and want to obtain the raw/pre-compiled instruction details. How can I deserialize the Transaction.Message.Instruction?
Ron's user avatar
  • 1
0 votes
0 answers
6 views

Sol doesn't receiving from staking

I was deligating my Sol at stake. After ten minutes I canceled it and now I can't find my previously deligated Sol for couple of days. Could someone help me?? Transaction hash: ...
Yevhenii Khivrenko's user avatar
0 votes
0 answers
14 views

How to verify secp256k1 signature inside app/business instruction?

I only find one document: secp256k1_instruction. It create two instructions, first one is to call secp256k1_program to verify, second one check the result of first instruction. But this way isn't what ...
breeze wang's user avatar
-1 votes
0 answers
14 views

Why my jupiters that I bought on whalet market have disapered from my phantom wallet?

I had 360.75 jup on my wallet and now I have 0 but all the other coins are fine, does anyone knows what happened ?
Anthony Abriol's user avatar
0 votes
1 answer
19 views

How to charge transaction fee in my token insteed of SOL if any one tranfer my XYZ token they pay in XYZ instead SOL, Ithey don't need to hold SOL

I'm seeking for help any body can help regarding spl, token, I'm working on app it has in app wallet, if some did dum task I'll provide my token as mining reward, so what I need that, when they ...
Crypto Centric's user avatar
0 votes
1 answer
102 views

the solana program reverted with the following error -- this account may not be used to pay transction fees l [closed]

tudo que eu vou fazer na solana acontece isso e eu tenho muita taxa me ajudem
user9305's user avatar
0 votes
1 answer
39 views

How to let users to create liquid staking pools

I'm exploring the methods to create staking pool on Solana, where they take SOL and and get the reward token, and I'm a bit overwhelming and confused due to difference between EVM and Solana. Assuming ...
cablespecific's user avatar
0 votes
1 answer
34 views

Unable to create a PDA TokenAccount using anchor constraints

I am trying to create a PDA TokenAccount and transfer an NFT from the users (signer) account to the created PDA. For some reason the PDA is not being created. After the transfer when i try to read the ...
Faheel Mohammad's user avatar
0 votes
0 answers
24 views

Can't get instruction to buy now MagicEden API

I don't understand what I'm doing wrong. Trying for a long time on different nfts and still no success, always gets err: 'invalid collection'. But if I'm correct according to official docs it's almost ...
JhonnySl's user avatar
0 votes
0 answers
33 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
0 votes
0 answers
60 views

cargo build-bpf package error: `ahash v0.8.8` cannot be built because it requires rustc 1.72.0 or newer

I'm using a simple hello world solana program from https://moralis.io/how-to-write-a-solana-smart-contract src/lib.rs use solana_program::{ account_info::AccountInfo, entrypoint, ...
A. K.'s user avatar
  • 131
0 votes
0 answers
19 views

quoteResponse Error: Query parameter inputMint cannot be parsed: WrongSize

`const quoteResponse = await ( await fetch('https://quote-api.jup.ag/v6/quote?inputMint=So11111111111111111111111111111111111111112 &outputMint=EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v &...
Anh Tuấn Nguyễn's user avatar
0 votes
2 answers
17 views

How can I make `msg!` print to stdout when run off-chain?

I have code that's used both in my program and off-chain. In the code, I use msg!. If that msg! line is run off-chain, I get this error: Invoke context not set! What do I need to do to make msg! ...
user9125's user avatar
0 votes
1 answer
29 views

How to Process and Display Solana Transactions Like Wallets Do?

I'm working on a project in Node.js executed within a browser, where I'm attempting to process transactions received from various applications and display what they initiate, similar to how wallets ...
scal's user avatar
  • 1
0 votes
0 answers
13 views

in swap-instruction how to pass priority fee in jupiter?

in swap-instruction how to pass priority fee in jupiter ? Though i pass it doesnt work, note it works fine for SWAP but not SWAP-INSTRUCTION seems like an issue with the package. The tx goes through ...
sailesh ranka's user avatar
1 vote
0 answers
36 views

New attack method spreading on #Solana can i get help ? solana! [closed]

my address get owner change or something call fee payer bcs the address this naver happend to me i am useing solana +2 year here detail how my address changed owner and is there anything can i do to ...
Mohe Kahlane's user avatar
1 vote
1 answer
78 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
2 votes
1 answer
79 views

ERROR WHEN SENDING A TRANSACTION

I have builded and deployed a Rust Solana Smart Contract using Anchor to devnet successfully. I have this initMaster function on the Smart Conract: pub fn init_master(_ctx: Context<InitMaster>) -...
Anonymous Billionaires's user avatar
3 votes
1 answer
103 views

Can I regain signing authority of a wallet that was drained? Still have Private Key & Passphrase

After a wallet drain, the hacker was able to change the signing authority on my wallet. I still have the private key and passphrase. I can still import the wallet, but I can no longer sign any ...
Zack's user avatar
  • 31
0 votes
2 answers
50 views

What is the difference between ethereum smart contracts and solana programs?

I have started learning Solana and discovered that solana program is different from ethereum smart contract.
Dream Ninja's user avatar
1 vote
1 answer
22 views

Does a PDA need to sign this instruction handler?

I am trying to learn Anchor with this tutorial https://www.soldev.app/course/intro-to-anchor-frontend, currently reading about IDL and I have some questions regarding how some accounts are declared as ...
Anh Dũng Lê's user avatar
1 vote
1 answer
48 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
  • 384
0 votes
1 answer
47 views

What is the meaning of "custom program error: 0x1771" erro?

what is the meaning of custom program error: 0x1771 error?
blackhorse's user avatar
1 vote
1 answer
37 views

how to get transaction status? [duplicate]

I didn't find the answer in old posts. so I decided to ask again. So. how to get transaction status. having her signature? I tried this. but I always got null or error // not working const ...
slntrx's user avatar
  • 97
0 votes
1 answer
17 views

solana$ ./cargo test => "error: test failed, to rerun pass `-p solana-cli --test program`" : arguments passed solve nothing

I have a problem when testing the solana chain. I successfully built the solana repo, but after if i do a ./cargo test, i fall on this error: error: test failed, to rerun pass `-p solana-cli --test ...
DavisX's user avatar
  • 3
0 votes
2 answers
24 views

Solana Close program

I wan to close a solana program. I have to check what public key is used to close the program, how can I do that. I have multiple file wallet private keys but i do not know which belongs to it. Is ...
Akash's user avatar
  • 1
0 votes
1 answer
32 views

How to transfer SPL-tokens using Rust

I want to add to my smart-contract tranfer SPL-tokens. How i can do that? If I have ATA, receiverATA, mint, amount, decimals. use solana_program::{ account_info::{next_account_info, AccountInfo}, ...
Adrew Token's user avatar
3 votes
2 answers
81 views

Collaboration when developing a Solana program

What is the most seamless way of collaborating with other protocol devs on the same program? Are there any best practices for handling Anchor params like file-paths, symlink and better keypair ...
Burger Bob's user avatar
  • 1,256
0 votes
1 answer
38 views

Solana Transactions using Solders object has no attribute 'recent_blockhash'

below is the python code i wrote to try to engage the logs of a deployed program... for the life of me i dont know why i keep getting An error occurred: 'solders.transaction.Transaction' object has no ...
Dino Anastos's user avatar
1 vote
1 answer
168 views

anchor-error: How to fix the error : "package `toml_edit v0.21.1` cannot be built because it requires rustc 1.69 or newer" on Anchor

While building anchor project, I faced the follow error: "error: package `toml_edit v0.21.1` cannot be built because it requires rustc 1.69 or newer, while the currently active rustc version is 1....
cocoa's user avatar
  • 11
2 votes
1 answer
28 views

Cost of logging vs storing data in Solana programs?

The Way Ethereum stores data through Events I want to do the same on Solana but not sure How do the compare the cost of storing it in logs or in Solana programs? Are there any other cheaper ways to ...
Ajay Yadav's user avatar
0 votes
1 answer
60 views

How to transfer "frozen" NFT on another wallet using Phantom?

I can't send NFTs that have state - frozen. I get an error that the account is frozen or a signature error. How do I do it? I read that I should try to send them through Metaplex somehow. But I have ...
Adrew Token's user avatar
2 votes
2 answers
206 views

Attempt to debit an account but found no record of a prior credit.How to solve?

this is my error here is my config The error occurs on this line: const { tokenAMintAddress, tokenBMintAddress } = await createMintPair(provider). I run it through anchor test ---skip-deploy(anchor ...
Roomka's user avatar
  • 21
2 votes
1 answer
188 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
  • 384
0 votes
0 answers
68 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
30 views

How to transfer frozen NFT's

I've got a problem. I can't send NFT in my JS code, or rather include in transaction token NFT account which has state - frozen. How can I unfreeze it? I've seen an example that I need to use Metaplex....
Adrew Token's user avatar
0 votes
0 answers
24 views

Problem with account data serialization and deserializatin

I'm working on a Solana program and encountered an issue related to state management with Program Derived Accounts (PDAs). I successfully created a state for my Solana program and saved it to a PDA (...
Nikita's user avatar
  • 1

1
2 3 4 5
19