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

1.7k Views Asked by At

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.

1

There are 1 best solutions below

4
On

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