Faucet
It is highly recommended to test your contract on the following testnets after passing local tests.
It ensures that a contract can be successfully deployed and invoked as expected on the blockchain.
Before you deploy and call a contract, you need to have a funded address:
- Create a new project. Skip this step if you have already created a project:
npx @scrypt-inc/cli-btc project demo
cd demo
- Generate a private key with the following command executed from the root of the project:
npm install
npm run genprivkey
The command generates a private key and stores it in a .env
file in the project's root directory.
It also outputs the Bitcoin address corresponding to the private key.
Fund the private key's address with some testnet coins. You can use these faucets to receive testnet coins.