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 ArticlegetFeeForMessage 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 ArticleHow 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 ArticleInteroperability/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 ArticleHelp 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 ArticleUnable 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 Articlesolana 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 ArticleHow 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 ArticleFreeze Authority ? It says my account is frozen
Instruction #3 Failed - Account is frozen
View ArticleA 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 ArticleGeyser 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 ArticleObserving 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 ArticleDecoding 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 ArticleMissing 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 ArticleCreating 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 ArticleReference 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 ArticleFailed 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 ArticleUncaught (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 ArticleError: 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 ArticleHow 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