# Get started with Casper
## 1. Create and deploy a simple, smart contract with cargo casper and cargo test

Starting Node

Deploy Contract

Get deploy contract

## 2. Complete one of the existing tutorials for writing smart contracts
**A Counter Contract Tutorial**

"account_hash": "account-hash-0492cbc0043de33ab620b6e206c893db68d3009f50e4600cb83236ae2c2c4436"
secret key : /root/casper-node/utils/nctl/assets/net-1/faucet/secret_key.pem

"state_root_hash": "e61922bb37c6b45d9744086e96d16377bea47bde1fc67926d2aac07763685dd0"

Make prepare

Make test

Put the contract on the chain.

(env) root@alexander:~/counter# casper-client put-deploy --node-address http://localhost:11101 --chain-name casper-net-1 --secret-key /root/casper-node/utils/nctl/assets/net-1/faucet/secret_key.pem --payment-amount 5000000000000 --session-path ./target/wasm32-unknown-unknown/release/counter-define.wasm
{
"id": -232548569025400700,
"jsonrpc": "2.0",
"result": {
"api_version": "1.0.0",
"deploy_hash": "bbaff5aebdc5e6ce726c5d35d79c10c18c260865db5b8941034f8c93fe50d36a"
}
}
Verify that the deploy successfully took place.

Get the NEW state-root-hash:

Get the network state:

Increment the Counter

(env) root@alexander:~/counter# casper-client put-deploy --node-address http://localhost:11101 --chain-name casper-net-1 --secret-key /root/casper-node/utils/nctl/assets/net-1/faucet/secret_key.pem --payment-amount 5000000000000 --session-name "counter" --session-entry-point "counter_inc"
View the Updated Network State Again
Get the NEW state-root-hash:

Get the network state, specifically for the count variable this time:

## 3. Demonstrate key management concepts by modifying the client in the Multi-Sig tutorial to address one of the additional scenarios
Compile the smart contract and create the WASM file:

Setting up the Client

Testing the Client

**Scenario 2: deploying with special keys**
Add the scenario 2 script to package.json

Result:

## 4. Learn to transfer tokens to an account on the Casper Testnet.
Create an account:

Get faucet to this account:

Transfer to the second account:

## 5. Learn to Delegate and Undelegate on the Casper Testnet. Check out these instructions.
Delegate

Undelegate

-----The end-----