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

/eth/tx/receipt doesn't have simplified response #4

Open
Amit0617 opened this issue Nov 16, 2023 · 1 comment
Open

/eth/tx/receipt doesn't have simplified response #4

Amit0617 opened this issue Nov 16, 2023 · 1 comment

Comments

@Amit0617
Copy link
Owner

status, cumulativeGasUsed, gasUsed, effectiveGasPrice, blockNumber and transactionIndex would be more suitable as decimal

@Amit0617
Copy link
Owner Author

{
  "type": "0x2",
  "root": "0x",
  "status": "0x1",
  "cumulativeGasUsed": "0x57f2",
  "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000002000000000000000000200000000000000000000000000000020000000000000000000000000000000000000000000000040000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
  "logs": [
    {
      "address": "0x5fbdb2315678afecb367f032d93f642f64180aa3",
      "topics": [
        "0x24abdb5865df5079dcc5ac590ff6f01d5c16edbc5fab4e195d9febd1114503da"
      ],
      "data": "0x000000000000000000000000000000000000000000000000000000000000002a",
      "blockNumber": "0x2",
      "transactionHash": "0x60573721ca1f0c4dd80f11dac04eb6403c6b72bc27ceb9ce93dddb5e333bfc62",
      "transactionIndex": "0x0",
      "blockHash": "0xa4e1b9ae07724a35190410d7de7a85d084200c47661b6a0a2fb2d463711958da",
      "logIndex": "0x0",
      "removed": false
    }
  ],
  "transactionHash": "0x60573721ca1f0c4dd80f11dac04eb6403c6b72bc27ceb9ce93dddb5e333bfc62",
  "contractAddress": "0x0000000000000000000000000000000000000000",
  "gasUsed": "0x57f2",
  "effectiveGasPrice": "0x6948dacc",
  "blockHash": "0xa4e1b9ae07724a35190410d7de7a85d084200c47661b6a0a2fb2d463711958da",
  "blockNumber": "0x2",
  "transactionIndex": "0x0"
}

An example for most of the keys which could be in transaction receipt

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