CoolFace
Apppublic

codenlighten/scrypt

sourceHugging Faceopenrailupdated 3y agoView on Hugging Face
0likes
faucet.md31 linesDownload Raw Back to root
1---2sidebar_position: 43---4 5# Faucet6 7It is highly recommended to test your contract on the [testnet](https://test.whatsonchain.com/) after passing local tests. It ensures that a contract can be successfully deployed and invoked as expected on the blockchain.8 9Before deploy and call a contract, you need to have a funded address:10 111. Generate a private key with the following command, after creating a project:12 13```sh14scrypt project demo15cd demo16npm install17npm run genprivkey18```19 20The command will generate a private key and store it in a `.env` file in our project's root directory. It also outputs the [Bitcoin address](https://wiki.bitcoinsv.io/index.php/Bitcoin_address) corresponding to our private key.21 222. Fund the private key's address with some testnet coins. You could use this [faucet](https://scrypt.io/faucet) to receive test coins.23 24![faucet](../../static/img/faucet.gif)25 26### Use the Sensilet Wallet27 28Alternatively, if you have already installed [Sensilet](https://sensilet.com/), you can extract and use its private key on testnet as follows.29 30![](../../static/img/extract-sensilet-private-key.gif)31