糖果机 - 无法上传文件

发布于 2025-01-17 14:54:54 字数 363 浏览 0 评论 0原文

我正在遵循一个教程,并且正在逐步介绍元数据和文件。教程告诉我使用以下命令:

npx ts-node js/packages/cli/src/candy-machine-v2-cli.ts upload ./assets --env devnet --keypair \<PATH\>

当我用路径运行此命令时,它说:

错误:必需的选项'-cp, - config-path&lt; string&gt;'未指定

,它说不存在Keypair。

我很困惑如何通过此步骤,有人可以帮我吗?

谢谢,

我不太确定该怎么办。

I am following a tutorial and am on the step where we are uplaoding the metadata and files. The tutorial tells me to use the the following command:

npx ts-node js/packages/cli/src/candy-machine-v2-cli.ts upload ./assets --env devnet --keypair \<PATH\>

When I run this command with my path, it says :

error: required option '-cp, --config-path <string>' not specified

When I type what I think is the config path, it says the keypair does not exist.

I am quite confused how to pass this step, could someone please help me?

Thanks

I am not quite sure what to do.

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

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

发布评论

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

评论(1

十秒萌定你 2025-01-24 14:54:54

您的 config.json 文件必须是这样的。如果您仔细阅读 metaplex 文档,它们会指导您完成所有步骤必须从头开始遵循。

{
        "price": 1,
        "number": 3333,
        "gatekeeper": null,
        "solTreasuryAccount": "<Your Solana Treasury Wallet Address",
        "splTokenAccount": null,
        "splToken": null,
        "goLiveDate": "1 April 2022 20:00:00 GMT",
        "endSettings": null,
        "whitelistMintSettings": {
            "mode" : { "neverBurn" : true },
            "mint" : "<Solana Address of Minter of the whitelist tokens",
            "presale" : true,
            "discountPrice" : null
        },
        "hiddenSettings": null,
        "storage": "arweave-sol",
        "ipfsInfuraProjectId": null,
        "ipfsInfuraSecret": null,
        "nftStorageKey": null,
        "awsS3Bucket": null,
        "noRetainAuthority": false,
        "noMutable": false
    }

Your config.json file have to be something like this. If you go through the metaplex documentation, they guide you through all the steps you have to follow from the beginning.

{
        "price": 1,
        "number": 3333,
        "gatekeeper": null,
        "solTreasuryAccount": "<Your Solana Treasury Wallet Address",
        "splTokenAccount": null,
        "splToken": null,
        "goLiveDate": "1 April 2022 20:00:00 GMT",
        "endSettings": null,
        "whitelistMintSettings": {
            "mode" : { "neverBurn" : true },
            "mint" : "<Solana Address of Minter of the whitelist tokens",
            "presale" : true,
            "discountPrice" : null
        },
        "hiddenSettings": null,
        "storage": "arweave-sol",
        "ipfsInfuraProjectId": null,
        "ipfsInfuraSecret": null,
        "nftStorageKey": null,
        "awsS3Bucket": null,
        "noRetainAuthority": false,
        "noMutable": false
    }
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文