Skip to main content

New answers tagged

0 votes

Troubleshooting Tapswap task approval

Try updating your telegram. I have same issue too but after updating the telegram the problem was solved.
ESAN ADENIYI's user avatar
0 votes

I want to add liquidity into Raydium programmatically

This is good practice. https://github.com/raydium-io/amm_anchor/blob/master/tests/amm-proxy/programs/amm-proxy/src/instructions/deposit.rs I've tested and working correctly!
Alan Daniela's user avatar
0 votes

Troubleshooting Tapswap task approval

Any updates regarding this issue? I also encountered the same problem. I can't add comments yet so I just leave this here as answer. Please let me know.
Killua Zoldyck's user avatar
0 votes

Wallet connection problem

Am having sane issues refuses to connect to tap swap
user15884's user avatar
0 votes

Wallet connection problem

Am having issues with my solana wallet not connecting with tapswap I also tried using phantom it's still the same.. What should I do
Asiya Hassan Mustapha's user avatar
1 vote

Avoid unnecessary account generation

I think there are multiple approaches how to manage your code. I can put some that're coming to my mind. Having two accounts and using the Anchor init_if_needed (https://www.anchor-lang.com/docs/...
chalda's user avatar
  • 752
0 votes

Wallet connection problem

I am experiencing same thing I cannot get help anywhere, what should I do about it, please
Micheal ruth's user avatar
-1 votes

Troubleshooting Tapswap task approval

I have same issue, my join telegram chat refuse to check ☑
Rhema Emmanuel's user avatar
0 votes

Add Public Name In Wallet Address

That is done by Solscan in their backend. All major exchanges, wallets, and other important accounts are already labelled by Solscan developers, same goes for most other explorers like Solana.fm etc. ...
Syed Aabis Akhtar's user avatar
1 vote

Program log: AnchorError occurred. Error Code: InstructionFallbackNotFound. Error Number: 101. Error Message: Fallback functions are not supported

The error InstructionFallbackNotFound is usually thrown by Anchor when the on-chain program cannot find the correct function to be called on the on-chain program. For Anchor the entrypoint method is ...
chalda's user avatar
  • 752
0 votes

RangeError: encoding overruns Uint8Array

Perhaps you are exceeding the transaction size limit which is 1232 bytes for the data
Jimii's user avatar
  • 1,934
0 votes

My Tapswap cant connect to Solana wallet is not working like if you tap on go is not even redirect you to Solana wallet any help please

I want by God to connect the wallet connect phantom
Isah Adam's user avatar
0 votes

My Tapswap cant connect to Solana wallet is not working like if you tap on go is not even redirect you to Solana wallet any help please

Na so my on showing me how are go do now abeg help me I no get answer for dis Cushing wow one help force me dan my brother
Nura Yunusa's user avatar
0 votes

My Tapswap cant connect to Solana wallet is not working like if you tap on go is not even redirect you to Solana wallet any help please

I am a business person in my area who can help me for my business
Nura Yunusa's user avatar
0 votes

Check if coin is registrered on Raydium

To efficiently check if a Solana coin is listed on a DEX using Python, you can indeed verify if Raydium has created a token pair for the token. This can be done by querying Raydium's on-chain data or ...
Nerevaine's user avatar
0 votes

My Tapswap cant connect to Solana wallet is not working like if you tap on go is not even redirect you to Solana wallet any help please

I'm facing same issue, I would appreciate an answer
Amaka's user avatar
  • 1
0 votes

My Tapswap cant connect to Solana wallet is not working like if you tap on go is not even redirect you to Solana wallet any help please

My Tapswap is not connecting to Solana wallet is not working like if you tap on go is not even redirect you to Solana wallet any help please.
Marvelous Peter's user avatar
1 vote

failed: An account required by the instruction is missing

Your program is expecting the system program, but you're instead providing the program to itself by passing programId. Try creating your instruction instead like this: const instruction = new ...
Jon C's user avatar
  • 14.1k
2 votes

Error:Deploying program failed transaction simulation failed: Error processing Instruction 0: account data too small for instruction [3 log messages]

You will need to extend your program size, if you made changes to it. This is possible from the CLI version 1.18 > To fix this run solana program extend PROGRAM_ADDRESS_HERE 20000 -u d -k ~/....
Jimii's user avatar
  • 1,934
