您好,欢迎来到化拓教育网。
搜索
您的当前位置:首页web3.js增加eth.getRawTransactionByHash(txhash)方法步骤

web3.js增加eth.getRawTransactionByHash(txhash)方法步骤

来源:化拓教育网


这篇文章主要介绍了web3.js增加eth.getRawTransactionByHash(txhash)方法步骤,需要的朋友可以参考下

eth_getRawTransactionByHash

https://ethereum.stackexchange.com/questions/7473/get-raw-transaction-from-hash

There is an "undocumented" method eth_getRawTransactionByHash from JSON-RPC

1.项目node_modules 下找到web3 下types.d.ts文件

Eth

类中增加方法

增加TransactionRaw定义

2.项目node_modules 下找到 web3-eth中 index.js

增加方法

3.项目node_modules 下找到 web3-core-helpers中 formatters.js

增加 outputTransactionRawFormatter并module.exports中也增加对应

上面是我整理给大家的,希望今后会对大家有帮助。

相关文章:

Vue的路由动态重定向和导航守卫实例

JS实现为动态创建的元素添加事件操作示例

对vue里函数的调用顺序介绍

Copyright © 2019- huatuo9.cn 版权所有 赣ICP备2023008801号-1

违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务