首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >如何创建一个有资金的帐户来使用本地的接近码头容器进行开发

如何创建一个有资金的帐户来使用本地的接近码头容器进行开发
EN

Stack Overflow用户
提问于 2022-08-13 03:07:58
回答 1查看 50关注 0票数 0

我对这整件事有点陌生。Am成功运行nearup (https://github.com/near/nearup)(码头版本)。

使用NEAR的near-cli,甚至指定localnet,仍然可以在其testnet上创建钱包和帐户。似乎无法让near-cli连接到我的码头容器。

我也尝试过构建/使用near-wallet (https://github.com/near/near-wallet),但遇到了许多问题(不记得细节,但我认为是构建问题)。

是否有一种方法可以使用near-api-js来创建与我的localnet一起使用的资金帐户?

文档看起来不太好,到处都是,有些似乎过时了。

任何帮助都很感激。

最新情况: 2022-08-13:

我按照指示观看建议的视频以及https://docs.near.org/develop/testing/kurtosis-localnet

类似于我之前尝试过峰度时的问题。

以下是所有的具体步骤和结果:

代码语言:javascript
复制
# we are in the near-kurtosis-module repository directory
# -L follow redirects
# -o output response of url to file
# --url the URL we're going to request from
curl -L \
-o ~/launch-local-near-cluster.sh \
--url https://raw.githubusercontent.com/kurtosis-tech/near-kurtosis-module/master/launch-local-near-cluster.sh

bash ~/launch-local-near-cluster.sh

WARN[2022-08-13T16:54:19-04:00] You are running an old version of the Kurtosis CLI; we suggest you to update it to the latest version, '0.23.2'
WARN[2022-08-13T16:54:19-04:00] You can manually upgrade the CLI tool following these instructions: + errors so we go to URL below to update the CLI https://docs.kurtosistech.com/installation.html#upgrading-kurtosis-cli

(加上一堆错误)所以我转到上面建议的链接,然后按照更多的说明:

代码语言:javascript
复制
echo "deb [trusted=yes] https://apt.fury.io/kurtosis-tech/ /" | sudo tee /etc/apt/sources.list.d/kurtosis.list

sudo apt update && sudo apt -y upgrade

sudo apt install kurtosis-cli

Reading package lists... Done
Building dependency tree
Reading state information... Done
kurtosis-cli is already the newest version (0.23.2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

我再试一次:

代码语言:javascript
复制
bash ~/launch-local-near-cluster.sh

Error: An error occurred running the pre-validation-and-run function
 --- at /home/circleci/project/cli/command_framework/lowlevel/lowlevel_kurtosis_command.go:274 (LowlevelKurtosisCommand.MustGetCobraCommand.func2) ---
Caused by: An error occurred getting an engine manager.
 --- at /home/circleci/project/cli/command_framework/highlevel/engine_consuming_kurtosis_command/engine_consuming_kurtosis_command.go:107 (EngineConsumingKurtosisCommand.getSetupFunc.func1) ---
Caused by: An error occurred getting the Kurtosis config
 --- at /home/circleci/project/cli/helpers/engine_manager/engine_manager.go:84 (NewEngineManager) ---
Caused by: An error occurred getting or initializing the Kurtosis config
 --- at /home/circleci/project/cli/helpers/engine_manager/engine_manager.go:366 (getKurtosisConfig) ---
Caused by: An error occurred executing init interactive config
 --- at /home/circleci/project/cli/kurtosis_config/kurtosis_config_provider.go:36 (KurtosisConfigProvider.GetOrInitializeConfig) ---
Caused by: The Kurtosis config isn't initialized so we'd initialize it interactively here except STDOUT isn't a terminal (indicating that this is probably running in CI) which means that you'll need to manually initialize the config using the instructions here: https://docs.kurtosistech.com/running-in-ci.html
 --- at /home/circleci/project/cli/kurtosis_config/kurtosis_config_initializer.go:26 (initInteractiveConfig) ---
Error: An error occurred executing module 'kurtosistech/near-kurtosis-module'
EN

回答 1

Stack Overflow用户

发布于 2022-08-13 05:08:24

您应该在本地开发中使用峰度,其文档可以在这里找到:https://docs.near.org/develop/testing/kurtosis-localnet

短视频走入低谷:https://www.loom.com/share/8a1b8e2138334a81a380f5d523fba27e

当您运行时,您将得到一个键盘到test.near帐户,该帐户有大量的接近您的可用。

值得注意的是,为了在附近开始构建和探索智能合同,您不必运行localnet。您可以在testnet上构建和部署合同。要了解有关智能合同开发的更多信息,可以查看https://docs.near.org/develop/quickstart-guide

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/73341313

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档