Rule language
Generate a rule document
Writes a rule document from a description in plain words. The route returns text only. It does not stage, commit or sign anything. Show the document to the owner, who reviews it and signs the commit as for a document typed by hand.
- Who may call: a caller with an EIP-4361 sign-in. The signer address counts
against daily limits on generations. The SDK function is
generateDsl, andsiweSessionMessagebuilds the sign-in. - Before: sign the session message once with
personal_sign. You can send the samesiweMessageandsignatureagain until the session window of the deployment ends. Then the route answers401, and you sign again. - Sign-in checks: the signature must recover to the address in the message. The
message
Chain IDmust be the chain of this host. TheIssued Atmust not be in the future and must be inside the session window. The domain must be the domain of the Anafi web app. - Guarantee: a
200body holds a document that parses and passes the type check of the rule language. The same request can return the same document again.
Served on polygon, xlayer and polygon-amoy.
POST
Generate a rule document
Body
application/json