A library to communicate with the WeaveMask extension.
yarn add weavemask
or
npm i weavemask
Check if WeaveMask is installed or available.
Connect to WeaveMask and request permissions. See the available permissions here.
Get the current active/used address from WeaveMask.
This requires the ACCESS_ADDRESS
.
Get all addresses added to WeaveMask.
This requires the ACCESS_ALL_ADDRESSES
permission.
Get all permissions allowed to the site.
Create and sign an Arweave transaction, than post it.
This requires the CREATE_TRANSACTION
permission.
There are four permissions currently available. When calling connect
, you need to specify at least one of them, preferably ACCESS_ADDRESS
.
The permissions:
-
ACCESS_ADDRESS
: Access the current address selected in WeaveMask -
ACCESS_ALL_ADDRESSES
: Access all addresses added to WeaveMask -
CREATE_TRANSACTION
: Create a new transaction