@pirichain/core

2.1.9 • Public • Published

pirichain logo pirichain api logo

Pirichain API Package


Pirichain is blockchain system that based on dPos (Delegated Proof of Stake) and has it own environment to create wallet and token, transactions, sending or storing data as a transaction, delegation.

This repo is created for base API call and returns with json format. Some functions may not exists in this repo cause of private usage on commercial account. Some functions are added after major updates or urgent minors not with fix.

- Pirichain Technology


You can access the npm library prepared for this repository at: https://www.npmjs.com/package/@pirichain/core

Installation

You can install it using your preferred package manager or with npm to use the Pirichain API.

npm install @pirichain/core

Getting Started

It is recommended to use modular import for using the package.

import pirichain from '@pirichain/core';

const {Wallet, Transaction, ...} = new pirichain({
    isMainNet: true, //this is default but you can use false for testnet
    testNetServer: 'https://testnet.pirichain.com', //this is default, but you can define your testnet endpoint which you build for yourself
    mainNetServer: 'https://core.pirichain.com' //this is default, and you have to leave this as a mainnet endpoint which provied by pirichain community.
})

You need to use POST methods for the endpoints. Additionally, some methods may differ for mainNet and testNet. For more detailed and up-to-date API documentation, you can access it at https://api.pirichain.com and refer to the Postman collection documents specified at that address.

Feel free to mark issues that you have.

Package Sidebar

Install

npm i @pirichain/core

Weekly Downloads

3

Version

2.1.9

License

BSD-3-Clause

Unpacked Size

27 kB

Total Files

20

Last publish

Collaborators

  • pirichain