Closed chigozie-coder closed 2 days ago
Transaction.from_buffer()
Transaction.from_buffer()
Thanks, but how do I do something like this Solana py equivalent. I don't have idea how to send raw transaction. Please help. Thanks
# ... under a function
if tx_type == "legacy":
transaction = Transaction.from_bytes(serialized_tx)
transaction.sign([keypair], blockhash)
else:
return print("TX type not supported :/")
signature = await client.send_raw_transaction(bytes(transaction))
tx = Transaction.from_buffer(serialized_tx, [keypair]) # make sure the serialized_tx is bytes type client.send_transaction(tx)
Did this work? @chigozie-coder If so, you can close the issue, otherwise, feel free to ask further.
It worked thanks
I will like to deserialize a serialized base 58 format transaction.
This is equivalent to transaction.deserialize in Solana py.
I need help thanks