A "smart contract" is simply a program that runs on the Ethereum blockchain. It's a collection of code (its functions) and data (its state) that resides at a specific address on the Ethereum blockchain.
Smart contracts are a type of Ethereum account. This means they have a balance and they can send transactions over the network. However they're not controlled by a user, instead they are deployed to the network and run as programmed. User accounts can then interact with a smart contract by submitting transactions that execute a function defined on the smart contract. Smart contracts can define rules, like a regular contract, and automatically enforce them via the code. Smart contracts can not be deleted by default, and interactions with them are irreversible.
Binance Smart Chain based on Ethereum, so it works similar to Ethereum's EVM
In this video, we cover: configuring MetaMask for BSC, getting test BNB, deploying a contract, interacting with it, and viewing the transaction with the explorer.
Links used in video:
RPC urls: https://binancex.dev/blog.html?p=making-the-move-from-ethereum-to-bsc
Faucet: https://testnet.binance.org/faucet-smart
Remix: http://remix.ethereum.org/#optimize=true&evmVersion=null&appVersion=0.7.7
Testnet explorer: https://explorer.binance.org/smart-testnet
Mainnet explorer: https://bscscan.com/
Helpful documentation:
Solidity documentation: https://solidity.readthedocs.io/en/develop/index.html
Binance Smart Chain documentation: https://docs.binance.org/
Web3.js documentation: https://web3js.readthedocs.io/en/v1.3.0/index.html
Timestamps:
0:35 - 2:05 Configuring Metamask
2:10 - 2:54 Getting testnet BNB from the faucet
2:58 - 6:07 Deploying a contract from Remix
6:20 - 7:26 Inspecting the contract in the explorer
7:35 - 8:44 Transacting with the contract and inspecting in real-time
Subscribe: Binance X