Skip to content
This repository was archived by the owner on Nov 30, 2021. It is now read-only.
This repository was archived by the owner on Nov 30, 2021. It is now read-only.

Failed to query "transaction sent by MetaMask" through transaction hash #630

@summerpro

Description

@summerpro

System info: [Include Ethermint commit, operating system name, and other relevant details]

Steps to reproduce:

  1. Start a single node locally through init.sh

  2. Send a transaction through MetaMask, such as deploying a contract

  • Get transaction hash from the remix return result
    image
  1. Query method one: Query transactions through rest api interface /txs/{hash}
http://localhost:8545/txs/58a96e35de19b26bc3728e02a3186a86ec86930aa237c12f66a6594a314d64fd
  • The results are as follows:
{"error":"UnmarshalBinaryBare expected to read prefix bytes 282816A9 (since it is registered concrete) but got 25A6BE54..."}
  1. Query method two: Query through the jsonrpc interface
curl  -H "Content-Type:application/json" -X POST --data '{"jsonrpc":"2.0","method":"eth_getTransactionByHash","params":["0x58a96e35de19b26bc3728e02a3186a86ec86930aa237c12f66a6594a314d64fd
"],"id":1}' -H "Content-Type: application/json"  localhost:8545
  • The results are as follows:
{"jsonrpc":"2.0","id":null,"error":{"code":-32700,"message":"parse error"}}

Additional info: [Include gist of relevant config, logs, etc.]

  • It may be that cosmos-style transaction types are used to parse eth-style transactions, and the format analysis fails

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions