A guide to verifying your smart contracts on Quaiscan.
注意: このページはまだ日本語に翻訳されていません。以下は英語の原文です。
NodeJS | Javascript runtime environment. Use the LTS version. |
hardhat-example | A Hardhat project with sample contracts and deploy scripts for Quai Network. |
hardhat-deploy-metadata | A plugin for hardhat that uploads contract metadata to IPFS |
Quais.js | A JavaScript library for interacting with Quai Network. |
npx hardhat run scripts/deployERC20.js
which produces output similar to the following:
ipfs.qu.ai
with the following hash: QmPCoBa1bCFmRoTD7GuexJqBAy7pqg8J4b8B48q5DgxUEV
Your hash will be different. Make sure you capture it as we’ll need it in the next step.
metadata
folder, but isn’t formatted properly for Quaiscan.
We’ll need to download the proper format from IPFS to upload into Quaiscan and verify our contract.
Run the following command using your IPFS hash when you deployed your contract to download the metadata and save it as ipfsMeta.json
.
SPX-License-Identifier
in your contract’s code.
Select Solidity (Standard JSON input) as the Verification Method and the correct version of the Solidity Compiler used to compile your contract.
Finally upload ipfsMeta.json
and click Verify & Publish to verify your smart contract.