StarkNet - is a Layer2 ZK-Rollup solution for Ethereum scaling.
The project has raised $282 millions investments.
Investors include: Coinbase Ventures, Paradigm, Sequoia, Polychain, Alameda Resaerch, Intel and even Vitaly Buterin himself.
Not so long ago Braavos Wallet team published an article where referring to the last year's information from StarkNet highlighted points for which they can give us Airdrop.
The project tokenomics allocated 12% of tokens to grants for research and work on the development, testing, deployment and support of the StarkNet protocol.
Rent a server, for example on Contabo or any other platform. The minimum characteristics for the deployment of the contract: 1 CPU, 1 GB RAM and 15 GB SSD.
When you pay for the server, you need to enter the password, with which you will connect to the server. After the purchase, you will receive an email with your server data.
In order to connect to a server on Windows, you will need PuTTY:
In the "Host Name" enter the IP of your server and click "Open";
In the window that comes up, type in the command: root
;
Press "Enter" and type in your server password, then "Enter”.
On MacOS, simply run the Terminal program:
Go to the server with the command: ssh root@IP_ADDRESS
, change IP_ADDRESS to the server IP;
Next, enter "yes", press "Enter" and insert the password from the server (the entered password will be hidden by an icon with a key). Press "Enter".
1. In this article we will take all the codes from the official resources. The action takes place on the Mainnet. Then just follow the commands in order.
Installing utilities:
sudo apt-get install curl
sudo apt update
Install protostar:
curl -L https://raw.githubusercontent.com/software-mansion/protostar/master/install.sh | bash
source /root/.bashrc
protostar init
2. After the last command the line Project directory Name appears, in it we think up and write any name we want.
Example: StarkVik
Next, we enter this directory:
cd <title you just wrote>
Example: cd StarkVik
3. Next, create a file in our folder with the command:
protostar build
Create a file with your Wallet key:
echo <insert private key from wallet> > .env
Example: echo 178057736785675758657687965542375713424930337856387745769818592 > .env
4. Next, we enter in the command is the address of his purse:
protostar declare ./build/main.json --account-address <your wallet address> --max-fee auto --private-key-path ./.env --network mainnet
Example: protostar declare ./build/main.json - account-address 0x01a25b2e05db91f07bc7a713dcd96379f722dc9a128c315d08f4eb3fec8f4a95 - max-fee auto - private-key-path ./.env - network mainnet
5. After that, if everything is done correctly, the transactions will appear:
6. Copy the Transaction Hash and paste it into StarkScan, waiting for the transaction to go to the Accepted on L2 status.
7. Next we deploy the smart contract:
To do this, type in the Class Hash command (which we took from our transaction, it will be the same for everyone in this version) and again specify the address of our wallet.
protostar deploy <class hash> --account-address <your wallet address> --max-fee auto --private-key-path ./.env --network mainnet
Example: protostar deploy 0x523be5e7088bf4226d4fdb28c6a19d4d3b93118f7263849a6d8912bf503d672 - account-address 0x0404CF507CFd1291baD33e86FB71b88f82c7002229963310955FD4625ECb8C68 - max-fee auto - private-key-path ./.env - network mainnet
8. Transactions appear again, copy the Contract address and paste it into StarkScan.
The contract does not appear immediately, since this is StarkNet, we wait about 5 minutes or more. Then we can put some ETH on our contract by just sending ETH to the contract address from our wallet.
9. Now we are waiting for our contract to be verified in the actual depletion transaction:
9. Go to Read/Write Contract, connect the wallet - press Write and interact with the contract, signing transactions.
If you want to receive more guides, testnets, and Alpha, follow me on Twitter: