pec-core-method
TypeScript icon, indicating that this package has built-in type declarations

1.0.5 • Public • Published

pec-core-method

[![NPM Package][npm-image]][npm-url] [![Dependency Status][deps-image]][deps-url] [![Dev Dependency Status][deps-dev-image]][deps-dev-url]

This is a sub-package of [pec.js][repo].

This method package is used within most [pec.js][repo] packages.

Please read the [documentation][docs] for more.

Installation

Node.js

npm install pec-core-method

Usage

const Web3Method = require('pec-core-method');

const method = new Web3Method({
    name: 'sendTransaction',
    call: 'pec_sendTransaction',
    params: 1,
    inputFormatter: [inputTransactionFormatter]
});
method.attachToObject(myCoolLib);

myCoolLib.sendTransaction({...}, function(){ ... });

Types

All the TypeScript typings are placed in the types folder.

Readme

Keywords

none

Package Sidebar

Install

npm i pec-core-method

Weekly Downloads

5

Version

1.0.5

License

LGPL-3.0

Unpacked Size

70 kB

Total Files

8

Last publish

Collaborators

  • peex.cc