# app3-apis-contract

> App3 module to interact with Ethereum smart contracts.

Latest version **0.9.3-2** (published 2022-04-11) · LGPL-3.0 license · 0 weekly downloads

## Install

```sh
npm install app3-apis-contract
pnpm add app3-apis-contract
yarn add app3-apis-contract
bun add app3-apis-contract
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.9.3-2 |
| Published | 2022-04-11 |
| First published | 2018-11-15 |
| Weekly downloads | 0 |
| License | LGPL-3.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 8 |
| Unpacked size | 32 KB |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Maintainers | apisplatform |

## Links

- npm: https://www.npmjs.com/package/app3-apis-contract
- Repository: https://github.com/APIS-Platform/app3.js
- Homepage: https://apisplatform.io
- Issues: https://github.com/APIS-Platform/app3.js/issues
- npm.io page: https://npm.io/package/app3-apis-contract

## Dependencies (8)

- [app3-core](https://npm.io/package/app3-core.md) ^0.9.3-3
- [app3-utils](https://npm.io/package/app3-utils.md) ^0.9.3
- [underscore](https://npm.io/package/underscore.md) 1.8.3
- [app3-apis-abi](https://npm.io/package/app3-apis-abi.md) ^0.9.3
- [app3-core-method](https://npm.io/package/app3-core-method.md) ^0.9.3-1
- [app3-core-helpers](https://npm.io/package/app3-core-helpers.md) ^0.9.3-1
- [app3-core-promievent](https://npm.io/package/app3-core-promievent.md) ^0.9.3-1
- [app3-core-subscriptions](https://npm.io/package/app3-core-subscriptions.md) ^0.9.3-1

## Recent versions

- 0.9.3-2 (latest) — 2018-11-15
- 0.9.3-1 — 2018-11-15
- 0.9.3 — 2018-11-15

## README

# app3-apis-contract

This is a sub package of [app3.js][repo]

This is the contract package to be used in the `app3-apis` package.
Please read the [documentation][docs] for more.

## Installation

### Node.js

```bash
npm install app3-apis-contract
```

### In the Browser

Build running the following in the [app3.js][repo] repository:

```bash
npm run-script build-all
```

Then include `dist/app3-apis-contract.js` in your html file.
This will expose the `App3EthContract` object on the window object.


## Usage

```js
// in node.js
var App3EthContract = require('app3-apis-contract');

// set provider for all later instances to use
App3EthContract.setProvider('ws://localhost:8546');

var contract = new App3EthContract(jsonInterface, address);
contract.methods.somFunc().send({from: ....})
.on('receipt', function(){
    ...
});
```


[docs]: https://app3js.readthedocs.io/en/latest
[repo]: https://github.com/APIS-Platform/app3.js

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