Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Program returned error: custom program error: 0x179d on Solana

Tags:

solana

Hi got next error in communication between dex exchange and phantom wallet

#1 Unknown program instruction

Program log: free_supply: 14100789713994 Program log: Custom program error: 0x179d Program Zo1ggzTUKMY5bYnDvT5mtVeZxzf2FaLTbKkmvGUhUQk consumed 41719 of 1400000 compute units Program returned error: custom program error: 0x179d

what might cause the issue?

like image 946
Максим Кривенко Avatar asked Aug 15 '26 08:08

Максим Кривенко


1 Answers

When you see custom program error... it indicates that a program instruction in your transaction failed. The 0x179d is the program's code which may be a unique error code, often times it is an index (variant) of a Rust enum in the program error.rs.

For example:

pub enum SampleError {
    InvalidInstruction,
    DeserializationFailure,
    AlreadyInitializedState,
    KeyNotFoundInAccount,
    KeyAlreadyExists,
    InsufficientFundsForTransaction,
    UnknownError,
}

So here, you could possibly see an error code of 0x0 through 0x6. A program may also assign the error code in some other way.

In order for you to know what the error associated to the code is you can either look up the error in the programs source code. If the program you are calling is not open source... you can try to contact the owner of the program to get more information about the code.

like image 145
Frank C. Avatar answered Aug 18 '26 23:08

Frank C.