Skip to content

add option to set a custom electrum server hostname and port #43

@mr-zwets

Description

@mr-zwets

Joemar posted the following feature request related to their CashScript workshops in university/schools

Would it be possible to have an option in playground to set a custom electrum server hostname and port?

In some schools here, the outgoing port 50006 is blocked

currently always the default provider is used for each network

  function changeNetwork(newNetwork: Network){
    const newprovider = newNetwork == "mocknet" ? 
      new MockNetworkProvider({ updateUtxoSet: false }) : new ElectrumNetworkProvider(newNetwork)
    setProvider(newprovider)
    localStorage.setItem("network", newNetwork)
  }

i'm not sure what port 50006 is used for on the electrumNetwork providers

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions