Documents
Namespace that handles all document Related functionality
Hierarchy
SubModule
↳ Documents
Index
Constructors
constructor
Properties
context
securityToken
Methods
getAllDocuments
getDocument
remove
set
Constructors
constructor
+ new Documents(securityToken
: SecurityToken, context
: Context): Documents
Inherited from SubModule.constructor
Create a new SubModule instance
Parameters:
Name
Type
securityToken
context
Returns: Documents
Properties
Protected
context
Protected
context• context: Context
Inherited from SubModule.context
Protected
securityToken
Protected
securityToken• securityToken: SecurityToken
Inherited from SubModule.securityToken
Methods
getAllDocuments
▸ getAllDocuments(): Promise‹Document[]›
Retrieve an array of all the documents attached to the security token
Returns: Promise‹Document[]›
getDocument
▸ getDocument(args
: object): Promise‹Document›
Retrieve a specific document's data by name
Parameters:
▪ args: object
Name
Type
name
string
Returns: Promise‹Document›
remove
▸ remove(args
: object): Promise‹TransactionQueue‹RemoveDocumentProcedureArgs, void››
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
▸ set(args
: object): Promise‹TransactionQueue‹SetDocumentProcedureArgs, void››
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››
Last updated
Was this helpful?