pub fn create_thread(
ctx: Context<'_, '_, '_, '_, ThreadCreate<'_>>,
amount: u64,
id: ThreadId,
trigger: Trigger,
initial_instruction: Option<SerializableInstruction>,
priority_fee: Option<u64>,
) -> Result<()>Expand description
Creates a new transaction thread. Optionally creates an initial fiber if instruction is provided.