Create
Call the .Publish function to create an aggregate of a key-value pair for an account.
Usage
Import the Aggregate 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. |
key - required string | The key under your data will be stored. |
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. |
address - optional string | With a configured security key, your message will be published for this given address. |
Return
This message can be retrived here!
Full example
Last updated