# youchain-core-method

> Handles the JSON-RPC methods. This package is internally used by youchain.

Latest version **1.0.4-alpha.3** (published 2020-12-19) · LGPL-3.0 license · 0 weekly downloads

## Install

```sh
npm install youchain-core-method
pnpm add youchain-core-method
yarn add youchain-core-method
bun add youchain-core-method
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.4-alpha.3 |
| Published | 2020-12-19 |
| First published | 2019-03-12 |
| Weekly downloads | 0 |
| License | LGPL-3.0 |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 8 |
| Unpacked size | 198.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Maintainers | youchain |

## Links

- npm: https://www.npmjs.com/package/youchain-core-method
- Repository: https://github.com/youchainhq/youchain.js/tree/1.0/packages/youchain-core-method
- npm.io page: https://npm.io/package/youchain-core-method

## Dependencies (8)

- [lodash](https://npm.io/package/lodash.md) ^4.17.11
- [eventemitter3](https://npm.io/package/eventemitter3.md) 3.1.0
- [youchain-core](https://npm.io/package/youchain-core.md) 1.0.4-alpha.3
- [@babel/runtime](https://npm.io/package/@babel/runtime.md) ^7.3.1
- [youchain-utils](https://npm.io/package/youchain-utils.md) 1.0.3
- [youchain-core-helpers](https://npm.io/package/youchain-core-helpers.md) 1.0.4-alpha.3
- [youchain-core-promievent](https://npm.io/package/youchain-core-promievent.md) 1.0.3
- [youchain-core-subscriptions](https://npm.io/package/youchain-core-subscriptions.md) 1.0.3

## Recent versions

- 1.0.4-alpha.3 (latest) — 2020-12-19
- 1.0.4-alpha.2 — 2020-12-19
- 1.0.4-alpha.1 — 2020-12-19
- 1.0.4-alpha.0 — 2020-12-18
- 1.0.3 — 2020-09-09
- 1.0.2 — 2020-09-03
- 1.0.1 — 2020-05-06
- 1.0.1-alpha.1 — 2020-04-22
- 1.0.1-alpha.0 — 2020-04-21
- 1.0.0 — 2020-04-11
- 1.0.0-alpha.84 — 2020-03-28
- 1.0.0-alpha.83 — 2020-03-25
- 1.0.0-alpha.82 — 2020-03-25
- 1.0.0-alpha.81 — 2020-03-25
- 1.0.0-alpha.80 — 2020-03-25
- … 57 more at https://npm.io/package/youchain-core-method/versions

## README

# youchain-core-method

This is a sub package of [youchain.js][repo]

The Method module abstracts the JSON-RPC method and is used within most [youchain.js][repo] packages.

## Installation

```bash
npm install youchain-core-method
```

## Exported classes

```js
MethodModuleFactory;
AbstractMethod;
AbstractMethodFactory;

/**
 * Methods
 */

// Network
GetProtocolVersionMethod;
VersionMethod;
ListeningMethod;
PeerCountMethod;

// Node
GetNodeInfoMethod;
GetCoinbaseMethod;
IsMiningMethod;
IsSyncingMethod;
GetGasPriceMethod;
GetNetworkIdMethod;

// Account
GetAccountsMethod;
GetBalanceMethod;
GetTransactionCountMethod;
RequestAccountsMethod;

// Block
GetBlockNumberMethod;
GetBlockMethod;
GetBlockTransactionCountMethod;

// Transaction
GetTransactionMethod;
GetTransactionFromBlockMethod;
GetTransactionReceipt;
SendRawTransactionMethod;
SignTransactionMethod;
SendTransactionMethod;

// Global
GetCodeMethod;
SignMethod;
CallMethod;
GetStorageAtMethod;
EstimateGasMethod;
GetPastLogsMethod;
GetSha3Method;

// Personal
EcRecoverMethod;
ImportRawKeyMethod;
ListAccountsMethod;
LockAccountMethod;
NewAccountMethod;
PersonalSendTransactionMethod;
PersonalSignMethod;
PersonalSignTransactionMethod;
UnlockAccountMethod;
NewValKeyMethod;
ExportValKeyMethod;
ImportValKeyMethod;
DelValKeyMethod;
UseValKeyMethod;
LockValKeyMethod;

// TxPool
ContentMethod;
InspectMethod;
StatusMethod

// Pool
GetPoolNonceMethod;
GetPoolTransactionMethod;


// Staking
CreateValidator
UpdateValidator
GetValidatorByMainAddress
GetValidators
GetValidatorsStat
GetWithdrawRecords
WithdrawValidator
DepositValidator
SettleValidator
ChangeStatusValidator
GetValidatorRewardsInfo
GetDelegationAddData
GetDelegationSubData
GetDelegationSettleData
GetDelegationsFrom
GetStakingEndBlockReceipt
GetStakingRecord

```

## Types

All the typescript typings are placed in the types folder.

[repo]: https://github.com/youchainhq/youchain.js

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