michaelhly / solana-py

Solana Python SDK
https://michaelhly.github.io/solana-py
MIT License
1.04k stars 273 forks source link

Help with versionedtransactions #361

Closed RiadZX closed 1 year ago

RiadZX commented 1 year ago

Hi, I use the magiceden API to get instructions to buy/list nfts on their marketplace. They added a versionedtransaction option, I however could not figure out how to do it using solana-py. Any examples on how to send versionedtransactions would be appreciated.

Thanks in advance

michaelhly commented 1 year ago

Use this here: https://kevinheavey.github.io/solders/api_reference/transaction.html#solders.transaction.VersionedTransaction

and use the solana-py client to broadcast the transaction