Set up a development environment and deploy a smart contract to the Plasma testnet.
.gitignore
file for this quickstart.
hardhat.config.js
for Plasma testnet:
https://testnet-rpc.plasma.to
9746
XPL
https://testnet.plasmascan.to
.env
file in your project root:
.env
to your .gitignore
file.contracts/SimpleStorage.sol
:
test/SimpleStorage.js
:
scripts
directory:
scripts/deploy.js
:
deployed to:
address. This is the address of your contract on the Plasma testnet.
Issue | Resolution |
---|---|
Gas estimation errors | Ensure wallet has sufficient XPL |
Network connection errors | Verify RPC URL and testnet availability |
Private key errors | Ensure .env is configured correctly (no 0x prefix if required) |
Explorer delay | Wait a few minutes; explorer may be syncing |