Create
Usage
Import the Post declaration to interact with the Publish function and the Item type to choose your storage location.
Then call the Publish function, with the required parameters as follow:
Parameters
Parameter | Description |
---|---|
Account - required Account | The account that will sign the message. |
postType - required string | A lowercase string of your choice for |
content - required object | The value to associate with your key. |
channel - required string | Channel of the message. Ideally, an application would decide and use one channel. |
storageEngine - optional ItemType | Storage engine to use, either Aleph storage, IPFS, or inline. |
APIServer - optional string | The API server endpoint that is used to carry the request to Aleph's network. |
ref - optional string or | A searchable reference string of your choice to save to the |
address - optional string | With a configured security key, your message will be published for this given address. |
post_content has a limit size of just under 50Kb, for a bigger document size, use Aleph Storage or IPFS (The SDK will perform the change automatically).
To save more significant documents, the content should be stored in a Store Item and then specify a ref
for the item in a Post.
Return
This message can be retrived here!
Last updated