@phantomchain/core-api
Public API for PHANTOM Core
Last updated a year ago by meandevstar .
MIT · Original npm · Tarball · package.json
$ cnpm install @phantomchain/core-api 
SYNC missed versions from official npm registry.

PHANTOM Core

PHANTOM Core - API

Installation

yarn add @phantomchain/core-api

Configuration

module.exports = {
  enabled: !process.env.PHANTOM_API_DISABLED,
  host: process.env.PHANTOM_API_HOST || '0.0.0.0',
  port: process.env.PHANTOM_API_PORT || 4003,
  versions: {
    default: 1,
    valid: [1, 2],
  },
  cache: {
    enabled: false,
    options: {},
  },
  rateLimit: {
    enabled: false,
    limit: 300,
    expires: 60000,
  },
  pagination: {
    limit: 100,
    include: [
      '/api/v2/blocks',
      '/api/v2/blocks/{id}/transactions',
      '/api/v2/blocks/search',
      '/api/v2/delegates',
      '/api/v2/delegates/{id}/blocks',
      '/api/v2/delegates/{id}/voters',
      '/api/v2/delegates/search',
      '/api/v2/peers',
      '/api/v2/transactions',
      '/api/v2/transactions/search',
      '/api/v2/transactions/unconfirmed',
      '/api/v2/votes',
      '/api/v2/wallets',
      '/api/v2/wallets/top',
      '/api/v2/wallets/{id}/transactions',
      '/api/v2/wallets/{id}/transactions/received',
      '/api/v2/wallets/{id}/transactions/sent',
      '/api/v2/wallets/{id}/votes',
      '/api/v2/wallets/search',
    ],
  },
  whitelist: ['127.0.0.1', '::ffff:127.0.0.1'],
}

Security

If you discover a security vulnerability within this package, please send an e-mail to security@phantom.org. All security vulnerabilities will be promptly addressed.

Credits

License

MIT © ArkEcosystem

Current Tags

  • 0.1.4                                ...           latest (a year ago)

3 Versions

  • 0.1.4                                ...           a year ago
  • 0.1.2                                ...           2 years ago
  • 0.1.1                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 1
Last Day 0
Last Week 1
Last Month 3
Dependencies (15)
Dev Dependencies (3)
Dependents (1)

Copyright 2014 - 2016 © taobao.org |