Skip to main content
Filter by
Sorted by
Tagged with
-2 votes
1 answer
87 views

Problem Description I'm implementing wallet authentication in a Next.js/Solana application using direct Phantom wallet integration. The wallet connects successfully, but signMessage() consistently ...
kazyon's user avatar
  • 1
0 votes
0 answers
48 views

Here's my current code: const {Connection, PublicKey} = require("@solana/web3.js"); const bs58 = require('bs58'); // Program IDs for monitoring logs const TOKEN_PROGRAM_ID = new PublicKey('...
Shariq's user avatar
  • 1
0 votes
1 answer
118 views

I'm building a Solana program in Rust using Anchor framework. I'm facing an issue with PDA (Program Derived Address) derivation when testing my program using JavaScript/TypeScript. The PDA address ...
Henter Hungwa's user avatar
-1 votes
1 answer
158 views

While testing using solana-program-test . I tried to make a transacton to craete a lookup table. However , I encountered the below error and after some search I found it is because the address lookup ...
Neo's user avatar
  • 875
1 vote
0 answers
69 views

I'm trying to transfer USDC on Solana using @solana/spl-token in a React app with @solana/wallet-adapter-react, but I'm getting this error: Uncaught TypeError: Cannot read properties of undefined (...
Anurag's user avatar
  • 85
5 votes
2 answers
3k views

I'm trying to make a smart contract with Solana and build it using Anchor on WSL, but everytime it always gives a target_os warning like this: warning: unexpected cfg condition value: solana --> ...
noxx's user avatar
  • 69
1 vote
0 answers
421 views

I have been attempting to send transactions using the Standard AMM (CP-Swap, New), particularly for tokens that do not utilize the OpenBook program ID. However, I encounter issues during signing and ...
debugtitan 's user avatar
-3 votes
1 answer
180 views

enter image description here I want to implement the watchRaydiumV4Initialize2Logs method, so I need to find something similar to connection.onLogs in Rust, but the RpcClient struct in solana-client ...
雷一龙's user avatar
0 votes
0 answers
5k views

After following these steps, I receive the error "Error: "Could not find token account ___" when trying to mint or transfer tokens to a recipient. Creating keypairs: solana-keygen new ...
Sebastian Scholl's user avatar
0 votes
1 answer
239 views

enter image description hereHi im recieving the error above in the title while running solana-tokens distribute-tokens on devnet. im following the instructions correctly. Below im adding an image of ...
Matija Leban's user avatar
0 votes
1 answer
962 views

I have been trying to create a program in python to analyze my Pnl of trades subcategorized by wallets that I am copy trading on Raydium. I have tried out two code bases so far and the first returns 0 ...
Andrew McCann's user avatar
1 vote
1 answer
920 views

I am a beginner in Solana development. I just have a question regarding instruction and inner instruction. https://solscan.io/tx/...
learn-solana's user avatar
0 votes
2 answers
1k views

I always close and redeploy but it's annoying. So I need to upgrade instead. solana program upgrade target/deploy/program-keypair.json new_program.json owner.json -u "https://mainnet.helius-rpc....
Suliman Mukhtar's user avatar
0 votes
1 answer
285 views

I have a TypeScript script that was initially created to run in the Solana Playground, and I would like to execute it locally on my pc, since playground only allows devnet. I only want to update the ...
user23543214's user avatar
1 vote
1 answer
944 views

I am trying to develop a program on the Solana network, I have had experiences for EVM before but Solana looks very different. If we give an example on EVM, it is enough to authorize spending with &...
BeycanDeveloper's user avatar
0 votes
1 answer
308 views

When broadcastring a token-2022 program transaction using the transferCheckedWithFee instruction, solana documentation suggest to compute token fee using this formula: const fee = (amountToSend * ...
Rocco Musolino's user avatar
-1 votes
1 answer
1k views

How do you create an associated token account in Solana for a token-2022? function getAssociatedTokenAddressSync( mint: PublicKey, owner: PublicKey, allowOwnerOffCurve = false, ...
Rocco Musolino's user avatar
2 votes
0 answers
3k views

I am trying write a simple program to send some SOL from one wallet to another. I keep running into TransactionExpiredBlockheightExceededError on sendAndConfirmTransaction. Interestingly, this works ...
user130198's user avatar
0 votes
1 answer
1k views

I am trying to create a token using solana token program 2022 extension createInitializeTransferFeeConfigInstruction. How can I add token metadata (name, symbol ) to it? Here is my current code. // ...
user130198's user avatar
1 vote
3 answers
1k views

Getting the following error every time script is run: TransactionExpiredBlockheightExceededError: Signature [SIGNATURE] has expired: block height exceeded. Script: import { percentAmount, ...
Erik Johnson's user avatar
0 votes
0 answers
584 views

I've tried to do it using a .csv but couldn't get it to work, I've only used cli commands. I'm a beginner in coding (been doing it for roughly 2 months now). So if the only way is through code, please ...
7captain's user avatar
1 vote
1 answer
3k views

I am trying to write a script in Python to track events from the solana blockchain. I read that solana public key is now used as solders pubkey. this is my code: from solana.rpc.async_api import ...
Clickbait Fish's user avatar
7 votes
1 answer
753 views

When we are doing program deployment on Solana using Anchor cli, it will read the key pair generated at target/deploy/<program>-keypair.json and use it to sign the instruction for initial ...
johnhckuo's user avatar
  • 375
0 votes
1 answer
571 views

I'm calling a function of anchor_movie_review_program program on devnet CLA5Pk8tpcsA3RPmCYPaRNBdU6xBknRnqshsT1bKT7if. I cloned the following GitHub https://github.com/Unboxed-Software/anchor-movie-...
kc.sol's user avatar
  • 1
1 vote
1 answer
138 views

I am using Sol Cerberus to manage the access to my Solana program, but I don't know how can I call my instruction in javascript to test the access using an NFT collection. For instance this is my ...
Peter Schwarz's user avatar
0 votes
0 answers
661 views

I'm new in Solana and tries to reassign account's owner. I do next: Deploy program Create account with owner = program deployed id Call program, which change owner But on step 3 I got error: ...
Nikita Duginets's user avatar
0 votes
1 answer
337 views

Here's my code i'm trying to mint spl token using spl js library: (async () => { const connection = new web3.Connection(web3.clusterApiUrl("devnet")); let secretKey = Uint8Array.from(...
S M's user avatar
  • 5
0 votes
0 answers
237 views

I'm trying to save AccountInfo in a struct that #[derive(BorshSerialize, BorshDeserialize, Clone, Debug)] to send SOL to this account. AccountInfo is a struct in library that don't impl serialize ...
marethyu's user avatar
  • 215
1 vote
1 answer
2k views

I want to create an associated token address in Solana from a connected wallet address. This is my code currently: import { useWallet, useConnection } from "@solana/wallet-adapter-react"; ....
Tahlil's user avatar
  • 1,081
0 votes
2 answers
5k views

So I am working on a script that transfers tokens (custom-made tokens not owned by me) from my wallet to another in python using solana.py. How do I go about doing that? (By tokens I mean, tokens like ...
Rudra Lakhani's user avatar
0 votes
1 answer
702 views

I'm writing a Solana program which uses PDAs to store auction positions and I have a question about passing the accounts from client when calling instructions. My positions use a numeric counter as a ...
zdev's user avatar
  • 105
2 votes
0 answers
1k views

I have a Solana account A which is a fee payer, and another Solana account B with some SOL balance, I want to close and transfer all account B's SOL balance to another account C. How do I do that? I ...
pengdu's user avatar
  • 1,349
-1 votes
1 answer
733 views

In my program I'm trying to init PDA Token Accounts so that my program can store tokens of specified mints like this: #[derive(Accounts)] pub struct StartAuction<'info> { #[account(init, ...
zdev's user avatar
  • 105
0 votes
0 answers
999 views

I am trying to create a swap pool and interact with existing pools to perform a swap by interacting with solana swap program but getting this error. "Program log: panicked at 'index out of bounds:...
Sumi's user avatar
  • 1
1 vote
2 answers
3k views

Using Solana Web3 TS library how can we wrap and unwrap SOL? Here on this link it is possible to see what the SPL Token CLI program does for wrapping and unwrapping SOL, but the conversion of those ...
GarouDan's user avatar
  • 3,863
0 votes
1 answer
1k views

I have been spending hours trying to understand why my ATA address owner suddenly changed to the token program instead of my account address. I am using PDA to transfer the token from the PDA ATA ...
Syahmi Shaarani's user avatar
1 vote
1 answer
884 views

I'm trying to send a transaction with a memo program inside it. The problem appears on solana cli and web3 too. This is the command: solana transfer --from ./.cache/solana.json RECIVER_PUBLIC_KEY 0....
Sbardi fx's user avatar
0 votes
1 answer
1k views

I'm trying to get the balance of a random USDT account in Solana. I've tried several public gateways and hasn't successed. Here's one example: curl --request POST \ --url https://solana-mainnet.g....
tutushka's user avatar
0 votes
0 answers
335 views

I am trying to transfer the token to another account using the Solana rust program. I am currently using the Anchor framework. I have created the program for it. Now, I am trying to execute the test ...
Chris Dean's user avatar
0 votes
2 answers
2k views

I'm trying to create an Mint having my program as authority and I'm struggling to get my CPI calls right. Here is a toy example of what I have so far: use anchor_lang::prelude::*; use anchor_spl::...
user1735752's user avatar
0 votes
1 answer
92 views

Friends, I want to stake my own nft project. I wonder if there is a tool like candy machine for this? How can I make a staking program?
Salih Baran's user avatar
2 votes
0 answers
389 views

I'm trying to deploy non-transferable token on solana. As explained in the document, I used token-program-2022 example with non-transferable extension. import { clusterApiUrl, ...
user2108's user avatar
0 votes
0 answers
795 views

I am getting the error : [SyntaxError: No identifiers allowed directly after numeric literal] Actually I am using @solana/web3.js and @solana/spl-token libraries. /* param is {"amount": &...
AlphaParticle's user avatar
0 votes
1 answer
1k views

Folks, I'm starting with Solana and it's been rough to learn. Despite the poor error messages and the learning curve of Rust, I'm making my way through it. I'm trying to develop a new token that will ...
Dinaiscoding's user avatar
  • 1,418
0 votes
1 answer
2k views

I am trying create an NFT mint, I know how to do it from CLI, but I need to do it from JS, I am looking at the code of @solana/spl-token package, but cannot find API analogous to spl-token authorize &...
Andrii Kapinos's user avatar
0 votes
0 answers
385 views

I am trying to implement Program Flow of a bet game in solana with following features: A Player transfers some amount to house wallet (deposit_wallet) and plays a game System records the win loss net ...
Nash Hikari's user avatar
0 votes
2 answers
2k views

I have a solana program that will transfer some amount. After agreeing to the amount to transfer, the transaction will take place a little later. Few hours to few days. Is there a way my solana smart ...
Subash Chaturanga's user avatar
0 votes
1 answer
463 views

Suppose I have a simple web UI to connect wallet and click a button to invoke a solana program transaction. Since the call is happening actually on user’s host machine/the browser, it's possible ...
Subash Chaturanga's user avatar
0 votes
1 answer
561 views

Hello I have started the Testnet validator, and it's not validating at all, I have changed the Validator identity and Vote account identityy it's still showing the same info. There is no issue with ...
anish's user avatar
  • 7,498
0 votes
2 answers
845 views

I've been trying to figure out if it's at all possible to create a smart contract in Solana that will run a long-ish calculation (e.g. many sha256 iterations, or a KDF), maybe in parts, even though ...
Reed's user avatar
  • 529