# allchain

> A package that helps a developer to use any blockchain network in their project and create decentralised application.

Latest version **1.0.9** (published 2023-04-24) · ISC license · 0 weekly downloads

## Install

```sh
npm install allchain
pnpm add allchain
yarn add allchain
bun add allchain
```

## 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.9 |
| Published | 2023-04-24 |
| First published | 2023-04-07 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Unpacked size | 272.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Saravanan Venkateshwaran & Kshitij Arora |
| Maintainers | venkateshsv |

## Links

- npm: https://www.npmjs.com/package/allchain
- Repository: https://github.com/venkateshSV/btp_package
- Homepage: https://github.com/venkateshSV/btp_package#readme
- Issues: https://github.com/venkateshSV/btp_package/issues
- npm.io page: https://npm.io/package/allchain

## Dependencies (6)

- [bs58](https://npm.io/package/bs58.md) ^5.0.0
- [web3](https://npm.io/package/web3.md) ^1.8.2
- [axios](https://npm.io/package/axios.md) ^1.3.2
- [express](https://npm.io/package/express.md) ^4.18.2
- [child_process](https://npm.io/package/child_process.md) ^1.0.2
- [@solana/web3.js](https://npm.io/package/@solana/web3.js.md) ^1.73.3

## Recent versions

- 1.0.9 (latest) — 2023-04-24
- 1.0.8 — 2023-04-23
- 1.0.7 — 2023-04-21
- 1.0.6 — 2023-04-14
- 1.0.5 — 2023-04-14
- 1.0.4 — 2023-04-14
- 1.0.3 — 2023-04-14
- 1.0.2 — 2023-04-12
- 1.0.1 — 2023-04-07
- 1.0.0 — 2023-04-07

## README

![Logo](https://drive.google.com/uc?id=1nRZ_WyzWSPc4vLS9TH4rnWKXoIFJhX9d)


#### Develop, Deploy, and Innovate - seamlessly.

![[NPM Version]](https://img.shields.io/badge/npm-v9.3.1-green) 

![[NPM Install Size]](https://img.shields.io/badge/downloads-%3E100-blue)

A package that helps a developer to use any blockchain network in their project and create decentralised application.

A JavaScript API to connect with the JSON-RPC of **Ethereum** and **Solana** network.



## Installation

This is a [Node.js](https://nodejs.org/en/) module available through the
[npm registry](https://www.npmjs.com/).

Before installing, [download and install Node.js](https://nodejs.org/en/download/).
Node.js 0.10 or higher is required.

If this is a brand new project, make sure to create a `package.json` first with
the [`npm init` command](https://docs.npmjs.com/creating-a-package-json-file).

Installation is done using the
[`npm install` command](https://docs.npmjs.com/getting-started/installing-npm-packages-locally):

```console
$ npm install allchain
```

Once the package is installed, you can import the library using require approach:

```js
const allchain = require('allchain')

console.log(new allchain.Eth());
```

You will notice this output on the terminal if everything works well.

```console
You are connected to Ethereum Chain.
Eth {}
```
You have connected to the Ethereum chain. 
To connect to solana type this on the terminal.
```js
const allchain = require('allchain')

console.log(new allchain.Sol());
```
Output
```console
You are connected to Solana Chain.
Sol {}
```
    
## Documentation

This package allows to make dapps on multiple chains using **allchain**.

Following are the features of allchain.
* createAccount
* currentProvider
* getGasPrice
* sendTransaction
* getBlock
* getBlockNumber
* getBalance
* createWallet
* addAccount





## Usage/Examples

The following code demonstrates the working of allchain's feature.

1. To create an account on either of the chain use the following functions.

```javascript
allchain = require('allchain');

function eth_createAccount()
{
    return allchain.Eth.createAccount();
}

function sol_createAccount()
{
    return allchain.Sol.createAccount();
}

```


2. To get the wallet balance of your account using account address.

```javascript
allchain = require('allchain');

function eth_balance(account_address)
{
    return allchain.Eth.getBalance(account_address);
}

function sol_balance(account_address)
{
    return allchain.Sol.getBalance(account_address);
}

```
The above functions return the balance of the provided address.


## Support

For support, email mail us at venkatash.sv@gmail.com and kshitijlm10@gmail.com.

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