bnb-chain / go-sdk

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feature Request] - add support to create wallet for testnet

jaybxyz opened this issue · comments

commented

There is no supported function to change network type for testnet.

Add support to create wallet for testnet.

commented

I figure this out by the below code base

keyManager, _ := keys.NewMnemonicKeyManager("mnemonic")
client, _ := sdk.NewDexClient(Testnet, types.TestNetwork, keyManager)

fmt.Println(keyManager.GetAddr().String())