What the beta covers
Write a fiat rule
Deny any transaction on Ethereum mainnet worth more than $100. The comparison is `gt`, so a transaction worth exactly $100 still goes through."SVM" and chain id 101. For Bitcoin it uses "BTC" and chain id 1.
Rules for the value:
valueis plain US dollars as a JSON number, such as100or12.5. It is not a string and not in cents.- At most 2 decimal places, and never negative.
totalUsdValueis read at the top of the rule’s condition. Do not put it insideoutgoingAssetsorspendWindows.
- its chain family, with
operation.chainandeq, and - its chain ids, with
chain.idandinoreq, all of them mainnets that can be priced.
any, or under not, does not count.
How the value is calculated
When the transaction is signed, it is simulated, and every asset it sends out of the wallet is priced in US dollars by the simulation provider. The total is the sum of those prices, added exactly and then rounded up to the next cent, so a transaction just over your limit cannot round down below it.- Every outgoing asset counts: the chain’s coin and every token.
- Network fees are neither added nor removed. The total is what the simulation reports as leaving the wallet, the same amount the per-token limits read.
- The price is taken at signing time, not when the rule was saved.
When the value cannot be calculated
A fiat rule never treats a missing price as zero. If a rule applies to a transaction and the value cannot be worked out, the transaction is rejected. One asset without a price is enough: the value of the whole transaction is then unknown, so it is rejected even if every other asset it sends is priced.
A refused transaction is never signed, so nothing reaches the chain. Retrying an unpriced transaction gives the same result until the asset is priced, so remove the asset from the transaction or change the rule.
Signatures a fiat rule does not check
A fiat rule only runs on operations that can be simulated. These are not simulated, so a fiat rule does not check them and they are signed as usual if no other rule refuses them:- EIP-712 typed data, except EVM gasless intents. This includes permits and off-chain orders, even when they authorize moving value.
- Plain text and EVM personal messages.
- Messages on Stellar, Aleo, Midnight, and TRON, and every Tempo and TON signature.
Error codes
When a rule is saved:
When a transaction is signed, the refusal’s
reasonCode (also sent in policy violation webhooks) is one of:
If fiat rules are turned off for an environment that already has fiat rules saved, every transaction those rules apply to is refused with
usd_limits_disabled until the rules are removed. A fiat rule is never silently skipped.