Solidity is a programming language used to create smart contracts that can be deployed on the Ethereum blockchain. It allows for the implementation of things like blind auctions, multi-signature wallets, voting, and crowdfunding applications. Solidity contracts run on the Ethereum Virtual Machine (EVM), which acts as a decentralized worldwide computer that can execute code for millions of projects. To start a first program in Solidity, a developer would write code using the .sol file extension, then deploy their smart contract to the EVM once certain triggering conditions are met on the blockchain.
1. Experiment-1
Q1.What do you understand by solidity?
Ans1. Solidity is a statically-type language tailored
for the implementation of smart contracts. It
leverages the object-oriented or contract-oriented
foundation for building and deploying smart
contracts.
Solidity is a suitable programming language for
the creation of contracts that deal with blind
auctions, multi-signature wallets, voting,
crowdfunding, and other applications.
Solidity offers comprehensive support for
complicated approaches in user-defined
programming alongside inheritance and libraries.
2. Q2. How solidity supports Blockchain Technology?
Ans2. Solidity is a programming language that is used
throughout the planning and execution of smart contracts.
The syntax is very similar to JavaScript and Python, and it runs
on a platform called Ethereum Virtual Machine. Every single
blockchain program and smart contract is executed in the
Ethereum Virtual Machine, and it was developed back in 2014
by Gavin Wood. Solidity uses the .sol extension to write its
programs, and it's a preferred language over JavaScript or
Python.
Q3. Define EVM.
Ans3. Ethereum Virtual Machine (EVM) is a computation
3. engine which acts like a decentralized computer that has
millions of executable projects.It acts as the virtual
machine which is the bedrock of Ethereum’s entire
operating structure. It is considered to be the part of the
Ethereum that runs execution and smart contract
deployment.
The role of the EVM is to deploy a number of extra
functionalities to the Blockchain to ensure users face
limited issues on the distributed ledger. Every Ethereum
node runs on the EVM to maintain consensus across the
blockchain.Ethereum facilitates something called smart
contracts, a piece of code that is running on Ethereum.
Q4. What is Smart Contract?
4. Smart contracts are simply programs stored on a blockchain
that run when predetermined conditions are met. They
typically are used to automate the execution of an agreement
so that all participants can be immediately certain of the
outcome, without any intermediary’s involvement or time
loss. They can also automate a workflow, triggering the next
action when conditions are met.
Smart contracts work by following simple “if/when…then…”
statements that are written into code on a blockchain. A
network of computers executes the actions when
predetermined conditions have been met and verified.
Q5. How you will start your 1st program in solidity?