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

bigint: Failed to load bindings, pure JS will be used (try npm run rebuild?)...

When attempting to import Connection from @solana/web3.js, this appears when it is run:bigint: Failed to load bindings, pure JS will be used (try npm run rebuild?)It appears to still run, but I am...

View Article


How to get result of a previous instruction within a transaction

How could we get the result of a previous instruction within a transaction with multiple instructions? Say we are swapping a token on an AMM and so we are uncertain of the amount of tokens we are going...

View Article


`TypeError: fetch failed` while trying to use Connection in web3.js

When executing any call to via the Connection object I keep getting the error TypeError: fetch failed even though the RPC is up. How do I fix this?import { Connection, PublicKey, clusterApiUrl } from...

View Article

invalid transaction: Transaction failed to sanitize accounts offsets correctly

Hope someone can help? We are integrating solana into our interoperable web2/web3 platform called the oasis and having issues minting an nft, we are getting this error: "invalid transaction:...

View Article

can anyone tell me why i am getting this error when i trying to create a token

i am getting this errorError in create mint Error: failed to send transaction: Transaction simulation failed: Error processing Instruction 0: custom program error: 0x1import { useConnection, useWallet...

View Article


Error: failed to get recent blockhash: TypeError: fetch failed

Getting this error while trying to run my tests cases with anchorError: failed to get recent blockhash: TypeError: fetch failed at Connection.getLatestBlockhash...

View Article

Image may be NSFW.
Clik here to view.

Slot hash VS block hash?

I'm wondering the differences between slot hash and block hash, and how are they calculated? (i.e., they are calculated based on what?)From the "Sysvar: Slot hashes" on Solana explorer, We can see 512...

View Article

Where can I find how many CUs different operations and syscalls cost?

I know I can get this by trial and error and just running the operations I want to test it, but I'd imagine it's written down somewhere too. Where?

View Article


"SWAPBASEIN" vs. "SWAP" transactions

I see that A LOT of tokens have these "SWAPBASEIN" transactions righ after the token mint and often before pool creation. Also, almost all of those transactions fail.I would really appreciate if...

View Article


Image may be NSFW.
Clik here to view.

SNS - Retrieve all Domains+Subdomains of an User

The following code is used to retrieve all Sub-Domains of a Public-Key.const getAllSNSProgramAccounts = async () => { const accounts = await connection.getProgramAccounts(new...

View Article

Remove Transfer-Hook from my token

I am thinking of methods to write a whitelist functions on a token. Is there a more efficient way to do this, as I want only specific wallets to be able to buy/send/transfer my tokens, I see that there...

View Article

My solona wallet is not connecting to my tapswap. will not take you anywhere...

My solona wallet is not connecting to my tapswap. there is no start a mission while connecting the wallet and when you tap on go it will not take you anywhere I need help on this please

View Article

Where can i find documentation for raydium sdk v2?

I can't find the documentation online for the raydium sdk v2, can someone help me?

View Article


Python Solana bot transaction issues

I’m attempting to create a solana bot that has limit order to buy $MAGA using raydium. However everytime i run the code, the transaction does not go through.<!-- begin snippet: js hide: false...

View Article

Raydium swap with rust

Does anyone have some practical examples of swapping on Raydium using Rust?If you have any examples you can share please

View Article


Problem with rapswap connecting with wallet

My solona wallet is not connecting to my tapswap. will not take you anywhere I need help this please

View Article

Image may be NSFW.
Clik here to view.

Can't deploy a smart contract: cli 'solana program show --programs' returns...

For those who've been following this, I been dealing with ISSUES trying to make a solana-token ICO widget,basically I finally got around both the,error: package `solana-program v1.18.2` cannot be built...

View Article


HOW TO FIX THIS False error report “Transaction simulation failed:...

I now have a solana account and want to transfer all the SOL in it. At first I found that the OKX wallet could not be transferred because there were SPL ACCOUNT and CNFTS in my wallet, so I transferred...

View Article

PoH handoff between leaders

I tried to understand how PoH works based on the whitepaper and various blogs: leaders generating hashes, adding to the ledger and transmitting entries and ticks as shreds before even finishing the...

View Article

Error processing Instruction 4: custom program error: 0x2a"

I am working on my raydium swap bot on python. I am able to buy some tokens and can't buy some other tokens. I dont know the reason why my codes are working for one and not for the other one. I wrap...

View Article
Browsing all 6948 articles
Browse latest View live


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