Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Transaction time #29

Closed
Closed
@Marto32

Description

@Marto32

Is there a way to access transaction time? I only see the following methods on transaction:

['__class__',
 '__delattr__',
 '__dict__',
 '__dir__',
 '__doc__',
 '__eq__',
 '__format__',
 '__ge__',
 '__getattribute__',
 '__gt__',
 '__hash__',
 '__init__',
 '__init_subclass__',
 '__le__',
 '__lt__',
 '__module__',
 '__ne__',
 '__new__',
 '__reduce__',
 '__reduce_ex__',
 '__repr__',
 '__setattr__',
 '__sizeof__',
 '__str__',
 '__subclasshook__',
 '__weakref__',
 '_hash',
 '_locktime',
 '_txid',
 '_version',
 'from_hex',
 'hash',
 'hex',
 'inputs',
 'is_coinbase',
 'is_segwit',
 'locktime',
 'n_inputs',
 'n_outputs',
 'outputs',
 'size',
 'txid',
 'uses_bip69',
 'uses_replace_by_fee',
 'version']

And the following on block:

['__class__',
 '__delattr__',
 '__dict__',
 '__dir__',
 '__doc__',
 '__eq__',
 '__format__',
 '__ge__',
 '__getattribute__',
 '__gt__',
 '__hash__',
 '__init__',
 '__init_subclass__',
 '__le__',
 '__lt__',
 '__module__',
 '__ne__',
 '__new__',
 '__reduce__',
 '__reduce_ex__',
 '__repr__',
 '__setattr__',
 '__sizeof__',
 '__str__',
 '__subclasshook__',
 '__weakref__',
 '_hash',
 '_header',
 '_n_transactions',
 '_transactions',
 'from_hex',
 'hash',
 'header',
 'height',
 'hex',
 'n_transactions',
 'size',
 'transactions']

locktime on transaction appears to be 0 in the first few I've tried to access.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions