<reponame>meherett/pyxdc
#!/usr/bin/env python3

from web3 import (
    HTTPProvider, WebsocketProvider
)

# XinFin - XDC configuration
config: dict = {
    "hardened": 0x80000000,
    "extended_private_key": 0x0488ade4,
    "extended_public_key": 0x0488b21e,
    "providers": {
      "http": HTTPProvider(
          endpoint_uri="https://rpc.xinfin.network"
      ),
      "websocket": WebsocketProvider(
          endpoint_uri="wss://ws.xinfin.network"
      )
    },
    "endpoint": "https://explorer.xinfin.network",
    "timeout": 60,
    "gas_price": 250_000_000,  # 0.25 Gwei
    "units": {
        "XDC": 1,
        "Gwei": 1_000_000_000,
        "Wei": 1_000_000_000_000_000_000
    },
    "coin_type": 550,
    "path": "m/44'/550'/0'/0/0",
    "wif": 0x80,
    "headers": {
        "User-Agent": "PyXDC User-Agent v0.1.0",
        "Content-Type": "application/json; charset=utf-8",
        "Accept": "application/json"
    }
}

#!/usr/bin/env python3

from web3 import (
    HTTPProvider, WebsocketProvider
)

# XinFin - XDC configuration
config: dict = {
    "hardened": 0x80000000,
    "extended_private_key": 0x0488ade4,
    "extended_public_key": 0x0488b21e,
    "providers": {
      "http": HTTPProvider(
          endpoint_uri="https://rpc.xinfin.network"
      ),
      "websocket": WebsocketProvider(
          endpoint_uri="wss://ws.xinfin.network"
      )
    },
    "endpoint": "https://explorer.xinfin.network",
    "timeout": 60,
    "gas_price": 250_000_000,  # 0.25 Gwei
    "units": {
        "XDC": 1,
        "Gwei": 1_000_000_000,
        "Wei": 1_000_000_000_000_000_000
    },
    "coin_type": 550,
    "path": "m/44'/550'/0'/0/0",
    "wif": 0x80,
    "headers": {
        "User-Agent": "PyXDC User-Agent v0.1.0",
        "Content-Type": "application/json; charset=utf-8",
        "Accept": "application/json"
    }
}
#!/usr/bin/env python3 # XinFin - XDC configuration # 0.25 Gwei