# w3.js

> w3.js is a module which encode the solidity method inspried by web3.js

Latest version **1.0.5** (published 2016-09-20) · LGPL-3.0 license · 0 weekly downloads

## Install

```sh
npm install w3.js
pnpm add w3.js
yarn add w3.js
bun add w3.js
```

## 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.5 |
| Published | 2016-09-20 |
| First published | 2016-09-09 |
| Weekly downloads | 0 |
| License | LGPL-3.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | terasum |
| Maintainers | terasum |
| Keywords | w3.js, web3.js |

## Links

- npm: https://www.npmjs.com/package/w3.js
- Repository: https://github.com/terasum/w3.js
- Homepage: https://github.com/terasum/w3.js#readme
- Issues: https://github.com/terasum/w3.js/issues
- npm.io page: https://npm.io/package/w3.js

## Dependencies (3)

- [utf8](https://npm.io/package/utf8.md) ^2.1.1
- [crypto-js](https://npm.io/package/crypto-js.md) ^3.1.6
- [bignumber.js](https://npm.io/package/bignumber.js.md) ^2.4.0

## Recent versions

- 1.0.5 (latest) — 2016-09-20
- 1.0.4 — 2016-09-16
- 1.0.3 — 2016-09-16
- 1.0.1 — 2016-09-09
- 1.0.0 — 2016-09-09

## README

# w3.js 
w3.js is a method_id and param interpretor of solidity abi

## INSTALL:

`npm install w3.js`

## USEAGE:

```
var SF = require('w3.js');
var abimethod = {
     name: 'myConstantMethod',
     type: 'function',
     constant: true,
     inputs: [{ name: 'a', type: 'string' }],
     outputs: [{name: 'd', type: 'string' }]
};

var sf = new SF(abimethod);


// Note: this function's params should match with the abimethod input property defination.
var data  = sf.getData('abc');
console.log(data);

//'0x65a0d493000000000000000000000000000000000000000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000036162630000000000000000000000000000000000000000000000000000000000'

// then you can use this output code to run EVM smart contract code.

// NOTE this w3.js not support the address param which web3.js implements 

```

## More Info:

[web3.js](https://github.com/ethereum/web3.js/)

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