当前位置:   article > 正文

使用ethplorer的API接口实现监控以太坊入账_以太坊api接口

以太坊api接口

https://docs.ethplorer.io/monitor?from=apiDocs

示例代码:

/**
 * Bulk API Monitor client library basic usage example.
 */
const { MonitorApp } = require('../index');

/**
 * Initialize client application.
 *
 * @type MonitorApp
 */
const monitorApp = new MonitorApp('put your API key here');

/**
 * Watch for the addresses new transactions/operations and print out any update
 */
monitorApp.init([
    '0x0000000000000000000000000000000000000001',
    '0x0000000000000000000000000000000000000002',
    '0x0000000000000000000000000000000000000003'
]).then(() => monitorApp.watch((data) => console.log(data)).catch((err) => console.log(err)));
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/繁依Fanyi0/article/detail/419620
推荐阅读
相关标签
  

闽ICP备14008679号