codenlighten/scrypt
0
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 2425 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 3031 