# everscale-standalone-client-fork

> Everscale standalone client Standalone client to the Everscale blockchain to use with everscale-inpage-provider

Latest version **2.0.10** (published 2022-06-10) · GPL-3.0 license · 0 weekly downloads

## Install

```sh
npm install everscale-standalone-client-fork
pnpm add everscale-standalone-client-fork
yarn add everscale-standalone-client-fork
bun add everscale-standalone-client-fork
```

## Health

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

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.10 |
| Published | 2022-06-10 |
| First published | 2022-06-10 |
| Weekly downloads | 0 |
| License | GPL-3.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 6 |
| Unpacked size | 112 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Maintainers | midnightblurq |

## Links

- npm: https://www.npmjs.com/package/everscale-standalone-client-fork
- Repository: https://github.com/midnightblurz/everscale-standalone-client-fork
- Homepage: https://github.com/midnightblurz/everscale-standalone-client-fork#readme
- Issues: https://github.com/midnightblurz/everscale-standalone-client-fork/issues
- npm.io page: https://npm.io/package/everscale-standalone-client-fork

## Dependencies (6)

- [events](https://npm.io/package/events.md) ^3.3.0
- [node-fetch](https://npm.io/package/node-fetch.md) ^2.6.7
- [nekoton-wasm](https://npm.io/package/nekoton-wasm.md) ^0.3.0
- [fast-safe-stringify](https://npm.io/package/fast-safe-stringify.md) ^2.1.1
- [@broxus/await-semaphore](https://npm.io/package/@broxus/await-semaphore.md) ^0.1.5
- [everscale-inpage-provider](https://npm.io/package/everscale-inpage-provider.md) ^0.3.13

## Recent versions

- 2.0.10 (latest) — 2022-06-10

## README

<p align="center">
    <h3 align="center">Everscale standalone client</h3>
    <p align="center">Standalone client to the Everscale blockchain to use with <a href="https://github.com/broxus/everscale-inpage-provider"><code>everscale-inpage-provider</code></a></p>
    <p align="center">
        <a href="/LICENSE">
            <img alt="GitHub" src="https://img.shields.io/github/license/broxus/everscale-standalone-client" />
        </a>
        <a href="https://www.npmjs.com/package/everscale-standalone-client">
            <img alt="npm" src="https://img.shields.io/npm/v/everscale-standalone-client">
        </a>
    </p>
    <p align="center"><b><a href="https://broxus.github.io/everscale-standalone-client/index.html">Documentation</a></b></p>
</p>

### How to install

```shell
npm install --save everscale-inpage-provider everscale-standalone-client
```

### Example

```typescript
import { Address, ProviderRpcClient, TvmException } from 'everscale-inpage-provider';

// For browser environment:
import { EverscaleStandaloneClient } from 'everscale-standalone-client';
// Or for nodejs environment:
// import { EverscaleStandaloneClient } from 'everscale-standalone-client/nodejs';

const ever = new ProviderRpcClient({
  fallback: () =>
    EverscaleStandaloneClient.create({
      connection: 'mainnet',
    }),
});

async function myApp() {
  await ever.ensureInitialized();

  await ever.requestPermissions({
    permissions: ['basic'],
  });

  const dePoolAddress = new Address('0:bbcbf7eb4b6f1203ba2d4ff5375de30a5408a8130bf79f870efbcfd49ec164e9');

  const dePool = new ever.Contract(DePoolAbi, dePoolAddress);

  try {
    const output = await dePool.methods.getDePoolInfo({}).call();
    console.log(output);
  } catch (e) {
    if (e instanceof TvmException) {
      console.error(e.code);
    }
  }
}

const DePoolAbi = {
  'ABI version': 2,
  header: ['time', 'expire'],
  functions: [
    {
      name: 'getDePoolInfo',
      inputs: [],
      outputs: [
        { name: 'poolClosed', type: 'bool' },
        { name: 'minStake', type: 'uint64' },
        { name: 'validatorAssurance', type: 'uint64' },
        { name: 'participantRewardFraction', type: 'uint8' },
        { name: 'validatorRewardFraction', type: 'uint8' },
        { name: 'balanceThreshold', type: 'uint64' },
        { name: 'validatorWallet', type: 'address' },
        { name: 'proxies', type: 'address[]' },
        { name: 'stakeFee', type: 'uint64' },
        { name: 'retOrReinvFee', type: 'uint64' },
        { name: 'proxyFee', type: 'uint64' },
      ],
    },
  ],
  data: [],
  events: [],
} as const; // NOTE: `as const` is very important here

myApp().catch(console.error);
```

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