简体   繁体   English

在 Solana devnet Metaplex v1.2.0 candy-machine-ui 上铸造 NFT 时收到错误

[英]Receiving error when minting NFT on Solana devnet Metaplex v1.2.0 candy-machine-ui

Running metaplex version to 1.2.0, and using 3 basic NFT's (stored on Arweave).将 metaplex 版本运行到 1.2.0,并使用 3 个基本 NFT(存储在 Arweave 上)。 When minting on devnet I receive a Timeout Error.在 devnet 上铸造时,我收到超时错误。

I have tried minting on Metaplex's candy-machine-ui and a separate ui that uses javascript.我曾尝试在 Metaplex 的 candy-machine-ui 和使用 javascript 的单独 ui 上进行铸造。 Both receive same error.两者都收到相同的错误。 Timeout Error caught Error: Timed out awaiting confirmation on transaction at sendSignedTransaction Timeout Error caught Error: Timed out awaiting confirmation on transaction at sendSignedTransaction的交易确认

Tried downgrading metaplex to v1.1.1;尝试将 metaplex 降级到 v1.1.1; still, receive Timeout Error.仍然,收到超时错误。

Tried the following RPC Hosts, still received Timeout Error: -https://explorer-api.devnet.solana.com -https://metaplex.devnet.rpcpool.com/尝试了以下 RPC 主机,仍然收到超时错误:-https://explorer-api.devnet.solana.com -https://metaplex.devnet.rpcpool.com/

The metaplex.devnet.rpcpool (came stock with candy-machine-ui) actually gives me CORS errors, but regardless still no mint. metaplex.devnet.rpcpool(与 candy-machine-ui 一起库存)实际上给了我 CORS 错误,但无论如何仍然没有薄荷糖。

Network has always been set to devnet网络一直设置为devnet

Tried the follwoing Candy Machine IDs: 64EFEgBcLZHhdb3Tr6BzCRKX23ktS2Ltk42RC3z9CPLP & 492Mhv2Kx6Mp91D1xyrXgDA9ZKeeXSRg2rWuN6LA2Qg6尝试了以下糖果机 ID: 64EFEgBcLZHhdb3Tr6BzCRKX23ktS2Ltk42RC3z9CPLP & 492Mhv2Kx6Mp91D1xyrXgDA9ZKeeXSRg2rWuN6LA2Qg6

Tried these config.json :尝试了这些config.json

#candy-machine-ui

{
  "compilerOptions": {
    "target": "es5",
    "lib": [
      "dom",
      "dom.iterable",
      "esnext"
    ],
    "allowJs": true,
    "skipLibCheck": true,
    "esModuleInterop": true,
    "allowSyntheticDefaultImports": true,
    "strict": true,
    "forceConsistentCasingInFileNames": true,
    "noFallthroughCasesInSwitch": true,
    "module": "esnext",
    "moduleResolution": "node",
    "resolveJsonModule": true,
    "isolatedModules": true,
    "noEmit": true,
    "jsx": "react-jsx"
  },
  "include": [
    "src"
  ]
}
#custom ui

{
    "price": 0.1,
    "number": 3,
    "gatekeeper": null,
    "solTreasuryAccount": "MY_WALLET_ADDY",
    "splTokenAccount": null,
    "splToken": null,
    "goLiveDate": "25 Dec 2021 00:00:00 GMT",
    "endSettings": null,
    "whitelistMintSettings": null,
    "hiddenSettings": null,
    "storage": "arweave",
    "ipfsInfuraProjectId": null,
    "ipfsInfuraSecret": null,
    "awsS3Bucket": null,
    "noRetainAuthority": false,
    "noMutable": false
}

Thanks I take a look to both CandyMachineIds that you provided and was able to mint without any issue using the last version of candy-machine-ui with this the Candy Machine 64EFEgBcLZHhdb3Tr6BzCRKX23ktS2Ltk42RC3z9CPLP .谢谢,我查看了您提供的两个 CandyMachineId,并且能够使用 Candy Machine 64EFEgBcLZHhdb3Tr6BzCRKX23ktS2Ltk42RC3z9CPLP的最新版本的candy-machine-ui毫无问题地进行铸造。 Your second Candy Machine with ID 492Mhv2Kx6Mp91D1xyrXgDA9ZKeeXSRg2rWuN6LA2Qg6 has the goLiveDate setted at Sunday, December 25, 2022 12:00:00 AM so anyone will be able to mint that.您的第二台糖果机 ID 为492Mhv2Kx6Mp91D1xyrXgDA9ZKeeXSRg2rWuN6LA2Qg6的 goLiveDate 设置为Sunday, December 25, 2022 12:00:00 AM因此任何人都可以铸造它。

What did I do to be able to mint?我做了什么才能铸币?

  1. I git clone the latest version of candy-machine-ui into my laptop using git clone https://github.com/metaplex-foundation/metaplex.git我使用git clone https://github.com/metaplex-foundation/metaplex.git将最新版本的 candy-machine-ui 克隆到我的笔记本电脑中
  2. I move away the candy-machine-ui folder located at metaplex/js/packages/ to my Desktop.我将位于 metaplex/js/packages/ 的 candy-machine-ui 文件夹移到我的桌面。
  3. I open a terminal on the candy-machine-ui folder that I moved to my Desktop.我在移动到桌面的 candy-machine-ui 文件夹上打开一个终端。
  4. I run yarn inside this candy-machine-ui folder.我在这个 candy-machine-ui 文件夹中运行yarn
  5. I create a .env file inside candy-machine-ui folder with the following content我在 candy-machine-ui 文件夹中创建了一个 .env 文件,其中包含以下内容
REACT_APP_CANDY_MACHINE_ID=64EFEgBcLZHhdb3Tr6BzCRKX23ktS2Ltk42RC3z9CPLP

REACT_APP_SOLANA_NETWORK=devnet
REACT_APP_SOLANA_RPC_HOST=https://metaplex.devnet.rpcpool.com/
SKIP_PREFLIGHT_CHECK=true
  1. I ran yarn start and waited till the localhost appear.我运行yarn start并等到本地主机出现。
  2. I make sure to have 0.2 SOL in the wallet that I used to mint (0.1 mint price + fees)我确保在我用来铸币的钱包中有 0.2 SOL(0.1 铸币价格 + 费用)
  3. I clicked mint button and minted successfully without any other issue.我点击了铸币按钮并成功铸币,没有任何其他问题。

Hope this can hep you solve, any issue add a comment to this answer to keep me updated希望这可以帮助您解决任何问题,请对此答案添加评论以使我保持最新状态

EDIT: I used Opera browser with phantom wallet to mint from the UI编辑:我使用带有幻像钱包的 Opera 浏览器从 UI 铸造

That is caused beacuse of the slow RPC you're using.这是因为您使用的 RPC 速度较慢。

Follow one of these solutions:-遵循以下解决方案之一:-

  • Use a custom RPC from Quicknode使用来自Quicknode的自定义 RPC

  • For a free and fast one, use https://devnet.genesysgo.net/ (Devnet)如需免费且快速的,请使用https://devnet.genesysgo.net/ (Devnet)

    https://ssc-dao.genesysgo.net/ (Mainnet) https://ssc-dao.genesysgo.net/ (主网)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM