-
Notifications
You must be signed in to change notification settings - Fork 0
/
Ethereum
42 lines (24 loc) · 1.43 KB
/
Ethereum
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
Gas :
How much work we are executing using the code.
In order to get someone else to run our contract we have to pay the money
This money is Gas.
When sending a Transaction some amount of gas is attached.
Gas Price: Amount of wei/money that we are offering for per unit of gas.
If I were to offer Gas Price of 10
Means I am willin to pay.. If gas used is 3. then 10 * 3 = 30wei/money
startGas/gasLimit: total number of unit of gas that we are willing spent with this transaction.
Accounts : Address key, public key, private key
12 word mnemonic: A series of 12 random words.
Eg: pave cattle recycle grit
very erupt above team cousin
scale mammal sock
when given in mnumonic algorithm it will spit out a series of accounts which have thier own public, private and addresses
12 words mnemonic for our account meta mask:
word win world fall valid field awkward tool bridge knee blush afford
Contract Source --> Solidity Compiler --> ABI & [Contract ByteCode --> Rinkeby]
Truffle --> [Contract Creation , Local Testing, Deployment] --> Rinkeby
ABI - Application Binary Interface. --> Communication between JS and Solidity. Contains all the constants, vars, functions of contract code.
Web3 - A constructor Function - Each instance can connect to different Ethereum Network.
Web3 --> An Instance <-- A Provider <-- Ganache
Provider: A Communication layer between Web3 and any specific Ethereum Network
Every function that we call in web3 are async