Create a post
Call the .submit() function to create a Post
Returns
A base message object that is being sent to the network.
Tips Pass a ref in the optional object parameter and/or tags in your content to take full advantage of the filtering abilities later on.
Usage & Example
Required parameters
Parameter | Description |
---|---|
account - Account | Address the Post should be associated with or the address that submitted the Post. |
postType - string | A lowercase string of your choice for the |
content - object | The content object to save to the If |
channel - string | Channel of the message. Ideally, an application would decide and use one channel. |
inlineRequested - boolean | Should the message be stored as a separate file or inserted inline? âšī¸ Set it to false for data that could fall under GDPR. |
storageEngine - StorageEngine | Storage engine to use, either Aleph storage or IPFS. Possible values: |
APIServer - string | Target API server |
Optional parameters
ref - string or object with the following structure
A searchable reference string of your choice to save to the item_content.ref
.
Can be the reference to another post, an address, transaction hash, etc.
Last updated