0

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

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

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

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

它不断重试,但最后它回复错误:加载帐户失败:

我可以看到 API 调用是 https://horizo​​n-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.”
}

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

4

0 回答 0