使用kin.js创建钱包时出错

时间:2019-01-17 00:07:01

标签: typescript2.0 kin

尝试将kin.js嵌入Ionic应用程序中,可以看到使用Keypairs和网络初始化创建密钥是可以的

const keys = Keypair.random();
const network = KinNetwork.Production;

但是,当我尝试创建钱包时

createWallet(network, keys)
.then(res => {
  console.log(res);
}, (err) => {
  console.log(err)
});

它会继续重试,但最后它会返回错误:无法加载帐户:

我可以看到API调用已完成 https://horizon-kin-ecosystem.kininfrastructure.com/accounts/GANWXV7IHG6YGWVIXJNB56OCBIYI7LYKD34CH556YCDOP5LRC2WDJLTC?c=0.32263221858689695 但响应中包含此对象

{
 “type”: “https://stellar.org/horizon-errors/not_found",
 “title”: “Resource Missing”,
 “status”: 404,
 “detail”: “The resource at the url requested was not found. This is usually occurs for one of two reasons: The url requested is not valid, or no data in our database could be found with the parameters provided.”
}

我应该在网络和密钥之外提供任何缺少的参数

0 个答案:

没有答案