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

grpc interop #95

Open benjiqq opened 3 months ago

benjiqq commented 3 months ago

i'm working with grpc. wondering about a good way to interop with protobuf and solders. will default to rust and try using it with solders later.

from solders.transaction import VersionedTransaction
tx_obj = subscribe_update.transaction.transaction
type(tx_obj)
<class 'geyser_pb2.SubscribeUpdateTransactionInfo'>
(Pdb) deserialized = VersionedTransaction.from_bytes(str)
*** ValueError: io error: unexpected end of file
(Pdb) transaction = VersionedTransaction.from_bytes(transaction_bytes)

see https://github.com/rpcpool/yellowstone-grpc/issues/346