简体   繁体   中英

Send a buy transaction to magic eden market on Solana Blockchain with python

i want to buy an nft which is already listed on Magic Eden, is there a way to make it possible?

i think the transaction would be like this:

instruction = buy(nft_address,receiver_adr,magic_eden_program_id, price) send_tx = client.send_transaction(transaction, sender_keypair)

nft_address: is the address of the nft that i want to buy receiver_adr: my public address magic_eden_program_id: M2mx93ekt1fmXSVkTrUL9xVFHkmME8HTUi5Cyc5aF7K price: the price of the nft on magic eden market place

i have look at Sending solana transactions with python but i don't see how i can use it with magic eden.

I think you need to use ME API. But, the default language there is not python. I'm also still learning. We can discuss more together. Add my discord: Yohan#9481

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM