# @juicemx/web3-core-method

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

Latest version **3.3.0** (published 2021-09-28) · LGPL-3.0 license · 0 weekly downloads

## Install

```sh
npm install @juicemx/web3-core-method
pnpm add @juicemx/web3-core-method
yarn add @juicemx/web3-core-method
bun add @juicemx/web3-core-method
```

## Health

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

Positive: has types; no vulnerabilities; popular repo.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 3.3.0 |
| Published | 2021-09-28 |
| First published | 2021-08-31 |
| Weekly downloads | 0 |
| License | LGPL-3.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Node | >=8.0.0 |
| Dependencies | 5 |
| Unpacked size | 32.8 KB |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 19913 |
| Maintainers | juicemx |

## Links

- npm: https://www.npmjs.com/package/@juicemx/web3-core-method
- Repository: https://github.com/ethereum/web3.js/tree/1.x/packages/web3-core-method
- npm.io page: https://npm.io/package/@juicemx/web3-core-method

## Dependencies (5)

- [underscore](https://npm.io/package/underscore.md) 1.9.1
- [@juicemx/web3-utils](https://npm.io/package/@juicemx/web3-utils.md) 3.3.0
- [@juicemx/web3-core-helpers](https://npm.io/package/@juicemx/web3-core-helpers.md) 3.3.0
- [@juicemx/web3-core-promievent](https://npm.io/package/@juicemx/web3-core-promievent.md) 3.3.0
- [@juicemx/web3-core-subscriptions](https://npm.io/package/@juicemx/web3-core-subscriptions.md) 3.3.0

## Recent versions

- 3.3.0 (latest) — 2021-09-28
- 3.1.1 — 2021-08-31

## 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('web3-core-method');

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

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

## Types

All the typescript typings are placed in the types folder.

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

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