XRPL签名交易,卡在从秘密号码获取XRPL钱包



我有6位数字8行秘密数字。如何使用xrpl转换/使用我的密码。Wallet.fromMnemonic或xrpl。Wallet.fromSecret方法?

const xrpl = require("xrpl")
const PUBLIC_SERVER = "wss://xrplcluster.com/"
const client = new xrpl.Client(PUBLIC_SERVER)
await client.connect()
const wallet = xrpl.Wallet.fromMnemonic('A:112121 B:222222 C:333333 D:444444 E:555555 F:656565 G:156545 H:454545')
console.log(wallet) 
......

xrpl.js不支持XUMM风格"秘密数字";目前。如果你想在xrpl.js中使用你的秘密号码,你需要将它们转换为家族种子格式。

最新更新