Skip to content

Get Network info

wirfeon edited this page Feb 19, 2021 · 1 revision

Get the current network type of the chain

from xpxchain import models
from xpxchain import client

ENDPOINT = '//localhost:3000'

with client.NetworkHTTP(ENDPOINT) as http:
    network_type = http.get_network_type()
    print(network_type)
Clone this wiki locally