We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How can i fix the bug?
The text was updated successfully, but these errors were encountered:
from anchorpy import Program, Provider, Wallet, Idl from solana.rpc.async_api import AsyncClient from solders.keypair import Keypair import json
async def load_program():
connection = AsyncClient("https://api.mainnet-beta.solana.com") wallet = Wallet(Keypair()) provider = Provider(connection, wallet) with open("idls/pumpfun.json") as f: raw_idl = json.load(f) idl = Idl.from_json(json.dumps(raw_idl)) print program = Program( idl, "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P", provider ) return program
async def main(): program = await load_program() print("Program loaded successfully!") print("Program ID:", program.program_id) print("Available instructions:", program.instruction_names) print("Available events:", [e.name for e in program.events])
if name == "main": import asyncio asyncio.run(main()) I want to init the program, but i can't
Sorry, something went wrong.
No branches or pull requests
How can i fix the bug?
The text was updated successfully, but these errors were encountered: