通过助记词,不能成功换取sei地址。返回的都是cosmos地址
Closed this issue · 2 comments
Deleted user commented
代码如下:
const mnemonic = "";//enter mnemonic
const addresses =[""];//enter addresses
const rpcEndpoint = "https://sei-testnet.nodejumper.io:443";
const wallet = await pkg.Secp256k1HdWallet.fromMnemonic(
mnemonic
);
const [account] = await wallet.getAccounts();
const client = await SigningStargateClient.connectWithSigner(rpcEndpoint, wallet);
console.log(account)
//account.address = cosmos1rxl4xpuau3cd8ly3x67wnmsaqdty5fvpaygz36
Deleted user commented
求大佬指教。
ericet commented
mnemonic下面加个
{
prefix:"sei"
}