What is Web3.js.? | Web3.js is a collection of libraries to interact with a local or remote ethereum node, using a HTTP or IPC connection. |
What does Web3 Provider do? | Web3 provider allows your application to communicate with an Ethereum or Blockchain Node. Providers take JSON-RPC requests and return the response. This is normally done by submitting the request to an HTTP or IPC (Inter-process communication) socket based server. |
What is a socket? | You can think about a socket as about... socket |
What is a network socket? | A network socket is a software structure within a network node of a computer network that serves as an endpoint for sending and receiving data across the network. |
What is Infura?
Infura is a Web3 backend (API provider) of Etherium Nodes. It could be used as a provider. | Infura is a Web3 backend (API provider) of Etherium Nodes. It could be used as a provider. |
What is MetaMask? | MetaMask is a software cryptocurrency wallet used to interact with the Ethereum blockchain. It allows users to access their Ethereum wallet through a browser extension or mobile app, which can then be used to interact with decentralized applications. |
What does Web3.js need to talk to the contract? | The address and ABI |
What is ABI? | ABI stands for Application Binary Interface. It is a representation of contracts' methods in JSON format that tells Web3.js how to format function calls in a way your contract will understand. |
What does cryptoZombies.methods.zombies(id).call() communicate with? | cryptoZombies.methods.zombies(id).call() communicates with Web3 provider node, because cryptoZombies is a variable where we store web3js.eth.Contract(cryptoZombiesABI, cryptoZombiesAddress) |
What does cryptoZombies.methods.zombies(id).call() tell to Web3 provider node? | cryptoZombies.methods.zombies(id).call() tells to Web3 provider node to return zombie with specific id. |
From where cryptoZombies.methods.zombies(id).call() tells to Web3 provider node to return zombie with specific id? | cryptoZombies.methods.zombies(id).call() tells to Web3 provider node to return zombie with specific id from Zombie[] public zombies. |
What is the difference between call() and send() functions? | Function call is used for view and pure functions. It only runs on the local node, and won't create a transaction on the blockchain. send will create a transaction and change data on the blockchain. send is used for all functions except view and pure. |
How to empty a div? | $("#zombies").empty(); |