Function hdk::entry::create

source · []
pub fn create(create_input: CreateInput) -> ExternResult<ActionHash>
Expand description

General function that can create any entry type.

This is used under the hood by create_entry, create_cap_grant and create_cap_claim.

The host builds a Create action for the passed entry value and commits a new record to the chain.

Usually you don’t need to use this function directly; it is the most general way to create an entry and standardizes the internals of higher level create functions.