0 votes

Swapping on Raydium

From the code provided, and Jon's comments, it's clear that the transaction is not landing. There's a few courses of action here: If you aren't already, use a custom RPC. Helius and Quicknode should ...
Joey Meere's user avatar
1 vote

Is there any way to check transaction status of spl transfer using signature hash

You can use the getSignatureStatuses RPC method to check the status of transaction. You can ping it and if it doesnt return anything by the time the blockhash expires your transaction probably didnt ...
sashavsthewrld's user avatar
1 vote
Accepted

what's program data in the `program logs` section of explorers

Any output prefixed with Program Data: is using the sol_log_data syscall at https://github.com/anza-xyz/agave/blob/da029625d180dd1d396d26b74a5c281b7786e8c9/sdk/program/src/log.rs#L116 You can trace ...
Jon C's user avatar
  • 14.1k
0 votes

failed to upgrade solana program

Sometime I forgot check my balance address authority, so I don't have enough SOL balance to pay fee. LOL
RichardPhan's user avatar
1 vote

Guide for Beginners: Writing a Solana Swap Program

You need to research about how trading exchange works first, after that learn liquidity, trading pair, slippage, K constant,... that's my explore
RichardPhan's user avatar
0 votes

failed to upgrade solana program

This could help someone like me. The issue in my case was I'm using the target/deploy/program-keypair.json key-pair as the buffer account which is obviously wrong , instead you'll need to write a new ...
Suliman Mukhtar's user avatar
1 vote

how to decode data instructions with javascript

more easier solution to import the borsh decode from [email protected] (guess has similar solution for other anchor version) import { BorshInstructionCoder } from "@coral-xyz/anchor"; let coder = ...
Wei Tang's user avatar
0 votes

Error Deploying Solana Nodes on OVH Machines: QUIC Connection Timed Out

If your nodes are unstaked or have low stake, they will not be allocated many QUIC connections by the rest of the cluster, which will mean timeouts when trying to connect to other nodes. You can ...
Jon C's user avatar
  • 14.1k
0 votes

Is there a way to get program id of CPI call?

If you are using Anchor, you can get your program ID from the accounts context using ctx.program_id For native programs you have to pass in the program ID, which you can in your process_instruction ...
Jimii's user avatar
  • 1,934
1 vote
Accepted

How do you pay fee with solana adapter for backend transcation of sol

It doesn't appear that you're sending the transaction, just signing it. You can use sendTransaction(transaction, connection) from the useWallet() hook in wallet adapter to handle the flow of signing ...
Joey Meere's user avatar
0 votes

How to setup local solana validator RPC for a team about 5 PC

Certainly! solana-test-validator has the --bind-address, --rpc-port, --gossip-host, and --gossip-port flags, which you can specify as needed for your setup. For example, if you set it up on a public ...
Jon C's user avatar
  • 14.1k
1 vote

MODULE NOT FOUND

To resolve the error you're encountering, ensure you are in the project root directory and run the following command to install the required package: : npm i @solana-developers/helpers This should ...
Shahid H.'s user avatar
0 votes

failed: An account required by the instruction is missing

As the error suggests, you are probably missing an account. Here is the GH repo for the movie program tutorial - https://github.com/Unboxed-Software/solana-movie-program/tree/main If you are stuck on ...
Jimii's user avatar
  • 1,934
1 vote

Mainnet contract deployment hangs

The above answer is right. Let me share an example. This is the best cmd I've seen for deploying contracts on mainnet. solana program deploy --program-id /home/odmin/projects/solana-betting-contract/...
Talented blockchain developer's user avatar
1 vote
Accepted

Error running anchor test: Unable to get latest blockhash

You might be getting rate-limited. Try requesting the airdrop using the airdrop instead, of each time before the tests run. Other possible things to try. Check your local solana config and confirm ...
Jimii's user avatar
  • 1,934
0 votes

Introduction to solana-program

There are various ways to get started and learn about Solana. I would recommend starting with tutorials getting start learn about blockchain fundamentals https://solana.com/learn/blockchain-basics ...
Jimii's user avatar
  • 1,934
0 votes

find pump.fun tokens lanched on radium

