Untitled

mail@pastecode.io avatar
unknown
python
18 days ago
625 B
1
Indexable
Never
import base64
from solders.transaction import Transaction

# Your base64 encoded transaction string
base64_tx = "AFbDelcpOEU92iWSYf6qQWG4Q782TNxfwxmlOLCCXkNS0Jh+v94FRCicvkH9nSrJp+mXQqaewBC2fXJM4kWWZbul31ijj8wDosGUxvq4TAvESNybeP0cp84wIxW4Aoy/52yBAAAAAAAAp4R2Qn35eY9C6bAruXACC/rOm2lJv2FhHFvv914i6nZuDOebXenOYQppBNEKgc98kkNno+sYmZlu4HH3ldC5rA=="

# Step 1: Decode the base64 string to raw bytes
raw_tx = base64.b64decode(base64_tx)

# Step 2: Parse the transaction from the raw bytes
tx = Transaction.from_bytes(raw_tx)

# Step 3: Inspect the parsed transaction
print("Signatures:", tx.signatures)
print("Message:", tx.message)
Leave a Comment