Jaco Greeff b0c7e3a8ae Initial add
2017-11-18 08:38:18 +01:00
2017-11-18 08:38:18 +01:00
2017-11-18 08:38:18 +01:00
2017-11-18 08:38:18 +01:00
2017-11-18 08:38:18 +01:00
2017-11-18 08:38:18 +01:00
2017-11-18 08:38:18 +01:00
2017-11-18 08:38:18 +01:00
2017-11-18 08:38:18 +01:00
2017-11-18 08:38:18 +01:00
2017-11-18 08:38:18 +01:00
2017-11-18 08:38:18 +01:00
2017-11-18 08:38:18 +01:00
2017-11-18 08:38:18 +01:00
2017-11-18 08:38:18 +01:00
2017-11-18 08:38:18 +01:00

Polkadot JavaScript API

Build Status Coverage Status Dependency Status devDependency Status

Introduction

Warning - currently this does not actually do all that much, it is an attempt to put into code some thoughts about how to maintain the endpoints.

Usage

Installation -

npm install --save @polkadot/api

Initialisation -

import Api from '@polkadot/api';

const provider = new Api.HttpProvider('http://127.0.0.1:9933');
const api = new Api(provider);

Making calls -

api.chain
  .getHeader('0x1234567890')
  .then((header) => console.log(header))
  .catch((error) => console.error(error));

Available methods

For a list of currently exposed methods, see the @polkadot/jsonrpc repository.

Description
Fork of polkadot-js/api. Held for the @polkadot/types side of Quantus support — ExtrinsicSignature is MultiSignature (64/65 bytes) upstream, where Quantus needs a 5261/7219-byte DilithiumSignatureScheme. May turn out to need no patch at all if registry type overrides suffice; see quantus/api#1.
Readme 142 MiB
Languages
TypeScript 99.9%