-
Notifications
You must be signed in to change notification settings - Fork 194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Transaction time #29
Comments
Transactions don't have a time attached to them, only blocks do. For transactions, block explorers usually display either the time of the block the transaction was confirmed in, or the time they first saw the transaction in the mempool. |
@alecalve right but I posted the block methods in my comment as well. Which one of those allows us to obtain the block time? |
It's in the header, it should be |
Is it possible to get the confirmed block number of a transaction? For example if I use
I get a transaction object Transaction(48a387570eeffb07e8e84642efe36bc4088285fc04db91743a9850bfd1611af2). I would like to know the block that it was confirmed at. |
…lock header
Is there a way to access transaction time? I only see the following methods on transaction:
And the following on block:
locktime
on transaction appears to be0
in the first few I've tried to access.The text was updated successfully, but these errors were encountered: