Creates a {DocumentWASM} instance that can be used to submit a document in the network.
{IdentifierLike} Identifier of the Data Contract
{string} Document type as string
{object} Data as JSON object
{IdentifierLike} Identifier of the document's owner
Optionalrevision: bigint{bigint=} revision (optional)
Helper function for creating {StateTransitionWASM} from documents. It may be used to create any of 6 Document Transition actions:
{DocumentWASM} Instance of the document to make transition with
{string} Type of the document transition, must be a one of ('create' | 'replace' | 'delete' | 'updatePrice' |'transfer' | 'purchase')
{DocumentTransitionParams} params
Make a query for documents retrieval from the network.
{IdentifierLike} Identifier of the Data Contract where fetch documents from
{string} Document type of the data contract
Optionalwhere: ArrayLike<any>{object=} Where query clauses according syntax https://docs.dash.org/projects/platform/en/stable/docs/reference/query-syntax.html
OptionalorderBy: ArrayLike<any>{object=} Order by clauses according syntax https://docs.dash.org/projects/platform/en/stable/docs/reference/query-syntax.html
Optionallimit: number{number=} Limit amount of documents per request
OptionalstartAt: IdentifierWASM{IdentifierLike=} Optional offset, where startAt is an identifier of the document. Use identifier of last item in previous response
OptionalstartAfter: IdentifierWASM{IdentifierLike=} Same as previous, but with exclusion. Cannot be set if startAt already provided
Collection of methods to work with documents like creation, querying or preparing a transition action