kevinheavey / solders

A high-performance Python toolkit for Solana, written in Rust
https://kevinheavey.github.io/solders/
Apache License 2.0
205 stars 23 forks source link

Transaction serialize not found #89

Closed jasonthewhale closed 5 months ago

jasonthewhale commented 5 months ago

I met this error when calling send_bundle of jito-python library. data=tx.serialize(), ^^^^^^^^^^^^ AttributeError: 'solders.transaction.Transaction' object has no attribute 'serialize'

Do we actually have a function to serialize Transaction class?

kevinheavey commented 5 months ago

To serialize a solders transaction, just call bytes(tx)