Category "anchor-solana"

Unable to fetch an already created account

I have the following api method, which I am calling when a button is clicked in the front end:- export const sendMessage = async (content, roomPublicKey) =>

AnchorError occurred. Error Code: InstructionFallbackNotFound. Error Number: 101. Error Message: Fallback functions are not supported

I am trying to call the mintNft function on the front end but it throws an error and I can't fix it the error is: "Program log: AnchorError occurred. Error Code

Airdropping Solana to a Specific Account

I would like to airdrop sols into a specific account to get my smart contract to fire an anchor test. Whenever I run my test I come across the error Error: Acco

I can not deploy the program to dev net with anchor

I get this error where I run anchor deploy: Deploying workspace: http://127.0.0.1:8899 Upgrade authority: /home/<user>/.config/solana/id.json Deploying pr

How to add a Pubkey to an account containing a vector of Pubkeys in an anchor program

use anchor_lang::prelude::*; use rand::Rng; use solana_program::{declare_id, pubkey::Pubkey}; declare_id!("Fg6PaFpoGXkYsidMpWTK6W2BeZ7FEfcYkg476zPFsLnS"); #[pr

yarn run error : Command failed with exit code 1

I was trying to follow this tutorial This is a tutorial on Solana program dev using anchor and the error rises from using yarn on ubuntu 20.0 i guess and I got