Questions tagged [solana-program]
The solana-program tag has no usage guidance.
673
questions
0
votes
1
answer
17
views
How to check owner of cNFT given asset id?
I am trying to write a function in Anchor (Rust) where I need to check that the owner of the cNFT asset id matches the signer id. I have been looking at the mpl-bubblegum documentation but didn't find ...
0
votes
1
answer
7
views
Rust build fails - cannot find libssl.so
The build fails due to error
/home/dev/.rustup/toolchains/bpf/bin/cargo: error while loading shared libraries: libssl.so.1.1: cannot open shared object file: No such file or directory
OpenSSL and ...
0
votes
0
answers
8
views
Solana cli cannot be installed normally, the connection to the network timed out during installation
Solana cli cannot be installed normally, the connection to the network timed out during installation,Is it true that the service in China is not supported?And my code is wrong, saying I didn't enter ...
0
votes
1
answer
12
views
solana web3.js sendTransaction Program failed: invalid program argument
I built a demo project using solang solidity, and successfully deployed the contract to solana devnet
This is Program ID: 6qv4P3v732FZen4Yq6tAgnpTraV12jkc5sAHpXoL7DtX
When I use @solana/web3.js to ...
1
vote
1
answer
16
views
How to get all controlled programs or tokens by an specified account?
Can I see by API or something else all the programs or tokens when an specified account has authority to mint or update?
0
votes
0
answers
10
views
error[E0433]: failed to resolve: could not find `unix` in `os` --> geyser-plugin-manager\src\geyser_plugin_manager.rs:395:43
I am trying to set up Solana to Windows 10, when I run the "cargo test" command after build, I get an error message like:
error[E0433]: failed to resolve: could not find `unix` in `os`
--&...
0
votes
0
answers
24
views
Status: Error processing Instruction 0: invalid account data for instruction
I'm setting up an environment to execute transaction using the https://github.com/neodyme-labs/solana-poc-framework
I can read all the state of account using env.get_account() but when I try to ...
0
votes
2
answers
26
views
Does program keypair has any other usage besides program deployment?
When we are doing program deployment on Solana using Anchor, it will read the key pair generated at target/deploy/<program>-keypair.json and use it to sign the instruction for initial deployment....
0
votes
1
answer
37
views
Program log: Error: Account is frozen
I previously used a simple NFT on the Metaplex auction house to list, sell, and execute sales. However, now when I try to list my programmable NFT (PNFT), it shows an error: "Program log: Error: ...
0
votes
0
answers
14
views
no method named `try_to_vec` found for reference `&UpdateArgs` in the current scope
Here is my idl:
use solana_idlgen::idlgen;
idlgen!({
"version": "0.1.0",
"name": "wba_prereq",
"instructions": [
{
&...
0
votes
1
answer
27
views
How to Transfer Sol from External Wallet to Connected Wallet in React
I hope you're doing well. I'm currently working on a React app where users can withdraw rewards to their connected wallet. I want to ensure the security of the process and avoid exposing the private ...
1
vote
1
answer
27
views
not found in solana validators
I've been running a Solana validator, and I've noticed that my validator is not showing up when I run the 'solana validators' command. However, the 'solana gossip' command shows my validator as active....
2
votes
2
answers
48
views
The RPC call or parameters have been disabled
I'm facing an error while fetching the details of all NFTs using a wallet address.
It's working fine on the devnet, but when I switch to the mainnet, it shows an issue. Could you please clarify the ...
0
votes
2
answers
38
views
Can we reset phantom wallet so only we have access?
I don't know how the hacker has access to my wallet because i checked and it was not connected to any scam website.
Now he just add funds to my wallet and drains me mostly on my sleeping time.
Is ...
0
votes
0
answers
12
views
Facing the errors on listing tensor my Pnft
I'm encountering issues with the enforcement of royalties on Tensor when minting programmable NFTs from different wallets. When minting the PNFT from one wallet, the royalty is fixed and verified. ...
1
vote
1
answer
66
views
Does token-2022 allow selling fees instead of a basic transfer fee?
I understand now that the token-2022 standard allows transfer fees but does this also allow a fee that only enforces itself when the coin is being sold just like on Ethereum.
0
votes
1
answer
71
views
How to interact with router for swap transaction?
hope all doing good in your life,
How can I perform a transaction using a Solana router(like orca, Raydium) to swap Solana's native token with another token? I've come across various crates such as ...
3
votes
1
answer
44
views
How to check that an account is the owner of a smart contract?
use solana_program::{
account_info::{next_account_info, AccountInfo},
entrypoint,
entrypoint::ProgramResult,
msg,
program_error::ProgramError,
pubkey::Pubkey,
};
// Declare ...
1
vote
1
answer
46
views
Note taking example from Solana Dev Course
I'm confused about the general design and account handling behavior shown in the "note taking program" from Solana's Dev course (https://www.soldev.app/course/program-state-management).
The ...
0
votes
0
answers
16
views
Is it possible to deploy program with Solana SDK
There are many examples and tutorials on how to deploy Solana account using anchor framework or the native way.
I can successfully deploy account and update its field with anchor SDK & IDL. ...
2
votes
2
answers
35
views
What does the get_associated_token_address()] function return if the associated token addresshas not yet been create?
What does the get_associated_token_address() function return if the associated token addresshas not yet been created (function create_associated_token_account() has not yet been executed) ?
use ...
1
vote
2
answers
75
views
Get "Account is Frozen" error when sending NFT to another account on Solana
I've recently tried to transfer nfts to another account by using @solana/spl-token https://solscan.io/account/9xaaESgAuDeQ9bHm6TArg11zuQem7WjSVf5ioK2jZPNR
I have ...
1
vote
3
answers
66
views
Call a function in a smart contract from solana cli
I am new with Solana development
I have deployed a program to localnet. Now I want to interact with it (call functions)
My question is, is it possible to call a function on a program from the Solana ...
2
votes
1
answer
53
views
Does Solana Playground only work with devnet?
Does Solana Playground only work with devnet?
If Solana Playground also works with mainnet, then how to switch rpc?
0
votes
1
answer
38
views
Can't get past this error with anchor/@coral/xyz
import { Connection, Keypair, PublicKey, clusterApiUrl } from "@solana/web3.js";
import { Program, setProvider, web3, AnchorProvider } from "@coral-xyz/anchor";
import { ...
0
votes
1
answer
31
views
Why choose Solana exchange instead of others?
I just log into this exchange and I need to understand why use this exchange
0
votes
2
answers
99
views
cargo build-bpf no such command: `+solana`
I used the official documentation.
Install the latest Rust stable from https://rustup.rs/ .
Install the latest Solana command-line tools.
But when i try cargo build-bpf in command line in windows 10 i ...
0
votes
0
answers
23
views
Can anyone use SolGSN: Solana Gas Station?
I want to use SolGSN, where the user can't pay the gas fee like transferring the NFT. The admin has to pay the fee. However, this repository is outdated, and I've encountered several errors due to ...
0
votes
1
answer
28
views
How is The Transaction processed on the blockchain side in solana?
I am trying to understand solana code for our project. So when we create an instruction it will be converted into the message(HERE) . and into a transaction and sent over the chain. Then it will be in ...
0
votes
1
answer
51
views
SPL token transactions check
I figured out how to make my token and check incoming applications in the solana network with the usual transfer of solana. But how do I track an incoming transfer with a certain amount of my token to ...
1
vote
1
answer
43
views
Mainnet node lags behind after migration to v1.16.17
We are running a solana node since around April 2023. It was running fine since that time except some minor issues. But it looks like since the migration to the v1.16.17 it’s very difficult to make it ...
0
votes
1
answer
41
views
Failed to reallocate account data
I want to create a PDA account to store data about participants' wallet addresses and their deposit amounts. I have used a PDA account to store this information. It works fine when I set the array ...
0
votes
1
answer
55
views
Transaction failing while calling a Solana program with PDA
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-...
1
vote
2
answers
140
views
Creating my own token on Solana Blockchain in 2023
I created and minted my personal token on solana, but it has no name. The repository on github is closed and I don't understand how to verify my token at all. Tell me please.
Here is my ready-made ...
1
vote
2
answers
139
views
Freeze NFT on Solana
Can I freeze an NFT in another wallet? For example, if I mint an NFT and send it to another wallet, can I freeze it so the recipient can't send the NFT to another wallet unless I choose to unfreeze it?...
0
votes
0
answers
17
views
Panicked at 'index out of bounds: the len is 0 but the index is 0. Program failed to complete
I encountered an error while working on the Metaplex auction house. The situation was as follows: I listed an NFT, received three bids, and initially, I rejected one of them successfully, refunding ...
0
votes
0
answers
14
views
How to integrate Solathon with Discord Bot
I have built a discord bot and now want to integrate Solathon with the discord bot to make Solana transactions. I have the functionality script just need to combine both. Can anyone help?
0
votes
1
answer
20
views
Error: ELF error from deploying an anchor project
I have been trying to deploy my anchor project on the local net. I started by running solana-test-validator and then anchor deploy but I keep receiving this error:
Error: ELF error: ELF error: ...
1
vote
1
answer
106
views
Confused about Tokens
I am very new to Solana and am going through the Bootcamp on SOLANA YT channel. Can someone explain me what are tokens? Why do we need tokens? What is Mint? How is SPL different from SOL?
0
votes
0
answers
17
views
No Staking Rewards on MainNet
Would you please advise why I'm not getting rewards for my transaction -> https://solanabeach.io/address/dcq4kMC4Puus6NZNHfuzo1r54wqhff3SUUTsWFTa9DD/transactions
I do not see any rewards:
0
votes
1
answer
20
views
Solana Beach TestNet availability
Would you please advise if SolanaBeach dashboard is up for TestNet - It does not load any information for me:
URL -> https://solanabeach.io/?cluster=testnet
0
votes
1
answer
20
views
CustomAccount deserialization issue
I have this piece of code, it skips the first 8 bytes of the account data as that's the descriminator
pub struct CustomProgramAccountStruct {
pub pubkey: Pubkey,
pub authority: Pubkey,
pub ...
2
votes
1
answer
131
views
How do I create a basic program to use as a Token-22 transfer hook in Anchor? Is it even possible now?
I want to create a counter PDA that counts the number of times a token has been transferred. I understand how to create the counter PDA using the Solana Playground tutorial as the basis and I know how ...
2
votes
1
answer
42
views
Verify offchain message in golang
I'm trying to verify the offchain message signed by solana cli in golang. but it doesn't work.
Step i did:
base58 decode the address to get the public key
base58 decode the signature to get the ...
0
votes
2
answers
39
views
Can't run the solana helloworld example
I tried the get started rust tutorial on the solana doc but it just doesn't seem to work, it keeps giving me this error:
error: not a directory: '/home/quang/.local/share/solana/install/releases/...
0
votes
0
answers
27
views
Can't realloc and SPL transfer in the same instruction
I am trying to transfer an SPL token, and reallocating space in a PDA in one instruction.
I am able to realloc (increase and decrease) if I remove the token transfer code in the instruction. I'm also ...
3
votes
2
answers
122
views
How to deploy a Solana program using Solana JavaScript SDK?
The documentations explain how to deploy a Solana program using the CLI tools. Is there a way to achieve that in JS/TS using the @solana/spl-token client?
Edit: What I actually meant is @solana/spl-...
0
votes
1
answer
52
views
Warning! Token names and logos are not unique
I mistakenly minted the same token on the mainnet twice, with the same name, symbol, and logo. A warning message appeared in response to this.
Warning! Token names and logos are not unique. This token ...
1
vote
1
answer
33
views
BN inside object
I'm trying to send a BN to a Solana Program, but the account it's never set as intended. When the BN is sent as an another independent argument works fine.
const created_at = new BN(Date.now());
...
0
votes
0
answers
29
views
How can I dynamically increase storage space for a program deployed on Solana using Solang?
I have a program that utilizes arrays and mappings, potentially requiring significant storage space.
Is there a mechanism to dynamically augment the storage space of the account that deployed the ...