bitshares / python-bitshares

Fully featured client-side library for the BitShares Blockchain - written entirely in python.
http://docs.pybitshares.com/
MIT License
163 stars 167 forks source link

No "transaction_ids" in the block? #280

Closed xiangxn closed 4 years ago

xiangxn commented 4 years ago

No "transaction_ids" in the block?

abitmore commented 4 years ago

See https://steemit.com/bitshares/@xeroc/python-bitshares-how-to-derive-transaction-ids . See also #35.

abitmore commented 4 years ago

TL;DR

from bitshares.block import Block
from bitsharesbase.signedtransactions import Signed_Transaction
block = Block(23743383)
tx = Signed_Transaction(**block["transactions"][2])
print(tx.id)