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

Resolve error i want to import " instruction as token_instruction,"

use anchor_lang::prelude::;use {anchor_lang::{prelude::,solana_program::program::invoke,system_program,},anchor_spl::{associated_token,token,},mpl_token_metadata::{ID as TOKEN_METADATA_ID,instruction...

View Article


getFeeForMessage returning only base fee

import * as buffer from "buffer";import React, { useState } from 'react';import { Connection, PublicKey, Transaction, SystemProgram, Keypair, LAMPORTS_PER_SOL } from '@solana/web3.js';window.Buffer =...

View Article


How to find the collection address to which it belongs through the nftmint...

Please use the latest method and add the cargo configuration.use mpl_token_metadata::state::Metadata let nft_metadata: Metadata =...

View Article

Interoperability/Bridging with Solana and other chains

I am conducting a study for the university that has to do with Solana and interoperability with other platforms.Could someone tell me where to find documentation to develop a simple transaction with...

View Article

Help me figure this out

I want to ask that if we sent sol to the address that aren't native token address I want to know that how possible to get my sol back?

View Article


Unable to swap and Send

Im unable to swap and send my solana in phantom wallet now, 2 days ago i have signed up to one site which says he will airdrop Dady tate meme token if i register, as i sign up my $40 worth of sol...

View Article

solana contract rust error anchor build

use anchor_lang::prelude::*;use anchor_spl::token::{self, Mint, Token, TokenAccount, Transfer, MintTo};declare_id!("GTPh1tdHiMWVj3yBj2S2ZZftuLPEWPyQZ6Cy7g5ibM5K");#[program]pub mod puj {use...

View Article

How to build on-chain Solana trading bot

Can you help me figure out how can I build an on-chain trading bot for trading tokens launched on the Solana Blockchain? Just need step by step guidance or resources to start.Thanks for your...

View Article


Freeze Authority ? It says my account is frozen

Instruction #3 Failed - Account is frozen

View Article


A solana account, not a pda account, accidentally called the system contract...

This question is confusing. If someone does this, it will permanently destroy sol.

View Article

Geyser messages are being sent earlier to my local computer in compare with...

I'm running rust code while when I'm running the .exe file from my local computer I get the yellowstone geyser messages like 1-4 seconds faster than the geyser messages that are being sent to my server...

View Article

Observing a contract's behavior and withdrawing tokens from it

I recently encountered an error while trying to withdraw stSOL from the Tulip Protocol's "Lending" section:Program Error: "Instruction #3 Failed - null"At first, I thought it was just an honest UI...

View Article

Decoding an instruction for a token on the spl token program

Hello you may have seen my last post, Error : TypeError: Cannot read properties of undefined (reading 'equals')This is a follow up to that post.I decided to experiment more with...

View Article


Missing SOL after multiple failed transactions on Photon - unable to view...

I recently encountered an issue while trading SOL using Photon. After multiple failed transactions, all my SOL disappeared from my wallet. I tried to check my transaction history to understand what...

View Article

Creating a lookup table with web3.js

I'm running into an error with transactions overruning UInt8Array buffer, and I see that I need to save space using versioned transactions and address lookup tables.How can I create one using the...

View Article


Reference to mint is not recognized in Struct creation while trying to create...

I've tried to follow and complete the following guide to create an NFT through Anchor, but after finishing writing the code following each step throroughly following error while compiling:error[E0425]:...

View Article

Failed to create a market ID

The 3 different sites I have used to try to create market ID each show me a failed transaction or or some other error message. The "Failed to load spl token data" was the error message on...

View Article


Uncaught (in promise) TypeError: Cannot read properties of undefined (reading...

let tx = await program.methods.initialize(a,b).accounts({ addAccount: addAccount.publicKey, user: provider.wallet.publicKey, systemProgram: SystemProgram.programId, }).signers([addAccount]).rpc();at...

View Article

Error: The declared program id does not match the actual program id

I moved the app from devnet to mainnet. After building and deploying the app with anchor, received a new Program ID. I put this new Program ID in the source code in all the places needed.I now try to...

View Article

How do I interact with closed-source Solana programs with no public IDL?

How do I interact with a program that has no open source and no Anchor program IDL. I need to get types, accounts and instructions for this program:...

View Article
Browsing all 7836 articles
Browse latest View live


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