Web3科学家极简入门指南 示例代码
- 目标:通过 Infura 接入以太坊主网并查询钱包余额信息
- 代码: https://github.com/gm365/Web3_Tutorial/blob/main/Tutorial.py
-
目标:接入 Rinkeby 测试网并完成一笔转账交易
-
代码: https://github.com/gm365/Web3_Tutorial/blob/main/transferETH.py
-
测试地址:0x365a800a3c6a6B73B29E052fd4F7e68BFD45A086
-
测试私钥:e2facfbd1f0736318382d87b81029b05b7650ba17467c844cea5998a40e5bbc2
-
转账 Hash:0x70a71693e5f6158788847de8c56ab18479c47c1524c2970c2890175fb33adb58
-
区块链浏览器结果查询:https://rinkeby.etherscan.io/address/0x365a800a3c6a6B73B29E052fd4F7e68BFD45A086
-
目标: 完成 Arbitrum 测试网的跨链桥存入 ETH 的交互
-
代码: https://github.com/gm365/Web3_Tutorial/blob/main/ArbitrumBridge.py
-
交互记录 Hash: https://rinkeby.etherscan.io/tx/0x417f85a41d70ee619d9ff2c17051ed8ac56205e1ac232dd10966cd4b8dccdb43