All Questions
3,391
questions
0
votes
0
answers
3
views
How to know which program has done CPI for our program?
Suppose, If we have a Program-A which can be called by other programs and users.
If a program does a CPI to Program-A, How to know which program is trying to call our program(Program-A).
0
votes
0
answers
9
views
transfer SPL Tokens? what wrong?
I'm attempting to transfer SPL tokens using Solana's Web3.js, but I'm encountering a SendTransactionError related to invalid account data during the transaction simulation. I need help understanding ...
0
votes
1
answer
18
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 ...
1
vote
1
answer
61
views
What does anchor error `2003` mean
What does the error for A raw constraint was violated mean?
errorCode: { code: 'ConstraintRaw', number: 2003 },
errorMessage: 'A raw constraint was violated',
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 ...
0
votes
0
answers
22
views
Trying to understand how safe it is to use "processed" , "commited" or "confirmed"
Hey guys anchor noob back at it with another noob question!
Alright so I have a program that accepts deposits to a user pda (tx1), based on certain events the user might instantly get a payout from ...
0
votes
0
answers
7
views
Fund sent to contract address
I sent 3.3 Sol to Contract address 97xYNr1cSqhS2pw8N4i89evrx5f2YaDskXz9s2WQauGA (which was created on dexlab) token sent from 793pUt3CyQbE6qPjhDKzbrkqRGhs39sYNBW9Q6xGVMzP. Here's the Transaction Hash ...
0
votes
1
answer
32
views
Problem starting solana-validator rpc server
I am trying to setup a solana-validator. And no matter what I did I could not get the rpc server running. Here is the command to run the validator
--ledger /var/solana/data/ledger \
--identity /...
0
votes
0
answers
7
views
The wallet created does not work normally, saying that there is a problem with my network
The wallet created does not work normally, saying that there is a problem with my network.
0
votes
1
answer
13
views
What does it mean Garbage Collection?
I wonder what is Garbage Collection?. When an Account no longer has enough Lamports to pay its rent, it will be removed from the network in a process known as Garbage Collection. Someone let you know?....
1
vote
2
answers
25
views
How do I get the new SPL token-metadata interface to work with SPL token-2022's metadata-pointer extension?
Just to confirm if I understood all the docs correctly. Basically to get them to work I have to:
Have a metadata program that adheres to the token-metadata interface. Critically, it needs to handle ...
1
vote
1
answer
11
views
What does it mean Lamport?
What does it mean Lamport?. How many Lamports is one Solana?. Is it important?. What is Lamport balance?. How to calculate it?. How many Lamports should I have in my account to be estimated rent ...
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
17
views
Withdrawal sol to the wrong address, please help to recover lost fund
I send some sol to a wrong address that is missing one letter. I still can see the sol stay this address(GDTXXE91yZ5k8k2FsbLNDuijZymRQy2psJHgqm1CBor) and it is owned System Program in solscan.io which ...
1
vote
1
answer
16
views
Is there a way I can use find_program_address used to derive a PDA as an anchor constraint
Suppose I have a PDA that is supposed to be initialized by calling a CPI in my program and I want to validate that the account is valid, is there a way I could add a check to make sure that the ...
0
votes
0
answers
26
views
How to get a token's "pubkey" prior to owning it?
executing the following code using solana's mint address, So11111111111111111111111111111111111111112, I can't get the public key for Solana if I don't have wrapped Solana in my wallet. How can you ...
0
votes
0
answers
19
views
How can I sign a Solana transaction on the frontend with data coming from the backend?
async function getTransaction(){
$.ajax({
url: 'http://localhost:8080/gettransaction',
type: 'GET',
dataType: 'json',
success: async function(data) {
...
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
1
answer
29
views
What's rent?. What's estimated become exempt?
I,d like to know what’s rent?. How to calculate it?. Does it work now?. Does it exist now?. When to become rent exempt?.
I use Solflare and I’ve an account with more or less 200 Solana and I do ...
1
vote
0
answers
9
views
Get all adresses with less than 3000 transactions in a blocks interval
Given a block interval, I want to get every Solana address with less than 3,000 transactions.
For the moment, I check every block in the interval and write down the addresses. But I need 3 extra API ...
0
votes
0
answers
27
views
how to recup solana sent by mistake to metamask address?
I sent by mistake sol to my metamask address in solana chain,
I didn't use raydium to make my wallet
how can I recupe that ?
1
vote
1
answer
27
views
Block tokens on someone else's address
I'm looking for a way to block tokens created on the Solana blockchain. Ideally I would like to do this using Python. Please provide code samples.
Situation: I need to block an account that has my ...
1
vote
0
answers
12
views
Metadata point for SPL-token
Does anyone have a TS file that I can have that creates a metadata pointer for a token where the address is already known.
Almost every exampel I find also creates the token, but I need it to just ...
0
votes
0
answers
15
views
web3.auth integration to Login page with Solana wallet
I'm making a login page for my dapp, and I think I will build on Solana chain.
And I wonder how I can add web3.auth in the page.
I'm using react-native, not sure what to do with this step web3.auth ...
0
votes
1
answer
31
views
I get this error while entering my secret seed phrase on the solana CLI
I got this error while entering my secret seed phrase after pressing enter on the solana CLI: Error: Dynamic program error: Can't get mnemonic from seed phrases
I also double checked that my secret ...
1
vote
1
answer
8
views
Issues with @solana/spl-tokens pnpm is not saving this package to where I can't connect to the blockchain with the following .js file:
const { Token, TOKEN_PROGRAM_ID } = require("@solana/spl-token");
const { Connection, PublicKey, Keypair } = require("@solana/web3.js");
async function main() {
// Your existing ...
0
votes
0
answers
7
views
how to find thhe eddsa for updating my spl-token
I'm looking for a way to update my eddsa variable, am using metaplex, am new to updating a token in using metaplex.
there is my code
`import * as mpl from "@metaplex-foundation/mpl-token-...
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
1
answer
43
views
How can I track such a transaction?
a pleasure to be here, I am reviewing some network transactions but I do not fully understand how tracking works here, for example in the evm networks you could easily identify where transactions come ...
0
votes
1
answer
21
views
Is it possible to set up an account to point to another account?
I'm making an anchor program where I would like to make a user ID easily retrievable with their Pk, sequential ID or username. one way I thought is to make a PK link account (in case the seed for the ...
0
votes
1
answer
38
views
How to store signatures in a pda and invoke an instruction with signatures
I want to create a program influenced by multisig structure.
There will be multiple types of instructions that require two parties to sign each transaction. Here's what I have in my mind:
There will ...
0
votes
2
answers
30
views
Is it possible to have reflection tokens like safemoon on solona?
A reminder on how reflection tokens like safemoon work is every ones balance is simply an equation instead of a fixed number. That way everyone's balance can be instantly updated with no gas needed ...
1
vote
1
answer
71
views
How to update token name in solana token 2022 program
i was trying to update name and symbol etc i tried enable metadata and update and when i use spl-token display in extensions it shows fine but on solscan or wallets name is unrecognized token how to ...
0
votes
0
answers
43
views
Send Solana Transaction directly to the current and next Leader (0.5 SOL bounty)
I need to send a transaction directly to the scheduled validator bypassing the rpc. Solana has upgraded to using QUIC, so I need a nodejs client that I can use to send transactions directly to the ...
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
25
views
USDT tokens accidentally sent to off-curve SPL token account
I sent some USDT-SPL from Huobi (HTX) directly to my main Solana address.
DXu4QfQa3LdVp6ZTw1u7odR1rV95rUiR8XWtUw2yCWv8
This seems to have invoked a program to create a USDT-SPL token account, which is ...
0
votes
1
answer
11
views
How can i get the events emitted from a transaction ID in rust client?
I am trying to fetch the events emitted in a transaction so that i can parse the data and use it on the client. But wondering on how i can fetch it on the anchor client in rust since i couldnt find ...
0
votes
0
answers
20
views
Help with Solana Transaction
I would appreciate if you could help me. By mistake I
sent a pair of solana tokens (28) to the Solana contract address for
the BSC network BNB Smart Chain (BEP20). I have all the background.
Please ...
2
votes
1
answer
55
views
Why can i not add metadata to my Token-2022?
Hello smart people of StackExchange,
I am currently playing arround with the new Token-2022, and i am attempting to create a token with Metadata directly in the mint account.
I am currently attempting ...
0
votes
2
answers
27
views
Can connected Wallet pay for createMint solana-spl?
I'm using vue.js, solana-wallets-vue and @solana/spl-token to create a mint for the connected user.
I want to createMint and set the connected wallet as payer.
import * as web3 from '@solana/web3.js'...
0
votes
1
answer
30
views
How to parse the inner instructions of the transaction's instruction?
Its parsing only transaction instructions, but not inner.
import { PublicKey, Connection, LAMPORTS_PER_SOL } from "@solana/web3.js";
import { SolanaParser } from "@debridge-finance/...
0
votes
0
answers
8
views
Is Primodial updated or is it no longer?
What’s the issue with primordial not sure if this is the rite platform to ask questions about primordial?
0
votes
0
answers
21
views
Problem with testing a name service smart contract written in Solang
I'm trying to run a benchmark for a Solana node using this name service I wrote in Solang within an Anchor project.
This is the Solang smart contract.
import 'solana';
contract eclipse_ns {
...
0
votes
1
answer
20
views
Slides of Bootcamp [closed]
I need the slides of this bootcamp https://www.youtube.com/watch?v=0P8JeL3TURU&list=PLilwLeBwGuK6NsYMPP_BlVkeQgff0NwvU&ab_channel=Solana can I get it?
1
vote
5
answers
108
views
How To View/Interact with a Contract's Code
I'm a solidity developer trying to expand into the Solana ecosystem. On Etherscan, it is very easy to inspect and interact with a smart contact (program). However, I see this basic functionality ...
0
votes
1
answer
23
views
In the basic Solana network, which parties have access to which data?
When trying to reason about whether SOL transactions provide certain types of privacy, it would be very helpful to have a complete list of the information accessible to each party in the basic (...
0
votes
2
answers
30
views
Transactions disabled
Recently I am having a major issue with Phantom wallet. I am using chrome browser extension Whenever I try to send fund from my wallet I got an error message saying " transactions disabled "....
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: ...