Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@conflux-dev/jsonrpc-spec

Package Overview
Dependencies
Maintainers
4
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@conflux-dev/jsonrpc-spec

The Conflux JSON-RPC is a collection of methods that conflux-rust client implement.

  • 0.2.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
4
Created
Source

Conflux JSON-RPC Specification

The Conflux JSON-RPC is a collection of methods. This interface allows downstream tooling and infrastructure to generate code or build mock server.

Online Viewer

  • cfx namespace methods
  • eth namespace methods

How to add examples

Edit src/eth/examples.json or src/cfx/examples.json to add examples.

How to add examples schema

Use scripts to generate examples schema:

node scripts/add-examples-to-openrpc.js src/cfx/examples.json src/cfx/cfx.json

How to run MockServer

Prepare a JSON-RPC description file, you can add examples you want to test into it. Then run the mock-server with follow command:

npm run mock-server -d the-openrpc.json

or

npx open-rpc-mock-server -p 3333 -d src/cfx/cfx.json

FAQs

Package last updated on 18 Jun 2024

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