Socket
Socket
Sign inDemoInstall

@ethercast/model

Package Overview
Dependencies
Maintainers
2
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ethercast/model

models and json schemas for ethercast.io and ethercast.io subscribers


Version published
Weekly downloads
1
decreased by-80%
Maintainers
2
Weekly downloads
 
Created
Source

@ethercast/model

Build Status codecov NPM version

Models for the Ethercast service

These models are delivered to the subscribed webhooks (particularly, Logs and Transactions) and also used in the API

Installation

npm install --save @ethercast/model

Usage

The exports of @ethercast/model are:

  • a set of TypeScript interfaces representing the types passed around by Ethercast, e.g. Logs, Transactions and Blocks: EthereumTypes
  • a set of TypeScript interfaces representing the schema of the public Ethercast API EthercastTypes

You can use the TypeScript interfaces when writing TypeScript code to handle Webhooks or communicate with the API.

The standard draft 6 JSON schemas are useful for a variety of use cases, including validating requests sent to your webhooks.

To use the JSON schemas, you must import one of:

  • @ethercast/model/ethercast-api-types-schema.json
  • @ethercast/model/ethereum-types.json

API Docs

https://docs.ethercast.io/model/index.html

Keywords

FAQs

Package last updated on 20 Sep 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc