Get Script ID by Name
Fetch a script's ID by its name.
Signature
TypeScript
function getScriptIdByName(name: string): Promise<string | null>;Parameters
name: The name of the script whose ID is being fetched.
Returns
- The
stringID of the found script ornullif a script is not found.
Examples
TypeScript
const scriptId = await zeta.v1.query.getScriptIdByName("todo");