@arcium-hq/readerType aliases
FindInstruction
FindInstruction<
Name> =Extract<ArciumIdlType["instructions"][number], {name:Name; }>
Finds an instruction type from the Arcium IDL by name, avoiding fragile hardcoded numeric indices.
Type Parameters
| Type Parameter |
|---|
Name extends string |