Truffle Deploy Error: connect ECONNREFUSED 103.88.170.170:8545
2 min readJul 14, 2021
Case (BakerySwap Fork https://github.com/BakeryProject)
E:\BakerySwap\ugiswapcore> truffle deploy --network binanceTestnetCompiling your contracts...
===========================
> Everything is up to date, there is nothing to compile.Error: PollingBlockTracker - encountered an error while attempting to update latest block:
Error: connect ECONNREFUSED 103.88.170.170:8545
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1148:16)
at PollingBlockTracker._performSync (E:\BakerySwap\ugiswapcore\node_modules\eth-block-tracker\src\polling.js:51:24)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
UnhandledRejections detected
Promise {
<rejected> {
code: -32603,
message: 'connect ECONNREFUSED 103.88.170.170:8545',
data: { originalError: [Object] },
stack: 'Error: connect ECONNREFUSED 103.88.170.170:8545\n' +
' at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1148:16)'
}
} {
code: -32603,
message: 'connect ECONNREFUSED 103.88.170.170:8545',
originalError: {
errno: -4078,
code: 'ECONNREFUSED',
syscall: 'connect',
address: '103.88.170.170',
port: 8545
}
},
stack: 'Error: connect ECONNREFUSED 103.88.170.170:8545\n' +
' at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1148:16)'
}
Try to install https://1.1.1.1 and running the app, then Deploy truffle.
truffle deploy --network binanceTestnet
Solved.
PS E:\BakerySwap\ugiswapcore> truffle deploy --network binanceTestnetCompiling your contracts...
===========================
> Everything is up to date, there is nothing to compile.Starting migrations...
======================
> Network name: 'binanceTestnet'
> Network id: 97
> Block gas limit: 30000000 (0x1c9c380)1_initial_migration.js
======================Deploying 'Migrations'
----------------------
> transaction hash: 0xbe30421c2ac7b0ddd8f28beb3e429a59a49a2e0e0b************************
> Blocks: 4 Seconds: 13
> contract address: *******************02DcbEEE2c54cD51fd92ea6
> block number: 10588698
> block timestamp: 1626279731
> account: *******************f8Bf01Cc77498EcEBc73C43
> balance: 1.99808057
> gas used: 191943 (0x2edc7)
> gas price: 10 gwei
> value sent: 0 ETH
> total cost: 0.00191943 ETH> Saving migration to chain.
> Saving artifacts
-------------------------------------
> Total cost: 0.00191943 ETHSummary
=======
> Total deployments: 1
> Final cost: 0.00191943 ETH
💎 UNDERGROUND GEMS INDONESIA 💎
🔸 Supported Group
https://t.me/UndergroundGemsIndonesia🔸 UGI Telegram
https://t.me/UGI_Defi
https://t.me/UGI_NFT
https://t.me/UGI_Mining
https://t.me/UGI_Market
https://t.me/UGI_Media