Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@akashnetwork/akashjs

Package Overview
Dependencies
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@akashnetwork/akashjs

Akash Network JS SDK

  • 0.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
222
decreased by-27.69%
Maintainers
1
Weekly downloads
 
Created
Source

akashjs

Connect and communicate with the akash network using keplr wallet for signed transactions, and direct RPC for unsigned. Pure JS library for modern browsers.

compatibility

Compatible with modern browsers, nodejs 14+ and Webpack 5

getting starting

install from npm

npm i @akashnetwork/akashjs

or use the umd bundle

<script
  type="text/javascript"
  src="https://unpkg.com/@akashnetwork/akashjs@0.0.1/umd/akashjs.js"
></script>

Getting Started

stargate

Import the registry for signing and broadcasting signed transactions, this is needed if you plan to use Stargate

import { stargate as akashStargate } from "@akashnetwork/akashjs";
import { Registry } from "@cosmjs/proto-signing";

const myRegistry = new Registry([
  ...defaultRegistryTypes,
  ...akashStargate.registry,
]);

const client = await SigningStargateClient.connectWithSigner(
  `http://rpcUrl/`,
  offlineSigner,
  {
    registry: myRegistry,
  }
);

api

Generate x509 Certificate

import { certificate as akashCertificate } from "@akashnetwork/akashjs";
const bech32Address = "akash123456abcdefg";
const pems: akashCertificate.pems = await akashCertificate.createCertifcate(
  bech32Address
);

FAQs

Package last updated on 30 Jun 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc