Private
agentHolds the instance of a Web5Agent that represents the current execution context for
the DwnApi
. This agent is used to process DWN requests.
Private
connectedThe DID of the DWN tenant under which operations are being performed.
API to interact with DWN protocols (e.g., dwn.protocols.configure()
).
Configure method, used to setup a new protocol (or update) with the passed definitions
Configure method, used to setup a new protocol (or update) with the passed definitions
Query the available protocols
Query the available protocols
API to interact with DWN records (e.g., dwn.records.create()
).
Alias for the write
method
Alias for the write
method
Write a record based on an existing one (useful for updating an existing record)
Write a record based on an existing one (useful for updating an existing record)
Delete a record
Delete a record
Query a single or multiple records based on the given filter
Query a single or multiple records based on the given filter
Read a single record based on the given filter
Read a single record based on the given filter
Writes a record to the DWN
As a convenience, the Record instance returned will cache a copy of the data. This is done
to maintain consistency with other DWN methods, like RecordsQuery, that include relatively
small data payloads when returning RecordsWrite message properties. Regardless of data
size, methods such as record.data.stream()
will return the data when called even if it
requires fetching from the DWN datastore.
Writes a record to the DWN
As a convenience, the Record instance returned will cache a copy of the data. This is done
to maintain consistency with other DWN methods, like RecordsQuery, that include relatively
small data payloads when returning RecordsWrite message properties. Regardless of data
size, methods such as record.data.stream()
will return the data when called even if it
requires fetching from the DWN datastore.
Generated using TypeDoc
Interface to interact with DWN Records and Protocols