OH Week3 & Week4 Overview

NFT Website Development

「在 NFT 商品網站中與以太坊錢包 - MetaMask 連動,並且認證錢包登入者是否持有我們發行的 NFT。後讓登入者進入 NFT holders 的專屬 VIP 區域進行互動。」以及「產品上鏈工程 & 實作 Minting dAPP」

login=>start: Login Flow (Login System)
verify=>operation: Tokens Owner Check Flow  (Verify System)
produce=>operation: Produce NFT Flow
deploy=>operation: Deploy NFT Flow
dApp=>end: Minting dAPP Flow

login->verify->produce->deploy->dApp
  1. Login Flow (Login System) (react.js, MetaMask@onboarding, web3.js)

  2. Tokens Owner Check Flow (Verify System) (react.js, web3.js, ethers.js, opensea.js)

  3. Produce NFT Flow (python, JavaScript)

  4. Deploy NFT Flow (Solidity, Etherscan)

  5. Minting dAPP Flow (react.js, web3.js, ethers.js, Solidity)

| Login System |

【錢包登入區的前端建置】

Create a react app

目前的模板:

【連動 Metamask】


| Verify System |

【Smart Contract, and how do we get the token's owner?】

【Who is login now?】

【Which is your token?】


| Produce NFT |

【Layers Blending & MetaData】


| Deploy NFT |

【Structuring Smart Contract】

【Deploy on Testnet】


| Minting dApp |

【Deploy the Lazy Mint in Website】

blockchainAction.js

blockchainReducer.js

dataActions.js

dataReducers.js

store.js

【Deploy on Mainnet】


把圖片放在乙太坊上到底要多少錢

1 mb 的圖片

每個 uint 是 256bits = 32 bytes = 2^5 bytes 1MB = 1024 * 1024 = 2 ^ 20 (指數律ㄏㄏ)

2^20 / 2^5 = 2^15 = 32768

32768 * 20000 + 21000 = 655381000 GAS

655381000 GAS * 70 Gwei = 45876670000

10^9 Gwei = 1 eth

45876670000 / 10^9 = 45.8767 eth

118857.35436 USD


Reference and Some Resources

論壇、群組或者是學習資源

Last updated