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

Change units of the value in eth_getTransactionByHash result #3053

Open
nadezhdapopovaa opened this issue Oct 1, 2024 · 0 comments · May be fixed by #3057
Open

Change units of the value in eth_getTransactionByHash result #3053

nadezhdapopovaa opened this issue Oct 1, 2024 · 0 comments · May be fixed by #3057
Assignees
Labels
bug Something isn't working
Milestone

Comments

@nadezhdapopovaa
Copy link

nadezhdapopovaa commented Oct 1, 2024

Description

When querying a transaction by hash we send wei. It is expected that the units of the value in the result will be the same. Instead it is returned in tinybars. It would be better if it's wei in and wei out so it can be consistent.

Steps to reproduce

run query eth_getTransactionByHash and check value in the result

Example

  • request
curl https://testnet.hashio.io/api \
  --header "Content-Type: application/json" \
  --data '{"method":"eth_getTransactionByHash","params":["0x2a92a7c48567e0ce4cfd1932792fd1666793152d429091e39e4456a3953f60b2"],"id":1,"jsonrpc":"2.0"}'
  • result
{
    "result": {
        "blockHash": "0xee2fd72987d2524ee51353a28edc6564334f87448aa49217fa8396a683675dc6",
        "blockNumber": "0x8fd5b4",
        "chainId": "0x128",
        "from": "0xba76c6980428a0b10cfc5d8ccb61949677a61233",
        "gas": "0xf561",
        "gasPrice": "0x0",
        "hash": "0x2a92a7c48567e0ce4cfd1932792fd1666793152d429091e39e4456a3953f60b2",
        "input": "0xc99907ec00000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000e0000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000e746573742d6176616c616e636865000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002a3078413146353139373263313739373562353964433438316646323838426539456145323532446343440000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000c68656c6c6f2068656465726100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000",
        "nonce": "0x6e5",
        "r": "0x1588d641c8b6177a2b8a8f58f7d509cf2cf6e5a4f3fe01fe489ca66dbe49f027",
        "s": "0x78ded747213c061859ad9967b8ce4e6ed5565099da4353300bc850ffa96b4524",
        "to": "0x2202534ea92e8f026032c460bf9f79d2f81425b4",
        "transactionIndex": "0x4",
        "type": "0x2",
        "v": "0x1",
        "value": "0x5f5e100",
        "yParity": "0x1",
        "accessList": [],
        "maxPriorityFeePerGas": "0x0",
        "maxFeePerGas": "0x13e"
    },
    "jsonrpc": "2.0",
    "id": "test_id"
}

Additional context

No response

Hedera network

No response

Version

v0.56.0

Operating system

macOS

@nadezhdapopovaa nadezhdapopovaa added the bug Something isn't working label Oct 1, 2024
@nadezhdapopovaa nadezhdapopovaa linked a pull request Oct 3, 2024 that will close this issue
2 tasks
@konstantinabl konstantinabl modified the milestones: 0.59.0, 0.58.0 Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: In Review
Development

Successfully merging a pull request may close this issue.

2 participants