Getting Started

Hello! If you’re looking to build your first plasma chain application, you’re in the right place.

@pigi/plasma-js is a JavaScript library that makes it easy for you to interact with plasma chains. This includes things like making transactions, querying balances, querying blocks, and a lot more.

Adding @pigi/plasma-js

There are a few simple ways to add @pigi/plasma-js to your project.

npm

If you’re working with a project that supports npm imports, you can install @pigi/plasma-js with npm:

Then you’ll be able to import Plasma in your project:

Browser

You can also import @pigi/plasma-js with a <script> tag:

This will give you access to a window variable: