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

How can i get EventLogs and topics from a transaction response? #359

Closed
amirhossein7 opened this issue Aug 10, 2021 · 1 comment
Closed

Comments

@amirhossein7
Copy link

after i send the transaction with this method
let sendRawTX = try provider.eth.sendRawTransaction(tx)
i need to get event logs and topics .

@amirhossein7 amirhossein7 changed the title How can i get EventLogs and topics from a trasaction response? How can i get EventLogs and topics from a transaction response? Aug 21, 2021
@amirhossein7
Copy link
Author

amirhossein7 commented Aug 24, 2021

Answer:
you can get your transaction logs after the transaction mined with using of this method
let provider = Web3.InfuraRopstenWeb3()
let recepit = try provider.eth.getTransactionReceipt(txHash)
print(recepit.logs)

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

1 participant