ethjs-query icon indicating copy to clipboard operation
ethjs-query copied to clipboard

[ethjs-query] while formatting outputs in 'getTransactionByHash'

Open ayushkul opened this issue 4 years ago • 1 comments

Issue Type

  • Bug

Description

Error: [ethjs-format] hex string '0x0xdce7150b95ec4677ec22b851106cd8964a37158b43' must be an alphanumeric 42 utf8 byte hex

I'm working with an older version of ethjs-query in an old project, lastly, it was working fine. But now it's throwing the following error while checking for the pending transactions. Although the transaction is successful, but it's unable to get its status.

"[ethjs-query] while formatting outputs from RPC '{"blockHash":"0x9970e674ae287c3fdb03b28813d7ed5a82dfa1036cbc5704525e2e45827aead9","blockNumber":"0x169a923","from":"xdce7150b95ec4677ec22b851106cd8964a37158b43","gas":"0x5208","gasPrice":"0x3b9aca00","hash":"0x49ff9aea452d64a0456fab70e2aae52b5e3264b934f269b34f590b84259b2c43","input":"0x","nonce":"0x1","to":"xdc73a72fa27979c7d6568a2c72587046b41323f2a9","transactionIndex":"0x0","value":"0xd02ab486cedc0000","v":"0x8a","r":"0x6c62ba8d38a8ddf563ac507a0251071616a57c740bb840117d7e11460ab3dc62","s":"0x5eb0da414fcc0cfea0de1c48dca191b19db7a12763a7d1cb229996677b4211ba"}' for method 'getTransactionByHash' Error: [ethjs-format] hex string '0x0xdce7150b95ec4677ec22b851106cd8964a37158b43' must be an alphanumeric 42 utf8 byte hex (chars: a-fA-F) string, is 46 bytes"

Versions

  • Node/NPM: 8.1.0
  • Browser: Chrome

ayushkul avatar Sep 27 '21 12:09 ayushkul

I’d recommend using ethers Js.

This library is frozen now.

On Mon, Sep 27, 2021 at 1:22 PM Ayush Kulshrestha @.***> wrote:

Issue Type

  • Bug

Description

Error: [ethjs-format] hex string '0x0xdce7150b95ec4677ec22b851106cd8964a37158b43' must be an alphanumeric 42 utf8 byte hex

I'm working with an older version of ethjs-query in an old project, lastly, it was working fine. But now it's throwing the following error while checking for the pending transactions. Although the transaction is successful, but it's unable to get its status.

"[ethjs-query] while formatting outputs from RPC '{"blockHash":"0x9970e674ae287c3fdb03b28813d7ed5a82dfa1036cbc5704525e2e45827aead9","blockNumber":"0x169a923","from":"xdce7150b95ec4677ec22b851106cd8964a37158b43","gas":"0x5208","gasPrice":"0x3b9aca00","hash":"0x49ff9aea452d64a0456fab70e2aae52b5e3264b934f269b34f590b84259b2c43","input":"0x","nonce":"0x1","to":"xdc73a72fa27979c7d6568a2c72587046b41323f2a9","transactionIndex":"0x0","value":"0xd02ab486cedc0000","v":"0x8a","r":"0x6c62ba8d38a8ddf563ac507a0251071616a57c740bb840117d7e11460ab3dc62","s":"0x5eb0da414fcc0cfea0de1c48dca191b19db7a12763a7d1cb229996677b4211ba"}' for method 'getTransactionByHash' Error: [ethjs-format] hex string '0x0xdce7150b95ec4677ec22b851106cd8964a37158b43' must be an alphanumeric 42 utf8 byte hex (chars: a-fA-F) string, is 46 bytes" Versions

  • Node/NPM: 8.1.0
  • Browser: Chrome

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ethjs/ethjs-query/issues/17, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACK2CXR7OJMEKYXWYKLWCNDUEBOXPANCNFSM5E2NQPSA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

SilentCicero avatar Sep 27 '21 17:09 SilentCicero