You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to fetch IDL files for two external programs (message_transmitter and token_messenger_minter) using the fetchIdl function in my script. However, the call to anchor.Program.fetchIdl() fails and no .json files are downloaded. I need guidance on how to properly retrieve the IDL for these programs or alternative solutions to manually obtain their IDLs.
Steps to Reproduce:
1. Set RPC_URL = "https://api.devnet.solana.com".
2. Run the following code:
Expected Behavior:
• The fetchIdl function successfully retrieves the IDL from the chain and writes the .json files to the target/idl directory.
Actual Behavior:
• The script fails to fetch the IDL, resulting in errors and no .json files being generated.
Additional Details:
• Checked that the programs are visible on Devnet using solana program show <PROGRAM_ID>.
• Verified cluster and wallet settings in Anchor.toml.
• Attempted anchor idl fetch <PROGRAM_ID> from the command line, which also failed due to format or missing IDL issues.
Questions / Requests for Help:
• Are these programs’ IDLs actually registered on-chain?
• If the IDL is not available on-chain, what’s the recommended way to obtain it?
• How can I manually create or integrate the IDL file if I cannot fetch it via fetchIdl?
Please let me know if I need to provide additional information or logs. Any guidance or solutions would be greatly appreciated.
The text was updated successfully, but these errors were encountered:
I am trying to fetch IDL files for two external programs (message_transmitter and token_messenger_minter) using the fetchIdl function in my script. However, the call to anchor.Program.fetchIdl() fails and no .json files are downloaded. I need guidance on how to properly retrieve the IDL for these programs or alternative solutions to manually obtain their IDLs.
Steps to Reproduce:
1. Set RPC_URL = "https://api.devnet.solana.com".
2. Run the following code:
Expected Behavior:
• The fetchIdl function successfully retrieves the IDL from the chain and writes the .json files to the target/idl directory.
Actual Behavior:
• The script fails to fetch the IDL, resulting in errors and no .json files being generated.
Additional Details:
• Checked that the programs are visible on Devnet using solana program show <PROGRAM_ID>.
• Verified cluster and wallet settings in Anchor.toml.
• Attempted anchor idl fetch <PROGRAM_ID> from the command line, which also failed due to format or missing IDL issues.
Questions / Requests for Help:
• Are these programs’ IDLs actually registered on-chain?
• If the IDL is not available on-chain, what’s the recommended way to obtain it?
• How can I manually create or integrate the IDL file if I cannot fetch it via fetchIdl?
Please let me know if I need to provide additional information or logs. Any guidance or solutions would be greatly appreciated.
The text was updated successfully, but these errors were encountered: