@pirichain/core
v3.5.4
Published
Pirichain API package contains base commands for common usage.
Downloads
502
Maintainers
Readme
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({
baseURL: 'https://endpointofnetwork', //this is default, but you can define your testnet endpoint which you build for yourself
})
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.