Skip to main content

Build unsigned `setAutoRenew`, `setPayg` or `releaseEscrow` calls for an existing account (relayed free within the flag-call limits).

POST 

/v1/flags/prepare

Flag calls are relayed free of charge, up to 10 per 24 h and 30 per 30 days per account. setPayg is encoded with four arguments: enabled, budget, auto_topup, max_payg_price. renew: true builds renew(address), the dashboard's "Renew now". It is free only when the argument is the sender's own account, so address is both the sender and the argument. When the free allowance is used up, the response carries free: false and ru, and the call is billed as a normal relay. An address that cannot be billed gets 429 RATE_LIMITED with details.scope = free_flow. 503 CONTRACT_PAUSED while the contract's global pause is set.

Request​

Responses​

One unsigned transaction per requested change, consecutive nonces, one assignment.