-
Notifications
You must be signed in to change notification settings - Fork 31
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
API: Transaction result included in getTransaction #97
API: Transaction result included in getTransaction #97
Conversation
For now, we'll just add it if you get a transaction directly. If you are receiving a block, we'll just return the transaction itself still need to make sure we have non-null marshalling, or bifurcate the result type, so WIP
Also add gas/gasPrice to tx/pending
@honeycrypto if you use this code, should allow you to get further with chain explorer changes |
Status of the CALL seems to be always |
Testnet explorer now shows Gas Used / Gas Limit, Gas Price and Actual TX Cost SEM/USD: |
Yeah. It's weird. The contract does succeed and not throw error even if it fails. Not sure if that's by design for erc20, or just a bad demo contract. Will dig deeper. Did verify the VM says it's a success (but did not transfer anything) |
If you request an individual transaction, we'll return the full object with transactionResult included.
if you are retrieving a block, we just leave it as a simple transaction without results as before. We can change this in the future, but seems preferrable to prefer lighter weight calls unless necessary.
Also add gas information (gas, gasPrice, gasUsed) so that blockchain explorers can accurately show this along with calculating out actual fee (gasUsed*gasPrice)