Optional
Readonly
btlReadonly
dataThe binary data to store in the entity
Optional
Readonly
expiresExpiration time for the entity in seconds, or ExpirationTime object (preferred over btl). When using number, it represents duration in seconds (not blocks).
Readonly
numericNumeric-valued metadata annotations for indexing and filtering
Readonly
stringString-valued metadata annotations for querying and categorization
Specification for creating new entities in Arkiv.
This type defines all the parameters needed to create a new entity, including the data payload, expiration time, and metadata annotations for efficient querying and categorization.
Example
Using the new expiresIn API with seconds (recommended):
Example
Using ExpirationTime builder (also recommended):
Example
Using legacy BTL (deprecated):