Socket
Socket
Sign inDemoInstall

@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

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


Version published
Weekly downloads
0
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

npm i @akashnetwork/akashjs

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