I think a good first step would be to find all tokens launched on pump fun. Like in solscan you can see all transactions here: https://solscan.io/account/6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P So ...
berlinguyinca's user avatar
0 votes

Error: memory allocation failed, out of memory [CPI vs invoke_signed]

Modifying the structure of the accounts can help. Wrapping some accounts in Box might resolve the issue by reducing the stack memory used to store the data. To modify the existing function to use Box, ...
RAprogramm's user avatar
0 votes

Anchor CI/CD: Issues with Program Upgrade and Keypair Management

Yes, you understand correctly that the problem is related to updating the program in the CI/CD pipeline. The main issue is that every time anchor build is run in the CI/CD pipeline, a new keypair is ...
RAprogramm's user avatar
0 votes

SplToken createMint Cannot read properties of undefined (reading 'createMint')

You need to add splToken to your project in order to use it. For example, you might need to add the package to your project: npm i @solana/spl-token` And then import it as needed: import * as ...
Jon C's user avatar
  • 14.1k
0 votes

Facing issue with account creation with bubblegum, Error: Transaction <some signature> failed ({"err":{"InstructionError":[0,{"Custom":1}]}})

Since this seems to just be calling the system program, and returning an error code of 1, https://github.com/anza-xyz/agave/blob/9a7bada2284e06e421db6186b6d9c715d9eb56cb/sdk/program/src/...
Jon C's user avatar
  • 14.1k
0 votes

What's the simplest way to implement a raffle on-chain?

ORAO has a very fast and cheap VRF available for Solana too. The SDK is on https://github.com/orao-network/solana-vrf and there is a nice Solana Program integration example in the form of an on-chain ...
oraodev's user avatar
1 vote
Accepted

Why do we close WSOL Token Program accounts?

It's really a question of user expectations. There's a fundamental inconsistency with how SOL is treated in wallets vs on-chain programs. In wallets, typically SOL is held directly in the user's ...
Jon C's user avatar
  • 14.1k
1 vote

Is there a new method for ctx.bumps.get in 0.30.0

To get the canonical bump of the treasury_account let treasury_account = &mut ctx.accounts.treasury_account; treasury_account.bump = ctx.bumps.treasury_account;
Jimii's user avatar
  • 1,934
1 vote
Accepted

Tx Reverting Even If Internal CPI Fails

Way back when, in 2020, it was possible to catch errors during CPI, which is why invoke_signed returns a Result type. Due to the cost of handling reverting changes to accounts during CPI, though, that ...
Jon C's user avatar
  • 14.1k
0 votes

Here i want to serialize and deserialize the Tree struct but the not able to do

The MerkleTree in your Tree struct also needs to implement the BorshSerialize and BorshDeserialize traits in order to work. You may need to create a new struct that can convert between the external ...
Jon C's user avatar
  • 14.1k
1 vote
Accepted

Comparing Performance: Python/JavaScript vs. Rust for Solana API Interaction

If you're interacting with RPC, the biggest performance bottleneck will be the networking aspect, waiting for the RPC node to return data, and the performance differences between languages will be ...
Jon C's user avatar
  • 14.1k
0 votes

SPL token transactions check

Hello could you please be more detailed on https://docs.solana.com/api/websocket#accountsubscribe - in the docs description i cant see how to achieve that when i listen to this websocket i can not ...
max's user avatar
  • 1
1 vote
Accepted

Extract IP address of a transaction

No, you cannot. IP address is not included in any transaction details. IP address can only be obtained via the client side, and programs cannot know where the client that initialized the transaction ...
Syed Aabis Akhtar's user avatar
0 votes

How to get the Circulating supply, lp supply and lp burned details of any token in solana web3 js and raydium sdk i am using typescript and javascript

You can get the current supply of a token using the getTokenSupply RPC endpoint: https://solana.com/docs/rpc/http/gettokensupply There's no difference between "circulating" and "non-...
Jon C's user avatar
  • 14.1k
0 votes

Can I read solana(lamport) balance changes from simulateTransaction result?

On its own, simulateTransaction doesn't give you changes to the accounts, just the new state of the accounts, so you'll need to fetch the accounts separately and compare the output.
Jon C's user avatar
  • 14.1k

Top 50 recent answers are included