Skip to content
Cosmopediaby Unity Nodes
DiscussionsMiscellaneousTopic: Malformed JSON return from Gaoa RPC GET /txs Search transactionsForum ↗

Topic: Malformed JSON return from Gaoa RPC GET /txs Search transactions

Miscellaneous1 posts246 viewsLast activity Nov 2020
KE
KevinWuOP
Nov 2020

Hi, I am using Gaia-Lite GET /txs to search transactions by events. I notice that whenever I set the search limit over 10 with pagination, I always run into malformed JSON returns from the server. When the limit is equal or under 10, things seem to be ok. Has anyone encountered similar issues? Am I missing something very basic? Thanks! Here is an example of my query, which you could also try it out: https://api.cosmos.network/txs?page=1&limit=50&transfer.recipient=cosmos1hk6kvcv02ysvwjzv637f6rqq0ra802987wn2qs Here is the return I got from the above query, the message seems broke in the middle and can not be interpreted: {“total_count”:“390”,“count”:“50”,“page_number”:“1”,“page_total”:“8”,“limit”:“50”,“txs”:[{“height”:“3671141”,“txhash”:“8D9219900EEF002423F35BBD09B792700015C61DA677EDA2413410276CA7420E”,“raw_log”:"[{“msg_index”:0,“success”:true,“log”:"",“events”:[{“type”:“message”,“attributes”:[{“key”:“sender”,“value”:“cosmos1t5u0jfg3ljsjrh2m9e47d4ny2hea7eehxrzdgd”},{“key”:“module”,“value”:“bank”},{“key”:“action”,“value”:“send”}]},{“type”:“transfer”,“attributes”:[{“key”:“recipient”,“value”:“cosmos1hk6kvcv02ysvwjzv637f6rqq0ra802987wn2qs”},{“key”:“amount”,“value”:“8697500uat…

Excerpt (1200 of 63187 characters). Read the whole post on the forum ↗

← Back to Discussions