Solidity is the language to write the contracts. It is inspired from C++, JavaScript, and Python.

Units

wei is smalled unit (default)

gwei is level above - 1e9

eth is top unit - 1e18

Contract structure

# State variable declaration
# Errors
# Enums
# Events
# Functions
# Helper functions (Outside contract)

Extra:

https://chatgpt.com/share/e0b5cfab-accb-411b-afc5-390422c3e52f