Skip to content

Variables & references

ChainAPI’s variable substitution syntax is {{<scope>.<field>}}. Resolution order:

  1. Builtins ({{$.uuid}}, {{$.now}}, {{$.faker.*}})
  2. Actor sessions ({{<actor>.<var>}})
  3. Resource extractions ({{<resource>.<var>}})
  4. Environment variables ({{env.<key>}})
  5. Secrets ({{secret.<key>}})

See the Variable syntax reference for the full grammar.