Eos: GetTransaction trx is null

Created on 6 Jun 2018  ยท  4Comments  ยท  Source: EOSIO/eos

After calling cleos get transaction on a valid hash (extracted from get block N), the output always give

"trx": null,
"block_time": "2000-01-01T00:00:00.000",
"block_num": 0,
````
`cleos version client = 1a27ee3a`
`nodeos = 438824506`

Plugins

plugin = eosio::chain_api_plugin
plugin = eosio::history_api_plugin
plugin = eosio::history_plugin
```

Same output is given using eosjs v14.1.0

code review user experience

Most helpful comment

OK, so the node needs to have the filter set to capture the information. Maybe nodeos should return

trx: {error: "filter not set to capture this transaction"}

Or something similar.

All 4 comments

I get the same problem, and I can't get any print information after I push an action.

When I used another colleague's computer, there was no problem.

Here's the response from Kevin Heifner -- "You have to indicate via filter-on what to capture. The default is nothing."
You can see more info in the config file

# Track actions which match receiver:action:actor. Actor may be blank to include all. Receiver and Action may not be blank. (eosio::history_plugin)
# filter-on =

So you can set --filter-on=* when starting nodeos, but it's not recommended.

OK, so the node needs to have the filter set to capture the information. Maybe nodeos should return

trx: {error: "filter not set to capture this transaction"}

Or something similar.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

chanwitkepha picture chanwitkepha  ยท  3Comments

bezalel picture bezalel  ยท  3Comments

yashbhavsar007 picture yashbhavsar007  ยท  3Comments

zxf969175364 picture zxf969175364  ยท  3Comments

hoopslb picture hoopslb  ยท  3Comments