Documents
Last updated
Was this helpful?
Last updated
Was this helpful?
Namespace that handles all document Related functionality
↳ Documents
+ new Documents(securityToken
: SecurityToken, context
: Context): Documents
Defined in src/entities/SecurityToken/SubModule.ts:10
Create a new SubModule instance
Parameters:
Returns: Documents
Protected
context• context: Context
Defined in src/entities/SecurityToken/SubModule.ts:10
Protected
securityToken• securityToken: SecurityToken
Defined in src/entities/SecurityToken/SubModule.ts:8
▸ getAllDocuments(): Promise‹Document[]›
Defined in src/entities/SecurityToken/Documents.ts:90
Retrieve an array of all the documents attached to the security token
Returns: Promise‹Document[]›
â–¸ getDocument(args
: object): Promise‹Document›
Defined in src/entities/SecurityToken/Documents.ts:61
Retrieve a specific document's data by name
Parameters:
â–ª args: object
Name
Type
name
string
Returns: Promise‹Document›
â–¸ remove(args
: object): Promise‹TransactionQueue‹RemoveDocumentProcedureArgs, void››
Defined in src/entities/SecurityToken/Documents.ts:50
Remove an existing document from the Security Token
Parameters:
â–ª args: object
Name
Type
Description
name
string
should always be unique
Returns: Promise‹TransactionQueue‹RemoveDocumentProcedureArgs, void››
â–¸ set(args
: object): Promise‹TransactionQueue‹SetDocumentProcedureArgs, void››
Defined in src/entities/SecurityToken/Documents.ts:37
Attach a new document to the contract, or update the URI or hash of an existing attached document
Parameters:
â–ª args: object
Name
Type
Description
documentHash
string
hash of the document's contents
name
string
should always be unique
uri
string
off-chain uri of the document from where it is accessible to investors/advisors to read
Returns: Promise‹TransactionQueue‹SetDocumentProcedureArgs, void››
Inherited from SubModule.
Inherited from SubModule.
Inherited from SubModule.