okx / exchain

⛓️ EVM & Wasm $ IBC-compatible, OKTC is a L1 blockchain network built on top of Cosmos SDK that aims for optimal interoperability and performance ✨
https://www.okx.com/oktc
Other
564 stars 182 forks source link

How do I turn on the trace related API interface? #3258

Closed YuXiaoCoder closed 10 months ago

YuXiaoCoder commented 10 months ago

How can I use the debug_traceBlockByNumber or debug_traceTransaction interfaces similar to GETH RPC?

giskook commented 10 months ago

@YuXiaoCoder Please add --debug-api=true and make sure --pruning=nothing when start your node. Then have a try.

YuXiaoCoder commented 10 months ago

@giskook That's fine. Thank you. To help those who come after me, here's an example of my command:

/opt/oktmain/core/exchaind start --node-mode=archive --chain-id=exchain-66 --home=/mnt/oktmain/node --rest.laddr=tcp://0.0.0.0:26659 --mempool.sort_tx_by_gp --rocksdb.opts max_open_files=1024 --debug-api=true --pruning=nothing --fast-query=false