worldwide-asset-exchange / waxjs

Javascript API for integration with the WAX Cloud Wallet.
MIT License
126 stars 103 forks source link

WCW-3406: constructor params and function to switch chain #205

Closed sonnguyenwax closed 3 months ago

thien-hoang-opskins commented 4 months ago

@sonnguyenwax , cc: @porkchop I wonder if we still need an extra method to switch chain on demand so that Dapp wont have to reconstruct?

sonnguyenwax commented 4 months ago

@sonnguyenwax , cc: @porkchop I wonder if we still need an extra method to switch chain on demand so that Dapp wont have to reconstruct?

@thien-hoang-opskins setupChain function can be call to switch chain, as it's reusable for that case

thien-hoang-opskins commented 4 months ago

setupChain function can be call to switch chain, as it's reusable for that case

@sonnguyenwax but Dapp have to reinitialize this.signingApi in that case as well beause this.rpc would have been updated

porkchop commented 4 months ago

Let's add a section Switching Blockchains and add the new configuration variables to the usage explanation with descriptions in the Readme. The switching blockchains section should also show how to get the chains that are available for switching to