createCapability
Function for asking for user's authorization to user's data.
Usage
import { RESOURCE } from '@meteor-web3/connector';
await connector.runOS({
method: SYSTEM_CALL.createCapability,
params: {
appId,
resource: RESOURCE.CERAMIC,
},
});
Parameters
{
appId: string;
resource?: RESOURCE;
}
appId
:string
- which app is asking for authorization.resource
:RESOURCE
- Resource to give access to the capability.enum RESOURCE { CERAMIC, }
Returns
string
- pkh
did:pkh:eip155:137:0x29761660d6Cb26a08e9A9c7de12E0038eE9cb623