找到约 15 条结果

文章 Wagmi React API Hooks 完整文档(v2+ 适配版)

...检查转账是否可行 | ## 3. 区块与交易信息 ### 3.1 `useBlock` #### 功能 获取指定区块的详细信息(哈希、时间戳、交易列表)。 #### 参数 | 参数名 | 类型 | 说明 | 是否必填 | |---------------...

文章 Sui Move 学习之实现NFT并部署上链

...──────────────────╮ │ Transaction Block Events │ ├───────────────────────────────────...

文章 Uniswap v2 路由器代码解析

...合约,用于 * 安全地 [铸造和销毁 LP 代币](https://learnblockchain.cn/article/11266)(添加和移除流动性) * 安全地 [兑换成对代币](https://learnblockchain.cn/article/11282) * 通过与包装以太(WETH)ERC20 合约集成,增加了兑换 Ether 的能力...

文章 【开发提效工具】gas优化报告的详细使用方法

... value = newValue; // 第一次 SSTORE(消耗 Gas) lastUpdate = block.timestamp; // 第二次 SSTORE(更高 Gas) } // 优化后:合并存储变量或使用 Memory struct State { uint256 value; uint256 lastUpdate; } State private state; function updateValue(uint25...

文章 命名空间默克尔树

我们在文章 "[Beyond IBC](https://learnblockchain.cn/article/12553)" 中已经相对深入地讨论了 Merkle 树和 Verkle 树的工作原理。然而,还有其他 Merkle 树的应用和衍生物,我们认为它们值得独立成文,因为它们具有独特的特性。 在本文中,...

文章 007:什么是区块?为什么链上交易要被“打包进区块”?

... 收藏,一起学习、彼此交流 🙌 ![区块](https://img.learnblockchain.cn/attachments/2025/08/LR8FsNH4688f36f3c3561.png) ### 引言:区块链的”链“怎么来的? 如果仔细观察区块链浏览器,每次查询交易都会看到一个“区块号”: * 为什么...

文章 Uniswap v3 Oracle 预言机

...来的手续费。 一个预言机观测点包括以下内容: - `blockTimestamp`:该观测点写入时的时间 - `tickCumulative`:截止该观测点时间的累计 `tick` - `secondsPerLiquidityCumulativeX128`:截止该观测点的累计每流动性持续时间 - `initialized`:...

文章 2022:22张定义加密货币年度的图表

## 2022年:定义加密年份的22张图表 ![](https://img.learnblockchain.cn/2025/03/07/F8bf2fc1c-aa02-455b-bb64-e718c7ec5c08_1698x758.png) 一年之际,Decentral Park回顾和反思过去12个月的加密市场与Web3发展。 2022年对加密领域而言,是非同凡响的一年...

文章 理解以太坊合约数据读取过程 | 函数式与区块链(二)

...om/mana-ethereum/ethereumex > > Elixir JSON-RPC client for the Ethereum blockchain. 另一个是 ExABI: > https://github.com/poanetwork/ex_abi > > The [Application Binary Interface](https://solidity.readthedocs.io/en/develop/abi-spec.html) (ABI) of Solidity describes how to transform b...

文章 Goerli 与 Sepolia 测试网

...我们](https://airtable.com/shrKKKP7O1Uw3ZcUB?prefill_Guide+Name=Goerli%20vs.%20Sepolia%20Testnet)! ### 概述 你是否有兴趣在以太坊区块链上开发去中心化应用程序(dApps),但又不想在主网上冒险使用真实资金?那么以太坊测试网就是你的完美解...

文章 2025年以太坊基金会实习项目公告!

...外,实习生将被邀请参加夏季的线下团队聚会。 ### [epf vs internship permalink](https://blog.ethereum.org/2024/11/16/announcing-ef-internship-program#epf-vs-internship) EPF 与实习 实习项目面向那些可以在确定的“夏季时间”内做出承诺,具有通用技能...

文章 🔓 Ethernaut挑战#8:Vault的幻象——为什么“Private”在以太坊上实际上并非真的私有……

...么区块链上的“私有”实际上并不私有 ![](https://img.learnblockchain.cn/2025/06/24/1t3ZonLfr3UJcU1yTj6PjFQ.png) **请在** **LinkedIn** 上关注我,获取更多区块链开发内容。 想象一下,你将你的银行密码存储在一个“私有”的金库中,结果却发...

文章 Solidity delegatecall 的使用和误区

...s://github.com/lbc-team/Pioneer) > * 译者:[翻译小组](https://learnblockchain.cn/people/412) 校对:[Tiny 熊](https://learnblockchain.cn/people/15) > * 本文永久链接:[learnblockchain.cn/article…](https://learnblockchain.cn/article/5372) Solidity `delegatecall` (委托调...

文章 存款交易

...算: - 用户已存款: `keccak256(bytes32(uint256(0)), keccak256(l1BlockHash, bytes32(uint256(l1LogIndex))))`。 其中 `l1BlockHash` 和 `l1LogIndex` 均指 L1 上存款日志事件的包含。 `l1LogIndex` 是区块日志事件组合列表中的存款事件日志的索引。 - L1 属...

文章 Revert Lend: 最新审计报告的中高级 bugs 速读

...e.latestRoundData.selector), abi.encode(uint80(0), int256(0), block.timestamp, block.timestamp, uint80(0)) ); // ignore difference oracle.setMaxPoolPriceDifference(10001); // assert that debt is greater than collateral value (position is liquidatabl...