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

How to generate vanity keypairs in typescript

Is there a way to generate vanity keypairs using Typescript apart from using the generate method and matching the prefix/suffix of generated keypairsconst keypair = Keypair.generate();while (true) { if...

View Article


Python API to get spl token details given token solscan address

Is there python api to get spl token details like current price, total supply, mint address with given token address along with solscan address?

View Article


Getting Block Height Exceed Errors when try to mint NFT using metaplex

I am trying to mint NFTs using metaplex, but I am getting errors - "Block height exceeded".I tried to add priority fee to tx, but at metaplex functions I cannot find that option.How to solve this?

View Article

Difference between getParsedProgramAccounts vs getParsedTokenAccountsByOwner

Just started learning solana development and I'm going over the cookbook. It uses this piece of code to retrieve tokens for a walletconst accounts1 = await...

View Article

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...

View Article


Solana Rust: Signature verification failed

I'm getting Solana transaction signature verification error.I tried many methods but my result is always same, which is "false"Below is my code:let node_client =...

View Article

error: Unable to update registry `crates-io` while cargo build-bpf

I just started learning solona. And following the solana guidewhile learning Cargo build-bpf, i am getting following error on wsl 2, Debianbiplab@BIPLAB:/mnt/d/Rust/rust_project/solana$ cargo build-bpf...

View Article

Solana CLI failing

Why solana cli is not working on creating the tokens? It keeps on giving error "TransactionExpiredBlockheightExceededError: Signature XXXXXX has expired: block height exceeded."

View Article


Image may be NSFW.
Clik here to view.

How can I programmatically get information about the status of the Bonding...

How can I programmatically get this data? I see this data on the site and I've also seen some queries on pumpportal.fun, but there's no query on how to retrieve this data. Please help

View Article


Blocking specific token program's TXs

As a validator, how do you block a specific token program's txs?

View Article

could not find `instruction` in `self` when putting code in a separate file

I am trying to work with Jupiter aggregation.For the ease of readers I will only give the relevant codes:Primarily, here is the lib.rs:use crate::instructions::*;pub mod instructions;use...

View Article

Error: 'dict' object has no attribute 'offset'

when im trying to execute the code its getting error from offset , in mem filter , need to get pool keys from thisfrom solana.rpc.types import MemcmpOpts, DataSliceOptsfrom solders.pubkey import...

View Article

Retrieving Gas Fee Data for Transactions on the Solana Blockchain

I need to retrieve the gas fee for transactions on the current Solana blockchain. Can you recommend a method or tool that I can use to get this data?

View Article


Why when I want to swap my ethereum on phantom it says I done have enough

I have 500 dollars in my phantom wallet but I want to swap my ethereum to other criptos and when I want to swap my cripto, the phantom app says I don’t have enough ethereum when I do.

View Article

Hello, please help us 🙏. We revoked admin rights but did not revoke the...

please help us 🙏. We revoked admin rights but did not revoke the rights to change metadata, now we wanted to change the metadata and revoke the rights, but we can’t do it.

View Article


Run rpc node connection timed out Unable to determine the validator's public...

I'm trying to setting up a rpc node for Solana on a rented Hetzner Server.I have followed the official documentation's guide https://docs.anza.xyz/operations/setup-a-validator here.I have modified the...

View Article

Error when fetching pool keys from Raydium: “a bytes-like object is required,...

I’m working with a public GitHub repo (you can find it here: https://github.com/AL-THE-BOT-FATHER/raydium_py) that interacts with the Raydium decentralized exchange using Python. I’m trying to fetch...

View Article


I believe ive been robbed

I have the transaction 0x8718fb0123b9335ced0a2e450ef28904bf972645c43d0e6e59ad3065888879df that I did not approve of and it seems my crypto was maliciously transfered out of my wallet I believe on...

View Article

Solana web3.js getParsedTransaction returning null

I am writing a script that listens to Solana logs on a certain account and want to send transaction details whenever certain Program conditions are met, as seen below.connection.onLogs( publicKey,...

View Article

How to get the token account in Solana?

I am trying to get token account for this.#[account(mut)] pub nft_info: Account<'info, TokenAccount>,I used getAssociatedTokenAddressSync(), but there is an error.Error: AnchorError caused by...

View Article
Browsing all 8063 articles
Browse latest View live


Latest Images

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