2

I am using web3.py on my private/test network though:

from web3 import Web3, HTTPProvider
w3 = Web3(HTTPProvider("https://private-ip:8545"))

For making connection to my private network i use this method and after performing all the oprations and testing i want to connect my API to main ethereum network.

So, my question is that how can i connect to main ethereum network ?

TylerH
  • 20,799
  • 66
  • 75
  • 101
Abdullah Ahmed Ghaznavi
  • 1,978
  • 3
  • 17
  • 27

1 Answers1

2

Just use the URL of a node in the main Ethereum network. That could be one you run or one someone else makes available publicly.

Infura runs one such public node.

user94559
  • 59,196
  • 6
  • 103
  • 103