neutron-org / neutron

Smart Contract platform secured by Cosmos Hub
https://neutron.org
Apache License 2.0
110 stars 89 forks source link

API returns expected 2 wire type, got 0: tx parse error #627

Closed jack-dot-wu closed 3 weeks ago

jack-dot-wu commented 1 month ago

I use the api '/cosmos/tx/v1beta1/txs?events=tx.height=12403840&pagination.offset=0&pagination.limit=100' to curl the node, but the node return 'query cannot be empty', I find it 'events is the list of transaction event type. Deprecated post v0.47.x: use query instead, which should contain a valid events query.' So i change the api '/cosmos/tx/v1beta1/txs?query=tx.height=12403840&pagination.offset=0&pagination.limit=100', but it return 'expected 2 wire type, got 0: tx parse error'. How to query the bloclk info with the api?

pr0n00gler commented 1 month ago

What RPC are you using?