1

I want to switch aptos wallet network such as Petra, But failed.

const arr = [ new PetraWallet()]
const wallet = new WalletCore(arr)
wallet.connect("Petra").then(() => {
 
   // How Can I switch network from Mainnet to Devnet ?
   // TODO ....
})

I want the sdk can switch Petra network, such as Matemask wallet_switchEthereumChain method.

莫海江
  • 11
  • 1

1 Answers1

0

The adapter doesn't support this functionality for the main reason that it requires a wallet support (i.e Petra and others need to support switch network request).

It does look like a valuable feature and we can explore adding it to the adapter!

Daniel Porteous
  • 5,536
  • 3
  • 25
  • 44
msavir
  • 11
  • 2