@galactica-net/snap-api
TypeScript icon, indicating that this package has built-in type declarations

0.3.0 • Public • Published

Galactica Snap API for front-ends

This API package provides easy to use methods, types and errors for interacting with the Galactica ZK Vault Snap. It simplifies writing a front-end of Galactica DApps that require the user to create zero-knowledge proofs for compliant privacy.

Basically this API is a TypeScript wrapper for the JSON RPC API of the snap as defined in the docs.

Usage

To use this package, you can add "@galactica-net/snap-api" with the latest version number on NPM to the dependencies in package.json.

Then you can import and use the types and methods to interact with the Galactica Snap. You can find examples here in the documentation.

How to build (for developers of this package)

This package needs to be built before changes in it are available to other packages depending on it.

yarn build

Afterwards it can be published to NPM.

yarn npm login
yarn npm publish

Readme

Keywords

none

Package Sidebar

Install

npm i @galactica-net/snap-api

Weekly Downloads

5

Version

0.3.0

License

GPL-3.0-or-later

Unpacked Size

106 kB

Total Files

8

Last publish

Collaborators

  • astar.gala
  • galactica-network