# @vapory/web3-core-method

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

Latest version **1.0.0-delta.30** (published 2021-02-04) · LGPL-3.0 license · 0 weekly downloads

## Install

```sh
npm install @vapory/web3-core-method
pnpm add @vapory/web3-core-method
yarn add @vapory/web3-core-method
bun add @vapory/web3-core-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.0-delta.30 |
| Published | 2021-02-04 |
| First published | 2021-01-23 |
| Weekly downloads | 0 |
| License | LGPL-3.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 5 |
| Unpacked size | 20.1 KB |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| Maintainers | marlonhanks |

## Links

- npm: https://www.npmjs.com/package/@vapory/web3-core-method
- Repository: https://github.com/vaporyco/web3.js/tree/master/packages/web3-core-method
- npm.io page: https://npm.io/package/@vapory/web3-core-method

## Dependencies (5)

- [underscore](https://npm.io/package/underscore.md) 1.8.3
- [@vapory/web3-utils](https://npm.io/package/@vapory/web3-utils.md) 1.0.0-delta.30
- [@vapory/web3-core-helpers](https://npm.io/package/@vapory/web3-core-helpers.md) 1.0.0-delta.30
- [@vapory/web3-core-promievent](https://npm.io/package/@vapory/web3-core-promievent.md) 1.0.0-delta.30
- [@vapory/web3-core-subscriptions](https://npm.io/package/@vapory/web3-core-subscriptions.md) 1.0.0-delta.30

## Recent versions

- 1.0.0-delta.30 (latest) — 2021-02-04
- 1.0.0-gamma.30 — 2021-01-26
- 1.0.0-beta.30 — 2021-01-24
- 1.0.0-beta.28 — 2021-01-23

## README

# web3-core-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 web3-core-method
```

### In the Browser

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

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

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


## Usage

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

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

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


[docs]: http://web3js.readthedocs.io/en/1.0/
[repo]: https://github.com/vaporyco/web3.js

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