Skip to main content

All Questions

Filter by
Sorted by
Tagged with
0 votes
1 answer
15 views

How can I know the mint address of NFT of candy machine?

I am preparing a project of NFT. I am going to give rewards to owner of my NFTs so I need to make smart contract for that. But my NFTs are in Candy Machine so it has not minted yet. How can I know the ...
John Smith's user avatar
1 vote
1 answer
31 views

anchor_lang::Owner` is not implemented for `anchor_spl::token_interface::Mint

use anchor_lang::prelude::*; use anchor_spl::token::Token; use anchor_spl::token_interface::Mint; declare_id!("FtUL5xL7oZasB5zaDUETbeHs9jcf9gopQD3Z1V92YyKv"); pub mod constants { pub ...
Karan Sacher's user avatar
2 votes
1 answer
48 views

Unable to deploy solana smart contract on mainnet

Deploying the solana smart contract on devnet works well, but if I try to deploy the smart contract on mainnet it doesnt work. I got this error so many times. I tried it with so many solana versions. ...
Hiroto Iwaki's user avatar
1 vote
2 answers
399 views

How would you go about cloning Pump.fun smart contracts?

I want to make a pump.fun clone, how would I go about rewriting the smart contracts that pump.fun uses, ie the token minting, bonding curve, adding and removing liquidity etc. How would I go about ...
Kelsey Wu's user avatar
0 votes
0 answers
11 views

What’s the best way to ensure player hand privacy in a Solana card game DApp?

I'm working on a Solana DApp for a card game where protecting player hand privacy is essential. I've come across Multi-Party Computation (MPC) and Zero-Knowledge Proofs (ZKP) as potential solutions. ...
Hatsuseno Arufa's user avatar
0 votes
1 answer
69 views

Make build fail due to typedef redefinition with different types

I was trying build this example https://github.com/solana-labs/solana-program-library/tree/master/examples/c I was trying build it using make and i am facing this error error: typedef redefinition ...
Saksham jain's user avatar
0 votes
2 answers
49 views

How to create a mapping on solana using PDA?

What's the solidity equivalent to implement a mapping(address => bool) in anchor for solana? I figured out the way to go is PDA, but I was only able to figure out how to generate a PDA using ...
Deepu Harry's user avatar
0 votes
0 answers
62 views

ambiguity inside solana's GetAccountInfo rpc

I'm confused while using rpc getAccountInfo because the value of the answer will always be null when the Solana balance is 0. This happens even when the address is new and the account has multiple ...
Andrea Hinata's user avatar
4 votes
1 answer
146 views

Handle big vector containing ton of structs

I'm looking for a way to handle a big struct. I want to understand how to create an account storing more than 10_000 structs inside is possible. Is there a simple way to do it? Or should I have to ...
GoT's user avatar
  • 97
0 votes
1 answer
96 views

How to create meme coin with some conditions on solana without cli

I want to create a meme coin on solana without cli and wanna use a smart contract to develop the meme coin and implement some conditions for example , no one can own more than 1% of the liquidity pool ...
Mohammad Abuzar's user avatar
1 vote
0 answers
137 views

anchor-spl v0.30.1 solana-spl 1.18.17 error[E0308]: mismatched types

I'm building solana smart contract with anchor. anchor version is 0.30.1 solana-cli version is 1.18.17 first time, I built and deploy smart contract without any issue. But after I add this two lines, ...
Rex Dev's user avatar
  • 11
1 vote
1 answer
103 views

solana contract rust error anchor build

use anchor_lang::prelude::*; use anchor_spl::token::{self, Mint, Token, TokenAccount, Transfer, MintTo}; declare_id!("GTPh1tdHiMWVj3yBj2S2ZZftuLPEWPyQZ6Cy7g5ibM5K"); #[program] pub mod puj { ...
proyectosdev0623 xxx's user avatar
0 votes
0 answers
96 views

I cant use my sol in my wallet

There’s a smart contract in the wallet to send any funds out of the wallet , I asked a different dev to do it for me because the wallet was compromised , what I can do boys? I cant send my sol it's ...
dad's user avatar
  • 1
2 votes
1 answer
42 views

|RUST| link Error:1169 Solana Transaction Contract

Here is my entire main.rs,, mod utils; use actix_cors::Cors; use actix_web::{web, App, HttpServer, Responder, HttpResponse, HttpRequest}; use serde::{Deserialize, Serialize}; use reqwest::Client; use ...
Keola's user avatar
  • 83
0 votes
1 answer
145 views

How to access SPL token data in our Solana smart contract

I have created SPL token. I want to access this token data in my rust smart contract so that I can get information about which user has how many tokens? How can I do that?
Ashish Kumar's user avatar
0 votes
1 answer
306 views

Solana Rust - Failed to serialize or deserialize account data: Unknown

I am creating simple contract for storing ipfs hashes (see in attachment). When trying to call instruction 1 (AddIpfsHash) from python via solana-py and solders I get following error: "...
Alena Martinková's user avatar