scrypt / faucet.md
codenlighten's picture
Upload 34 files
711e9c6
metadata
sidebar_position: 4

Faucet

It is highly recommended to test your contract on the testnet after passing local tests. It ensures that a contract can be successfully deployed and invoked as expected on the blockchain.

Before deploy and call a contract, you need to have a funded address:

  1. Generate a private key with the following command, after creating a project:
scrypt project demo
cd demo
npm install
npm run genprivkey

The 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 corresponding to our private key.

  1. Fund the private key's address with some testnet coins. You could use this faucet to receive test coins.

faucet

Use the Sensilet Wallet

Alternatively, if you have already installed Sensilet, you can extract and use its private key on testnet as follows.