Skip to content

Latest commit

 

History

History

adapter

Adapter

discord adapter npm package

The Adapter defines Arweave Wallet's API and also exposes them through simple functions. If you want to integrate Arweave Wallet 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, Arweave Wallet includes a permission system that restricts by default what dApps can do. When connecting your dApp to Arweave Wallet, 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.