I started the rest server with below options.
(base) greenblue@greenblue-ubuntu:~$ gaiacli rest-server --chain-id=pcoin-chain --laddr=tcp://localhost:1317 --node tcp://localhost:26657 --trust-node=true
I[2020-04-20|14:50:10.430] Starting application REST service (chain-id: "pcoin-chain")... module=rest-server
I[2020-04-20|14:50:10.430] Starting RPC HTTP server on 127.0.0.1:1317 module=rest-server
But the server does not respond. No error message just waitting forever.
Ports
(base) greenblue@greenblue-ubuntu:~$ netstat -natp | grep 266
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp 0 0 127.0.0.1:26657 0.0.0.0:* LISTEN -
tcp6 0 0 :::26656 :::* LISTEN -
(base) greenblue@greenblue-ubuntu:~$ netstat -natp | grep 1317
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp 0 0 127.0.0.1:1317 0.0.0.0:* LISTEN 25279/gaiacli
Status
(base) greenblue@greenblue-ubuntu:~$ gaiacli status
{"node_info":{"protocol_version":{"p2p":"7","block":"10","app":"0"},"id":"93c4a0046903bb18e38d9658d2cdd1747a9cae0d","listen_addr":"tcp://0.0.0.0:26656","network":"pcoin-chain","version":"0.32.9","channels":"4020212223303800","moniker":"pcoin","other":{"tx_index":"on","rpc_address":"tcp://127.0.0.1:26657"}},"sync_info":{"latest_block_hash":"22FDD5600FCBE9AEBA98E3C3B52F30CE9CDB538366165C917D507FF95ABD06B3","latest_app_hash":"840069499AB64B222B7F1BD6032A50F4F0C5801592AC413AD81EAFDABF6B4B65","latest_block_height":"8515","latest_block_time":"2020-04-20T12:52:03.539126551Z","catching_up":false},"validator_info":{"address":"206EC0FE06975FDCAD2F2EE317E2B9C50C7BCC10","pub_key":{"type":"tendermint/PubKeyEd25519","value":"vLYkOoAVIp8PU94VsDCYRVQtqc5difNwXizHk5Aajpo="},"voting_power":"100"}}
Version
(base) greenblue@greenblue-ubuntu:~$ gaiacli version
2.0.7
Query
(base) greenblue@greenblue-ubuntu:~$ curl http://127.0.0.1:1317/stake/validators
And I’m running gaiad, gaiacli on Ubuntu.