Skip to content
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

let block = try? web3.eth.getBlockNumber() #376

Closed
jesuasir007 opened this issue Sep 15, 2021 · 4 comments
Closed

let block = try? web3.eth.getBlockNumber() #376

jesuasir007 opened this issue Sep 15, 2021 · 4 comments

Comments

@jesuasir007
Copy link

let block = try? web3.eth.getBlockNumber()
print(block)
let bk = try? web3.eth.getBlockByNumber(block)
print(bk.transactions)

how can I get the transaction hash value in bk.transaction TransactionInBlock

any one help about this topics

Originally posted by @jesuasir007 in #370 (comment)

@dangell7
Copy link

What is the response from print(bk.transactions)?

@jesuasir007
Copy link
Author

response is
[web3swift.TransactionInBlock.hash(32 bytes)

@jesuasir007
Copy link
Author

jesuasir007 commented Sep 27, 2021

What is the response from print(bk.transactions)?
response is
[web3swift.TransactionInBlock.hash(32 bytes)]

@RaviRanjan-11
Copy link
Contributor

Duplicate of #370

@Iysbaera Iysbaera closed this as completed Nov 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants