Skip to content

Issues - RPC not working #1

@hoangnhatfe

Description

@hoangnhatfe

Hi,

I have done step by step with your note in Readme. I synced Heimdall and Bor. I also allowed ports 8146, 8145, 8546, 8545 on the firewall but when I use the RPC on web3.js it does not work. Could you help me?
# curl -s http://localhost:26657/status { "jsonrpc": "2.0", "id": "", "result": { "node_info": { "protocol_version": { "p2p": "7", "block": "10", "app": "0" }, "id": "4837a4a15b27235e022fd7cf1caadda6b30ee9ce", "listen_addr": "tcp://0.0.0.0:26656", "network": "heimdall-137", "version": "0.32.7", "channels": "4020212223303800", "moniker": "MyNodeName", "other": { "tx_index": "on", "rpc_address": "tcp://0.0.0.0:26657" } }, "sync_info": { "latest_block_hash": "65DFF49109D1BB5FA305CA5FD33D56301534C637AF0DFE0E47E0C5244842974C", "latest_app_hash": "92D2A97942E0A95B1B46100B729D6329D40C15FBE84698618BD9452CFD0587F2", "latest_block_height": "6202862", "latest_block_time": "2021-08-22T13:59:01.753206445Z", "catching_up": false }, "validator_info": { "address": "C697EC4D0C6F51F143E9C013490367DC0F057D92", "pub_key": { "type": "tendermint/PubKeySecp256k1", "value": "BDuXx4YslaTm+T1e+PVsmdM5z2w3MkxT7e3LbHKSRzf8Q5cYzLz3N4wTvMHv8EbconxwWfTEPm6PRBUQl52E2aY=" }, "voting_power": "0" } } }

# docker exec bor bor attach --exec eth.syncing false

`# sudo geth attach /data/polygon/bor/geth.ipc
Welcome to the Geth JavaScript console!

instance: bor/v1.10.3-stable-d33ce83c/linux-amd64/go1.16.5
at block: 18270854 (Sun Aug 22 2021 15:54:24 GMT+0200 (CEST))
datadir: /root/.ethereum
modules: admin:1.0 bor:1.0 debug:1.0 eth:1.0 miner:1.0 net:1.0 personal:1.0 rpc:1.0 txpool:1.0 web3:1.0
`
Thanks and regards,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions