Ethers.js

10 00

标准的链上 ABI 解码与交互工具库。

收录时间:
2025-06-19

JavaScript/TypeScript 库,提供 ABI 编解码、合约交互、Provider 支持等功能。

官方文档 & 示例

  1. Ethers.js Interface 文档
    https://docs.ethers.org/v5/api/utils/abi/interface/

  2. Ethers.js decodeFunctionData 示例
    https://docs.ethers.org/v5/api/utils/abi/interface/#Interface–decodeFunctionData


🔹 实用教程 & 教学文章

  1. How to decode Ethereum transactions using ethers.js(by Patrick Collins)
    https://github.com/PatrickAlphaC/ethers-decode-tx

  2. Decoding Input Data with ethers.js(StackOverflow)
    https://stackoverflow.com/questions/67529847/ethers-js-how-to-decode-transaction-data

  3. Ethers.js – Manual ABI decoding using defaultAbiCoder
    https://ethereum.stackexchange.com/questions/118022/how-to-decode-encoded-hex-data-using-ethers-js

  4. ABI decoding basics — Ethers v6 示例
    https://docs.ethers.org/v6/api/abi/coder/

  5. Decode Input and Output ABI Data from Transactions with Ethers.js
    https://dev.to/jacobedawson/decode-input-and-output-abi-data-from-transactions-with-ethers-js-4d6p

相关导航