Validate conditions against a beta API key, shown as Development in the Developer Portal. Policies reach production only through a production review: select Request production review on your production key.
Condition kinds
Leaf conditions read one fact. Group conditions combine other conditions, so one rule can express AND, OR and NOT logic.- compare
- aggregate
- all, any, not
Operators
Each fact supports the operators its value type allows. The fact tables list them per fact.ne does not match a missing fact. A rule that reads a fact the request does not provide is indeterminate, whatever the operator.Values and encodings
Each value must have the fact’s type. A wrong type fails validation withvalue_type_mismatch.
Amounts are base units: wei and token units on EVM (1 USDC is
"1000000" with 6 decimals), lamports on Solana, the chain’s base denom on Cosmos (such as uatom), stroops on Stellar, and MIST on Sui. Token amounts use the token’s smallest unit as well: the mint’s decimals on Solana, the denom’s integer amount on Cosmos, and 7 decimals for every Stellar asset, so 1 USDC on Stellar is "10000000".
Identifiers by wallet type
Write addresses and assets in the canonical form of the policy’s wallet type, exactly as shown.request.sourceAccount takes the request.to form of each wallet type.
For a Stellar network other than testnet or mainnet, <hash> is the SHA-256 hash of the network passphrase in lowercase hex. On EVM, eq, ne and in on request.token.asset and request.safe.token.asset compare the contract-address part of eip155:<chainId>:token:<contract> without regard to case. The prefix and chain ID must still match exactly.
Limits
Condition groups and leaves share these depth and count limits; metered facts also constrain window declarations.Reading the fact tables
The tables below list every fact a policy can read for each wallet type, outside Metered facts. The Actions column lists the rule actions that can read the fact. Every action in a rule’sactions must appear there, or validation fails with fact_action_unsupported. all means every action of the wallet type, including raw_signature, and - means no rule can read the fact.
The Present column says whether every request of those actions carries the fact. “May be missing” means Para provides the fact only when it can read it from the request, such as a recipient decoded from calldata. A missing fact makes the condition indeterminate. When a standard rule is indeterminate only because of a decode gap, Para skips it, including a Guardrail deny rule, and other rules and Para’s baseline decide the request. Invalid or stale facts, fact-source errors, missing gas fields and other non-decoding failures retain their existing handling; see Facts Para cannot read.
"actions": "all" covers every action of the wallet type, raw_signature included, but the validation fact check leaves raw_signature out. An "all" rule can therefore read only request.classification, the para.wallet.* facts and, on Solana, Cosmos, Stellar and Sui, request.actionFamilies. A raw signature has no request.actionFamilies, so a condition on it is indeterminate on a raw signature unless another condition in its group settles it, and Para then denies the raw signature unless another matching rule has the same or a stronger effect. See Facts Para cannot read.
A rule that names raw_signature can read only the para.wallet.* facts.
EVM
Choose facts by the signing action: EVM transaction and message actions expose different fields.
What each fact holds on EVM:
When you sign EIP-712 typed data through the viem v2 or ethers v6 integration or the wagmi connector, the Para SDK sends the typed data with its hash. Para checks that the two match and evaluates the request as
sign_typed_data, the same as the REST API’s sign-typed-data route, so request.typedData.primaryType, request.approvalLike and the chain ID from the typed data’s domain apply. Para evaluates these SDK requests as sign_message, with no chain ID: EIP-7702 authorizations, typed data signed through the viem v1 or ethers v5 integration, and a typed data hash that your code signs with signMessage. The sign_authorization action and its facts apply only to the REST API’s sign-authorization route, which the REST SDK calls.
Para decodes ERC-20 and NFT calls itself. It uses curated integration ABIs for supported calls to its listed Aave pools and Morpho routers and vaults on the matching network. Other contract calls use the contract’s verified ABI from a block explorer. Calls it cannot decode have the classification undecodable_contract_call and no request.method, request.args[n] or request.to.
A native send that carries any calldata is call_contract, not transfer_native. request.value.baseUnits is present on every EVM transaction, "0" when it attaches no value, so a native amount cap can name both actions.
For numeric contract argument comparisons, use request.uintArgs[n]; request.args[n] keeps its string operators. See Contract argument limits for complete Aave and Morpho deposit policies, existing transfer controls, withdrawal semantics and missing-fact behavior.
request.raw.opaque is in the catalog, but no rule can read it. Para sets it only on raw signatures, and raw_signature rules read only para.wallet.* facts, so validation rejects it with fact_action_unsupported on every action.Safe payments
Therequest.safe.* facts describe the payment inside a Safe transaction. Para reads them from three kinds of request:
- An
execTransactioncall, or a module’sexecTransactionFromModuleorexecTransactionFromModuleReturnDatacall, with the actionexecute_safe_transaction. - A
SafeTxEIP-712 message signed as typed data, such as one sent to RESTsign-typed-data, with the actionsign_typed_data. Its domain must hold onlychainIdandverifyingContract, its message must hold exactly theSafeTxfields, and itstypesmust declare onlySafeTx, optionally with anEIP712Domainof those two fields; otherwise Para treats it as opaque. ASafeTxhash that the Para SDKs sign as a message arrives assign_messageand has no Safe facts. - A
SafeOpEIP-712 message for a Safe 4337 user operation, with the actionsign_typed_data.
SafeOp only when all of these hold; otherwise it is opaque:
- Its domain holds only
chainIdandverifyingContract.verifyingContractis Safe4337Module v0.2.0 and the message’sentryPointis EntryPoint v0.6, or the module is v0.3.0 and the EntryPoint is v0.7. - Its message holds exactly that module version’s
SafeOpfields, and itstypesdeclare onlySafeOp, optionally with anEIP712Domainof the two domain fields. - Its
callDatais anexecuteUserOporexecuteUserOpWithErrorStringcall in its canonical ABI encoding. - Its
initCodeis empty, so it does not deploy the Safe. - A paymaster pays the gas:
paymasterAndDatastarts with an address other than the zero address.
SafeOp.
operationis0, a Call. A DelegateCall is never a payment.gasPriceis0, so the Safe pays no gas refund.- The inner
tois not the Safe itself. - The inner call is a plain native transfer, or one ERC-20
transferortransferFromthat sends no native value.
request.target or request.sourceAccount.
A readable payment provides request.safe.to and the two facts of its payment family. The facts of the other family are not applicable.
A condition on a fact of the other family is not applicable and never matches. A rule that reads only native payment facts therefore does not apply to an ERC-20 payment, or the reverse, and the request goes on to your other rules or the default.
A zero-amount payment is still readable. Its amount conditions are evaluated as usual, so
"op": "gt", "value": "0" does not match it, and the other family stays not applicable.
On every other Safe transaction, request.safe.innerDecoded is false. Para reads some of these as Safe contract calls. The rest are opaque: their payment amount, asset and recipient facts are missing. Opaque transactions include:
- DelegateCalls, other than a MultiSend batch Para reads, and DelegateCall entries in a batch.
SafeTxorSafeOptyped data in another shape, such as a domain with extra fields.- Transactions with a nonzero
gasPrice. - Calls to the Safe itself. Para reads owner, threshold, module, guard and fallback handler changes as
settings_changecalls; see Safe contract calls. - Contract calls that send native value, including an ERC-20 transfer that also sends native value.
- Calls to a contract whose ABI Para cannot get, and calldata Para cannot decode.
request.safe.innerDecoded with eq and false. This boolean is available even when the payment is unreadable, so the rule does not depend on a missing amount or recipient. The rule also denies contract calls that Para reads.
Three facts are the same for a readable payment and an opaque transaction: request.classification, request.method and request.typedData.primaryType. Use request.safe.innerDecoded to distinguish readability. On execute_safe_transaction, the decoded execTransaction arguments also separate DelegateCalls and gas refunds: request.args[3] is the operation and request.args[6] is the gasPrice. Both are "0" in every readable payment, except that request.args[3] is "1" for a MultiSend batch.
To scope a Safe recipient rule to SafeTx typed data, add a request.typedData.primaryType test to an all group:
request.safe.to names the inner recipient whatever native value the outer call carries. On execute_safe_transaction, constrain request.value.baseUnits as well. sign_typed_data has no request.value.* facts, so a rule that reads them cannot name both actions.
This Guardrail covers app-owned wallets that execute Safe transactions on Base. The first rule denies every Safe transaction that is not a readable payment, including contract calls. The second denies readable payments to anyone except two recipients. It does not cover direct calls to the Safe; see Direct calls to the Safe.
The third rule denies a USDC payment that would take the Safe past 50,000 USDC in the current day. It counts only readable payments, including each readable payment in a MultiSend batch, so on its own it would not stop a DelegateCall, a gas refund, a contract call or a batch with an unread call; the readability rule denies those. A payment that passes all three rules falls to the Guardrail default, and the wallet signs it.
safe-payouts.json
Safe contract calls
Para reads a plain contract call inside a SafeexecTransaction call, SafeTx typed data or a readable SafeOp, both when Para signs the request and when it collects the owner signatures. It reads the call inside a SafeOp by the same rules as a SafeTx call. A plain call has operation 0, a gasPrice of 0 and a value of 0, carries calldata, and does not call the Safe itself. Para decodes it the same way as an outer contract call, with a curated integration ABI or the contract’s verified ABI. When it decodes the call, request.safe.callKind is contract_call and the request carries request.safe.abi.selector, request.safe.contract.address, request.safe.args[n] and request.safe.uintArgs[n]. request.safe.innerDecoded stays false, and the Safe payment facts do not apply.
A condition on
unread also matches settings_change, so a rule that denies unread calls also denies settings changes. To leave settings changes out of such a rule, add a request.safe.callKind ne settings_change condition in an all group. A user’s consent to a Request never allows a settings change.
On execute_safe_transaction, request.abi.selector, request.args[n] and request.uintArgs[n] still describe the outer execTransaction call.
Validation applies three rules to the Safe call facts:
This rule denies a Safe’s
supply(address,uint256,address,uint16) call to one pool when it supplies more than 100 USDC on Base:
For a proxy contract whose ABI comes from a block explorer, the explorer returns the proxy’s ABI instead of the implementation’s. Para then cannot decode the call, and
request.safe.callKind is unread.execute_safe_transaction and sign_typed_data, and neither pattern blocks typed data such as a Permit. Both deny every SafeMessage and every settings change:
- To allow only readable Safe payments, deny when
request.safe.innerDecodedeqfalse. This also denies every Safe contract call. - To also allow the contract calls you list, deny when
request.safe.callKindequnread, and deny acontract_callwhose contract or selector is not on your list:
Direct calls to the Safe
An owner wallet that calls the Safe directly, such asapproveHash(safeTxHash) to approve a payment on chain, sends a call_contract with no Safe facts, so Safe rules and Safe spend limits never see it. A rule that reads Safe facts cannot name call_contract; validation fails with fact_action_unsupported. To block these calls, deny every call_contract whose request.target is the Safe:
execTransaction stays under your Safe rules. A module’s execTransactionFromModule call to the Safe is an execute_safe_transaction, not a call_contract, so this rule does not cover it. Use require_approval instead of deny to hold these calls for review. request.target is always present and compared without case, so the rule works whether or not Para decodes the call. A method-only rule cannot provide that boundary: it can be skipped when the method is missing because of a decode gap.
Solana
Solana’s catalog separates native and token transfer facts from program targets.
On Solana, Cosmos, Stellar and Sui,
request.actionFamilies lists the kinds of action a transaction contains. A transaction with exactly one action carries that action’s recipient, target and amount facts when Para can read them. Cosmos retains request.target when MsgExecuteContract is the transaction’s only message, even if attached funds add transfer actions. Solana compute budget instructions do not count as an action. Creating the recipient’s associated token account does not count either when the transaction’s only other instruction is a TransferChecked that follows it and sends that token to the new account. Every other instruction counts, such as a Memo or wrapping SOL.
Para judges a transaction with 2 to 64 calls one call at a time. A call is a Solana instruction, a Cosmos message, a Stellar operation or a Sui command. Each call carries its own request.target, request.function, request.to and request.sourceAccount. Its amount facts hold the transaction’s total of the asset the call moves, so an amount cap judges the whole transaction. A deny on any call denies the transaction, then a review or an approval applies, then an allow. When calls need different reviews, the review of the first of those calls applies. A call that Para reads only by its target, such as a program call, or cannot read at all, is a decode gap. Para skips a rule that needs a fact the call does not have, and the Para baseline decides the call. A transaction with more than 64 calls is judged as one request.
Otherwise, a transaction with several actions carries a total only when every action is a transfer, Para reads every amount, and every transfer moves the same asset. The total is in request.value.* for the native asset or request.token.* for a token. request.to is present only when every transfer has the same recipient, and request.target only when every transfer has the same target. For example, a payout and a fee in the same token to different recipients carry their total but no request.to. The exception is a Cosmos transaction whose only message is a MsgExecuteContract: it carries the total of its funds when every coin is the same asset. See Cosmos.
request.total.value.baseUnits and request.total.token.value.baseUnits hold the total native or token amount of every readable transfer in the transaction. A transfer whose amount Para cannot read is not counted, and the token total is present only when the transfers move exactly one token. In a transaction with several calls, a call that Para cannot read in full has no total, so Para skips a rule on the total for that call.
A user’s consent to a Request never allows a Solana, Cosmos, Stellar or Sui call that Para reads only by its target or cannot read, even when it is the transaction’s only call. The user reviews the transaction instead.
request.sourceAccount is the one account that every action of the transaction spends from. It is missing when the actions spend from different accounts, and a rule that reads it then cannot be judged. In a transaction with 2 to 64 calls, each call carries its own source account instead.
request.tois the recipient of a SOL transfer. For a token transfer it is the destination token account. A wallet address in your condition also matches that wallet’s associated token account for the transfer’s mint, for SPL Token and Token-2022. Another token account the wallet owns does not match.request.targetis the program the instruction calls.- Solana has no
request.function. request.sourceAccountis the account a SOL transfer spends from, or the owner or authority of a token transfer. A program call has none, so a transaction that includes one as an action has norequest.sourceAccount.request.token.assetnames the mint, assolana:token:<mint>. It does not identify the cluster, so select the network in the policy’schainId.- Para reads a token transfer’s recipient, amount and mint only from a
TransferCheckedinstruction. A plainTransferorTransferCheckedWithFeehas none of these facts, and token spending limits do not count it.
solana-usdc-payouts.json
Cosmos
Cosmos facts distinguish bank sends from contract calls. The notes below describe which requests provide recipient, target and amount fields.request.tois the recipient of a bank send. An IBCMsgTransferand the funds of aMsgExecuteContracthave norequest.to.request.targetis the contract a singleMsgExecuteContractcalls. Transfers have none.request.sourceAccountis the signer of each message.request.functionis the message’s type URL.- A bank send is a native transfer only in the chain’s native denom, on
cosmoshub-4,noble-1,osmosis-1,celestia,dydx-mainnet-1andinjective-1. Any other denom, or any bank send on another chain, is a token transfer. - Para also reads the amount of an IBC
MsgTransferand of each coin in thefundsof aMsgExecuteContract. Each is atransfer_nativeortransfer_tokensaction by the same denom rule as a bank send, and its amount counts toward spending limits even when the transaction has other messages. - Para reads an IBC transfer’s amount only when the message has no field other than the ICS-20 fields
source_port,source_channel,token,sender,receiver,timeout_height,timeout_timestampandmemo. A transfer with another field, such astokensfrom ibc-go v9, has no amount. - When a transaction’s only message is an IBC transfer, it carries the transfer’s amount. Its missing
request.tois a decode gap, so Para skips arequest.torule, and other rules and the Para baseline decide the transaction. - When a transaction’s only message is a
MsgExecuteContractand every coin in its funds is the same asset,request.value.*orrequest.token.*holds the total of the funds, and acall_contractrule can read it. A contract call without funds has no amount, and Para skips an amount rule on it. - A rule that reads
request.toblocks a funded contract call. So does an amount rule when the funds hold more than one asset, or none of the rule’s asset, such as a native amount rule on a call funded only with a token. - As on Solana, Para judges each message of a transaction with 2 to 64 messages on its own facts.
Stellar
Stellar facts cover payments and contract calls; the notes below explain operation-specific availability.request.tois the destination account of a payment. Para reports a muxedM...destination as its baseG...account, so a rule on aG...account also covers that account’s muxed addresses. Two muxed addresses of one account still count as different recipients, so a transaction that pays both, or pays the account and one of its muxed addresses, has norequest.to.request.targetis the contract a SorobaninvokeContractcall targets.request.sourceAccountis each operation’s source account, or the transaction’s source when an operation sets none. For a fee bump, it is the inner transaction’s source. Para reports a muxed account as its baseG...account.request.token.assetandrequest.value.assetinclude the network, so a condition written forstellar:testnetdoes not match on mainnet.- As on Solana, Para judges each operation of a transaction with 2 to 64 operations on its own facts.
request.functionis the Soroban function of a contract invocation, or else the operation type.createAccountis atransfer_native. A path payment and acreateClaimableBalancecarry the action of the asset they send:transfer_nativefor XLM andtransfer_tokensfor another asset.- Para reads the amount a path payment or a claimable balance sends:
sendAmountforpathPaymentStrictSend,sendMaxfor apathPaymentStrictReceivethat converts assets,destAmountfor one that does not convert, andamountfor a claimable balance. The amount is inrequest.value.*orrequest.token.*, and it counts toward spending limits and transfer totals. - A path payment converts assets unless
sendAsset, every asset inpathanddestAssetare the same asset. A path payment that does not convert hasrequest.to, the same as apayment. A path payment that converts and a claimable balance have norequest.to. When one of them is the transaction’s only operation, Para skips a rule that cannot be judged only becauserequest.tois missing, and other rules and the Para baseline decide the transaction. - The exception is a path payment whose
sendAsset,pathanddestAssetinclude both XLM and another asset, such as XLM to USDC or USDC to EURC through XLM. Para does not skip arequest.torule for it, so that rule blocks the transaction. accountMergeis atransfer_nativewith no amount, so spending limits do not count it.
Co-signed Stellar transactions
Para evaluates a Stellar transaction that your wallet signs for another account, such as a multisig account where the wallet is one of the signers. The other account can be the transaction source, an operation source, or the source of a fee bump’s inner transaction. Your Guardrails, Requests, approval requirements and the Para baseline apply as they do to a transaction that spends from the wallet’s own account. Para does not check on chain that the wallet is a signer of that account.request.sourceAccount names the account the transaction spends from. The source account limits cap that account’s spend across every wallet of yours that signs for it.
On Solana, Cosmos and Sui, Para denies a transaction with
unsupported-request when the signing wallet is not one of its required signers.Sui
Sui exposes native transfer and Move call facts. The notes below describe transfer families and the limits of token authoring.request.tois the recipient of a SUI transfer.request.targetis the package a Move call targets.request.functionis the module and function of a Move call, asmodule::function. Other commands have none.request.sourceAccountis the transaction’s sender. It is missing when a sponsor pays the gas and a command uses the gas coin.- Sui has no
transfer_tokensaction, authorable token facts or token spending limits. Only a rule that names"all"covers Sui token transfers. With trusted coin evidence, a readableSplitCoinsfollowed byTransferObjectscan reporttoken_transferinrequest.actionFamilies; unrecognized transfers reportother. - As on Solana, Para judges each command of a transaction with 2 to 64 commands on its own facts.
Classification values
request.classification accepts these 22 values on every wallet type. Values that a wallet type never produces never match, and a value outside this list fails validation with value_not_allowed_for_fact.
Only a rule with
"actions": "all" can read the classification of a raw signature, evm.raw_signature or raw.opaque_message. A rule that names raw_signature reads only para.wallet.* facts.
Metered facts
Metered facts read the spend Para tracks for a wallet, a Safe or a Stellar source account over a time window. Use them only inaggregate conditions; a compare condition on a metered fact fails with metered_fact_window_required.
The Actions column covers all wallet types. On EVM,
wallet.spend.native is available to all seven listed actions, because any EVM transaction can send native value. On Solana, Cosmos, Stellar and Sui it is available only to transfer_native. wallet.spend.token does not apply to Sui, which has no token transfer action. safe.spend.native and safe.spend.erc20 count only Safe payments; see Safe spend. sourceAccount.spend.native and sourceAccount.spend.token count the spend of a Stellar transaction’s source account; see Source account spend.wallet.yield.authorizedDeposit counts the USDC that a wallet deposits into a supported Aave or Morpho yield market each UTC day. Token approvals and withdrawals do not count. A rule that reads it must use actions: "all", a "24h" window, a positive value and an asset, and no parameter or approvalRequirement. The policy selector must set walletType: "EVM" and the market’s chainId. In a Guardrail, use it in a deny rule with gt. In a Request, use it in an allow rule with lte, in an all group of two conditions: the aggregate first, then a request.gas.maxExecutionCost lte condition with a positive value. Any other shape fails with yield_deposit_budget_invalid.
Windows
window is a positive integer followed by a unit: ms, m, h or d, such as "30m", "24h" or "7d". There is no week or month unit. The Developer Portal form writes windows in hours, "24h" for a day and "168h" for a week, and the examples on these pages follow it.
Windows are fixed buckets aligned to 1970-01-01 00:00 UTC, not rolling periods. A 24h window resets at 00:00 UTC every day, and a 168h window resets every Thursday at 00:00 UTC.
A policy can use only one window length for each metered fact. "24h" and "1d" count as the same length, but "24h" and "168h" on the same fact fail with metered_fact_window_conflict. To enforce both a daily and a weekly limit, put them in separate policies.
What the limit compares
Para compares the spend already recorded in the current window, plus spend reserved by requests still in progress, plus the current request’s amount, againstvalue. A rule with "op": "lte", "value": "1000000" therefore matches while the total after this request stays at or below 1,000,000.
What counts
Metering counts the transfer forms below, which can be narrower than a rule’s action coverage.
On
execute_safe_transaction, wallet.spend.native counts only the native value the signing wallet attaches to the outer call. The payment the Safe makes, in an execTransaction call, a SafeTx or a SafeOp, counts toward Safe spend instead.
Gas and network fees never count, except the gas prefund that a SafeOp without a paymaster takes from the Safe, which counts toward safe.spend.native. On Solana and Sui, metering needs a network proven from the signed transaction; if configured proof endpoints prove no network, Para denies the request with network-unverifiable. On Cosmos, native spend counts only on the chains listed in Cosmos.
When a request has nothing to count for a condition, such as a zero-value transaction or a transfer of another token, the condition is not applicable and the rule does not match through it. Readable Solana native transfers and TransferChecked token transfers are summed by asset for metering. When the transaction holds only readable transfers of one asset, that sum is also its amount fact. Metering uses the sum even when the transaction has no amount fact. A meter whose applicable amount cannot be resolved is indeterminate.
Budgets
Each budget is kept per wallet, network, asset and window length.- A token limit with
assetcounts only that token. An EVM token limit withoutassetkeeps a separate budget for each token. wallet.spend.erc20andwallet.spend.tokenshare the same budget on EVM.- On EVM, a token limit in a rule that names
sign_typed_dataalso counts ERC-2612 permits, at the permit’svalue, when the permit’sowneris the signing wallet. Permits and transfers of the same token share one budget. A limit in a rule that names onlytransfer_tokensdoes not count permits. Para reads a permit only whenprimaryTypeisPermit, the type lists exactlyownerandspenderasaddress, thenvalue,nonceanddeadlineasuint256, and the domain setschainIdand the token asverifyingContract. DAI-style permits and Permit2 carry no token facts and do not count. - Budgets are shared across your policies and rules. Two rules that meter the same wallet, network, asset and window read the same spend.
- A selector with several networks does not pool them. A daily limit on Ethereum and Base allows that amount on each network.
- Safe spend budgets are kept per Safe instead of per wallet. See Safe spend.
- Source account spend budgets are kept per source account instead of per wallet. See Source account spend.
When spend is recorded
Para reserves the request’s amount before signing and records the spend when the signing operation succeeds. Para can release the reservation when it knows signing did not proceed. If a dispatched call fails while the signer outcome is uncertain, the amount can remain reserved. A request adds to a budget only when a rule that meters that budget covers it: the rule that decided the request, a matchingallow rule, or a deny or require_approval rule whose other conditions match the request. A payment that falls outside a limit rule’s other conditions, such as a transfer to a recipient the rule does not name, does not count toward that limit.
Spend is reserved only for requests Para allows. A request approved through require_approval can take a budget past its limit. So can a request that went past an allow rule’s limit and was then approved, for example by the user in the review pop-up. It still counts toward that limit when the rule’s other conditions match it. If another request uses up the budget between the decision and the reservation, Para denies the request. The denial reason is windowed-spend-limit-exceeded.
Safe spend
safe.spend.native and safe.spend.erc20 count readable Safe payments from execTransaction calls, SafeTx typed data and SafeOp typed data. Wallet limits do not count these payments.
- In a MultiSend batch, a limit counts the total of the batch’s readable payments of its asset. Unread calls do not count.
safe.spend.nativealso counts the EntryPoint gas prefund that aSafeOpwithout a paymaster takes from the Safe, also when Para does not read the call.- Each budget is kept per API key, Safe, network, asset and window length. Your Guardrails and Requests share it: every
safe.spendrule with that window length reads the same spend, whichever wallet signs. - Owners who sign the same
SafeTxorSafeOphash share one count. AnexecTransactioncan use a counted co-signature’s credit when the payment matches, that co-signature has not already covered another execution, and Para recovers its signer from the first signature slot. A request covered by an already-counted key or this execution credit adds nothing, so the limit does not block it. safe.spend.erc20withoutassetcounts every ERC-20 payment, with a separate budget for each token. It cannot judge a batch that pays two tokens, so a rule with that limit can deny the batch. Setassetfor a Safe that batches payments in several tokens.- A zero-amount native payment does not count, and neither does an ERC-20
transferFromthat pulls tokens from an address other than the Safe. The condition is not applicable to them.
Execution credit supports ECDSA signatures with
v of 27 or 28, in hex buffers with at most 32 complete 65-byte slots. Only the first complete slot is inspected. A matching signature in a later slot, another signature mode or failed signer recovery receives no credit, so the execution counts separately unless its own request count key was already counted.Source account spend
On Stellar,sourceAccount.spend.native and sourceAccount.spend.token limit the spend of the account a transaction spends from, request.sourceAccount. Use them for an account that several of your wallets co-sign, such as a multisig account. See Co-signed Stellar transactions.
- Each budget is kept per API key, source account, network, asset and window length. A muxed account counts as its base
G...account. - Every wallet of yours that signs for the source account adds to the same budget. Para counts a transaction once by its hash, even when several of your wallets sign it. For a fee bump, Para uses the inner transaction’s hash.
- The limits count the same Stellar transfers as
wallet.spend.*. See What counts. wallet.spend.nativeandwallet.spend.tokenstill meter the signing wallet.- A policy for another wallet type that reads these facts fails validation with
fact_wallet_type_unsupported.
Reading usage
Read current spend withgetUserPolicyUsage in the client SDKs or getPolicyUsage in the REST SDK. Each meter reports the window, its reset time, and the committed, reserved and used amounts. Meters for allow rules that use lt or lte outside not and any also report the remaining amount. Each limit condition is its own meter, so when one rule has two limits on the same fact and window, the rule allows only the smaller remainingBaseUnits. See Permissions types for the response shape.
Safe meters appear only when the usage request passes safeAddress. In the client SDKs, they also need one of the user’s wallets to have made a payment request that Para metered against that Safe on that network. Source account meters do not appear in the usage report.
User-adjustable parameters
A Request can let each user set their own amount for a limit. Add aparameter to a compare or aggregate condition, and its value becomes the default.
- Only Request policies can be personalized. A Guardrail with a parameter validates, but its default always applies.
- A user who changes their values must consent to the policy again.
- A user can save only values within
minandmax. Saving another value fails with400and the messageuser parameter values are invalid. At signing, Para denies a saved value outside the bounds withparameter_configuration_invalid.