# won-web3-method

> Creates the methods on the web3 modules. This is an internal package.

Latest version **1.0.1-beta.36** (published 2018-09-29) · LGPL-3.0 license · 0 weekly downloads

## Install

```sh
npm install won-web3-method
pnpm add won-web3-method
yarn add won-web3-method
bun add won-web3-method
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1-beta.36 |
| Published | 2018-09-29 |
| First published | 2018-09-29 |
| Weekly downloads | 0 |
| License | LGPL-3.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 21.6 KB |
| Known vulnerabilities | 0 (+3 in 2 direct dependencies) |
| Install scripts | no |
| Maintainers | wonnpm |

## Links

- npm: https://www.npmjs.com/package/won-web3-method
- Repository: https://github.com/worldopennetwork/web3.js/tree/master/packages/won-web3-method
- npm.io page: https://npm.io/package/won-web3-method

## Dependencies (5)

- [underscore](https://npm.io/package/underscore.md) 1.8.3
- [won-web3-utils](https://npm.io/package/won-web3-utils.md) 1.0.1-beta.36
- [web3-core-helpers](https://npm.io/package/web3-core-helpers.md) 1.0.0-beta.36
- [web3-core-promievent](https://npm.io/package/web3-core-promievent.md) 1.0.0-beta.36
- [web3-core-subscriptions](https://npm.io/package/web3-core-subscriptions.md) 1.0.0-beta.36

## Recent versions

- 1.0.1-beta.36 (latest) — 2018-09-29
- 1.0.0-beta.36 — 2018-09-29

## README

# won-web3-method

This is a sub package of [web3.js][repo]

The Method package used within most [web3.js][repo] packages.
Please read the [documentation][docs] for more.

## Installation

### Node.js

```bash
npm install won-web3-method
```

### In the Browser

Build running the following in the [web3.js][repo] repository:

```bash
npm run-script build-all
```

Then include `dist/won-web3-method.js` in your html file.
This will expose the `Web3Method` object on the window object.


## Usage

```js
// in node.js
var Web3Method = require('won-web3-method');

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

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

---
_Source: https://npm.io/package/won-web3-method · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
