Mainnet RPC Configure
There are three RPC addresses for the mainnet, all with a chain ID of 199. You can modify the RPC configuration by changing the RPC addresses in the Config file. Your go-btfs
version must be greater than or equal to v2.1.1.
Three RPC addresses:
https://bttc.trongrid.io/ (*Recommend)
https://rpc.bt.io/
https://rpc.bittorrentchain.io/
1.Enter into the BTFS_PATH directory, cat config file.
$ cd ~/.btfs
$ cat config
{
"ChainInfo": {
"ChainId": 199,
"CurrentFactory": "0x9AF4bEc1A30BeC47756Ecef4cf43B91592121bC9",
"PriceOracleAddress": "0x0064d80C42b6E2cE3aC92eaD445B3D83C510c7AA",
"Endpoint": "https://rpc.bt.io/"
},
}
2.Modify Endpoint to a new one.
{
"ChainInfo": {
"Endpoint": "https://rpc.bittorrentchain.io/"
},
}
3.Restart go-btfs
# stop
btfs shutdown
# restart
btfs daemon
Updated 16 days ago