Quantcast
Channel: Recent Questions - Solana Stack Exchange
Browsing all 7939 articles
Browse latest View live
↧

Solana Validator Not Opening RPC Port 8899

I’m running a Solana validator on my server and trying to open RPC port 8899 using the following configuration in my systemd service:--rpc-bind-address 0.0.0.0 \--rpc-port 8899 \--private-rpc...

View Article


Why do transaction go first to an RPC node before a validator

I have read from blogs and writings on the lifecycle of a transaction on the solana network, that a transaction after it creation in the DApp, is first sent to the RPC node, which then forwards the...

View Article


How do we get test stablecoins on Solana like USDC or USDT?

I posted this two times on two different channels on Solana Discord without replies. I'm posting here now praying there's an answer. And yes I even googled but no joy.

View Article

Program account fails to change state of owned data account

I am working on a simple project, where a wallet account is created, credited some SOL, then assigned a program contract as its owner (via assign instruction). In the use case, the program should...

View Article

Is it possible to set up a Raydium LP from on chain using CPI?

i would like my on-chain program to set up a LP for tokens using Raydium (though happy to use something else), but I can't find any reference/docs on whether this is possible.Does anyone know if this...

View Article


How to swap SOL token / vise versa but on-chain (in a smart contract)? On...

I'm aware of this question How to interact with router for swap transaction?but mine is different.How to swap a token for SOL or vise versa from within a Solana program/smart contract? That is,...

View Article

[Phantom]: Is it actually possible to disconnect your wallet

I have a wallet connection setup where I eagerly connect to the wallet using provider.connect({ onlyIfTrusted: true }). When a user clicks disconnect I call provider.disconnect().Now when they refresh...

View Article

What can I do about sbf.mk Makefile include seeming to be incompatible with...

I am just getting started with Solana development. I am a C programmer so I am most comfortable with C. I am just using the most basic code to create a shared object file. I am on Ubuntu 22 x86-64. The...

View Article


solana-lldb cannot start due to inability to find libpython3.8.so.1.0

I am new-ish to solana. I am on an Ubuntu 22 virtual machine. I am trying to use solana-lldb alongside solana-ledger-tool program run -l ~/test-ledger -e debugger ~/dev/program/build/program.so so that...

View Article


Image may be NSFW.
Clik here to view.

Inconsistency between Program Id and anchor definitions

When deploying, the Program Id will be inconsistent with the anchor definition, but this will not happen when testing the anchor. I don't know how to deal with it. Do I need to change the Program Id...

View Article

when the program is deployed, modifying the data structure

I really want to know what will happen if after deploying the program, I need to upgrade it and change some fields in the struct, such as the following situations.The struct before my upgrade is like...

View Article

"How Can I Manage My Token at the Lowest Cost?"

I own a token at this address: https://dexscreener.com/solana/GdhovaWSEGk6sqMiu6WFZ9314Fs39p4Pv4ZK6HGxwVrL.I created this token using Smithi, but no matter what you add to the token, you have to pay a...

View Article

How to calculate token prices from LP pairs using `getTokenAccountBalance`?

I want to reference this post: https://solana.stackexchange.com/a/518/7486.I am trying to achieve the same as OP of that post. I want to fetch the price of a token. One response (the one I referenced)...

View Article


Token2022 Error - Incorrect Program ID for Instruction

So I'm creating a Token2022 token for testing purposes right now, and I want to use the withdraw fee extension to hold a percentage on transfer and use my withdrawal authority account to capture those...

View Article

Mint Token in token2022 has name, symbol info, how can it? Does token2022...

From my knowledge, Token2022's Mint account is don't have name and symbol...

View Article


cargo build-bpf error with rustc version

When I execute the command cargo build-bpf, I encounter an error. How can I resolve this issue?error: package `libp2p-allow-block-list v0.3.0...

View Article

Checking the generated PDA against the user's PDA input

First of all, I'm new to Solana development (came from an Ethereum background), so sorry if my question is too basic.I'm following the SolDev course, I'm on course state management. I have a confusion...

View Article


Using recent blockhash with Python

How can I add the getLatestblockhash function in to this code.I tried it but I got:TypeError: argument 'blockhash': 'GetLatestBlockhashResp' object cannot be converted to 'Hash'from spl.token.client...

View Article

Wallet to exchange transfer issue

Please help me get my money back, I transferred a few matic tokens from a phantom wallet to an exchange, almost 17 hrs ago. after inquiring, the exchange tells me you used the Polygon network instead...

View Article

How do I find if a token that just listed on Raydium is a Pump.fun token

am interested in finding pump fun tokens that just listed on Raydium. I want the data to flow continously so am probably thinking a websocket would be ideal. Any ideas how I can go about implementing...

View Article
Browsing all 7939 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>