Interface PermissionGrantOptions

Represents the options for creating a new PermissionGrant instance.

interface PermissionGrantOptions {
    agent: Web5Agent;
    connectedDid: string;
    message: DataEncodedRecordsWriteMessage;
}

Properties

agent: Web5Agent

The agent to use when interacting with the underlying DWN record representing the grant

connectedDid: string

The DID to use when interacting with the underlying DWN record representing the grant

message: DataEncodedRecordsWriteMessage

The underlying DWN RecordsWrite message along with encoded data that represent the grant