当我在初始化solana-test-validator初始化程序时部署程序时,哪个帐户在技术上部署合同?

发布于 2025-02-12 06:51:34 字数 248 浏览 0 评论 0原文

它是接收创世纪代币的帐户吗?还是另一个地址?

我在启动验证器时要部署合同:

solana-test-validator -r --mint E2F3fsS1HpsLb2VpEgsA5ztfo83CWFWW4jWpC6FvJ6qR --bpf-program J2bPahVXAHqLvc3TUKeJMxfhKWymh4C7mM1PZm4FfpKU ../program/target/deploy/program.so

Is it the account that receives the genesis tokens? Or is it another address?

I'm deploying the contract like so when starting the validator:

solana-test-validator -r --mint E2F3fsS1HpsLb2VpEgsA5ztfo83CWFWW4jWpC6FvJ6qR --bpf-program J2bPahVXAHqLvc3TUKeJMxfhKWymh4C7mM1PZm4FfpKU ../program/target/deploy/program.so

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

情绪 2025-02-19 06:51:38

通常是您的配置中的一个。

检查配置

solana config get

您可以使用Keypair路径和使用

solana address --keypair <path to keypair in config>

:或最简单是

solana address 

您配置中的一个

Usually it's the one in your config.

You may check the config with

solana config get

Look for the keypair path and use:

solana address --keypair <path to keypair in config>

Or easiest is

solana address 

It's almost always the one in your config

灰色世界里的红玫瑰 2025-02-19 06:51:38

答案实际上是“没有帐户”!通过- BPF-Program是链上的Genesis帐户的一部分,因此没有进行实际部署。

The answer is actually "no account"! The program accounts through --bpf-program are part of the genesis accounts on the chain, so there's no actual deployment performed.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文