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
Optional
revision: 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
{BatchType} Type of the document transition
{bigint} Identity contract nonce
Optional
params: CreateStateTransitionDocumentBatchParams{CreateStateTransitionDocumentBatchParams=} Additional params, required for Transfer, SetPrice, Purchase transitions
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
Optional
where: ArrayLike<any>{object=} Where query clauses according syntax https://docs.dash.org/projects/platform/en/stable/docs/reference/query-syntax.html
Optional
orderBy: ArrayLike<any>{object=} Order by clauses according syntax https://docs.dash.org/projects/platform/en/stable/docs/reference/query-syntax.html
Optional
limit: number{number=} Limit amount of documents per request
Optional
startAt: IdentifierWASM{IdentifierLike=} Optional offset, where startAt is an identifier of the document. Use identifier of last item in previous response
Optional
startAfter: 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