@pianity/arsnap-adapter
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

Adapter

The door to ArSnap awesomeness.


The Adapter defines ArSnap's API and also exposes them through simple functions. If you want to integrate ArSnap into your dApp without thinking about compatibility with the existing ArConnect's API, you'll only need this package.

Getting Started

The quickest way to get your hands dirty with the Adapter is by checking the example included here in the example folder. You can also learn about all the different available functions by looking at the documentation.

Permission System

As you will notice in the example, ArSnap includes a permission system that restricts by default what dApps can do. When connecting your dApp to ArSnap, in order to access the various API methods provided by the Adapter, you will need to request the corresponding permissions via the requestPermission function. Each functions listed in the documentation have a requires field listing the permission(s) that has to be requested in order to use them.

Readme

Keywords

none

Package Sidebar

Install

npm i @pianity/arsnap-adapter

Weekly Downloads

12

Version

0.2.0

License

MIT

Unpacked Size

18 kB

Total Files

16

Last publish

Collaborators

  • femaury
  • lancelot_owczarczak
  • noomity
  • kprimice42