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