SKALE is Ethereum Dapps to run high speed, Low cost smart contract layer.

I wish to connect users to the sidechain SKALE,from their browser. automatically without the manual change as necessary for metamask
with token attribuated in function of service utilisation

  • With Web3js you may connect to whatever node you want bypassing Web3 API implementation provided by the browser. Apr 18, 2019 at 11:38
  • Is this can be implemented with normal web3js api
    – Benson K B
    Apr 18, 2019 at 13:16

2 Answers 2


You need to use WEb3js but bypass Web3 API provided by browser like this:

const web3 = new Web3(/* Web3.givenProvider || */ 'ws://localhost:8546', null, {});

See Web3js documentation for details.

  • Sure, but note that you'll lose the ability to sign transactions through Metamask by doing this.
    – natewelch_
    Apr 18, 2019 at 14:19
  • Though it will be still possible to implement MEW-style client-side transaction signing. Apr 18, 2019 at 14:24
  • I assumed OP wanted to use Metamask due to their mention, but I guess they didn't necessarily say that. I would only advise storing private keys in browser for accounts with very small value.
    – natewelch_
    Apr 18, 2019 at 14:36

A solution is to create a new private key and sign it with MetaMask and then register the new address with the contract in mainnet. This will create a relationship between the main account and the new private key.

Now every interaction with the sidechain can be done with the new private key, without having to sign every transaction with MetaMask.

If you store the new key in local storage then the next session you do not have to resign it with MetaMask reducing the interaction to a single registration the first time.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.