The transaction amount limit rule
Policies come in two rule kinds: a transaction amount limit, and an allowlist (see Allowlist mode). For each amount limit policy you choose:- A name (up to 64 characters), which appears in the error when the policy blocks a transaction
- A chain
- A token — the chain’s native asset, a listed stablecoin, or a custom token (contract address on EVM/Tron, or mint address on Solana) along with its decimals
- A per-transaction cap, entered in display units (e.g.
0.5ETH,100USDC) - Optionally, up to 100 recipients the cap applies to
Limiting what goes to specific recipients
Add recipients to cap what a single transaction can send to particular addresses, for example “at most 1,000 USDC to this exchange”. The policy then counts only what the transaction sends to the listed recipients, adds it up across all of them, and blocks the transaction when that total is over the cap. Whatever the transaction sends to other addresses doesn’t count. Leave recipients empty to block any transaction above the cap, whoever receives it. A recipient is the address that ends up with the funds, not the contract the transaction calls:- Native sends: the transaction’s
to - Token transfers: the address the token pays, not the token contract. On EVM and Tron that’s the
toof atransfer, or of atransferFrom - CCTP transfers (EVM): the mint recipient on the destination chain. A transfer to Solana mints to a token account rather than a wallet, so it doesn’t count toward EVM recipients
- Tron contract calls: TRX sent with a contract call counts toward the contract itself
T…).
Amounts add up across the whole transaction, so a batch of several calls (for example an Account Abstraction user operation) that each stay under the cap is still blocked when together they go over it.
Allowlist mode
An allowlist turns the policy engine around: instead of blocking what you name, it blocks every transaction that pays or calls an address you haven’t approved. Each environment can have one enabled allowlist, with two lists of up to 100 entries each:- Recipients: the addresses a transaction may pay
- Contracts: the contracts (programs on Solana) a transaction may call when Portal can’t decode what the call pays
How a transaction is judged
The allowlist checks every call in a transaction: each call of an Account Abstraction user operation, each Solana instruction and each entry of a Tron transaction. The first address that isn’t listed blocks the whole transaction. A call Portal can decode is judged by the address it pays, its recipient, so token contracts don’t need listing. Any other call, such as a swap, is judged by the contract it calls. EVM chains- A call without data is a native send, judged by its
toas a recipient. - An ERC-20
transferortransferFromis judged by the address it pays. - A token approval is judged by the address it lets pull the wallet’s tokens: the spender of an
approve, anincreaseAllowanceor apermit(EIP-2612, DAI’s form and USDC’s form that takes abytessignature), and the operator of an ERC-721 or ERC-1155setApprovalForAll. A revoke (anapproveor EIP-2612permitof0,setApprovalForAllwithfalse, or a DAIpermitwithallowedset tofalse) pays no one, so it passes. - An EIP-3009
transferWithAuthorizationorreceiveWithAuthorization, including USDC’s forms that take abytessignature, is judged by itsto. - A CCTP burn (
depositForBurnordepositForBurnWithHook) is judged by its mint recipient on the destination chain. A burn to Solana mints into a USDC token account, which passes when it’s the associated token account of a listed Solana wallet. - When one of these decoded calls also sends native value, its
tomust be a listed recipient too. - Any other call is judged by its
to, which must be on the contracts list, even when the call also sends native value. - A call with no
to(a contract deployment), calldata that doesn’t decode, and a CCTP burn to a domain Portal doesn’t map are blocked. - A transaction with an EIP-7702 authorization list is blocked, because it hands the wallet’s code to another contract.
- List wallet addresses as recipients, not token accounts. Wrapping SOL is the exception (see Before you enforce).
- If your environment pays fee collectors, list each one as a recipient.
- SOL transfers are judged by the wallet they pay.
- A
TransferCheckedtoken transfer passes when it goes into a listed wallet’s associated token account for that token. - Token approvals (
ApproveandApproveChecked) are judged by their delegate, andCloseAccountby the account that receives the closed account’s SOL. - A CCTP burn is judged by its mint recipient on the destination chain.
- Compute budget and memo instructions, creating an associated token account, advancing a durable nonce and
SyncNativemove nothing worth judging, so they pass. - An instruction to any other program is judged by its program id, which must be on the contracts list. The System, Token and Token-2022 programs are never contracts, and you can’t list them: the allowlist judges where they send value instead.
- A plain SPL
Transferis blocked, because it doesn’t name its token, so its destination can’t be tied to a wallet. Other System and Token instructions are blocked too (for exampleCreateAccount,InitializeAccount,MintTo,Burn,RevokeandSetAuthority), and so is every transaction that uses an address lookup table.
- List addresses in base58 form (
T…). - TRX transfers are judged by their recipient.
- In a smart contract call, TRC-20 token calls are judged as on EVM chains: a
transferortransferFromby the address it pays, and an approval or authorization (approve,increaseAllowance,permit,setApprovalForAll,transferWithAuthorization,receiveWithAuthorization) by its spender, operator orto. A revoke, such as anapproveof0, passes. When the call also sends TRX or a TRC-10 token, the contract must be a listed recipient too. A call without data pays the contract, so the contract must be a listed recipient. Any other call is judged by its contract, which must be on the contracts list, even when it also sends TRX. - Every other kind of Tron transaction is blocked, including TRC-10 transfers, freezing, delegating resources and voting.
raw sign not built through Portal; Stellar’s show as chain not supported by allowlist.
Monitor-only and enforce
An allowlist is either monitor-only or enforced, and a new one defaults to monitor-only.- Monitor-only blocks nothing. Portal logs each transaction, signature and Agg call the allowlist would have blocked and counts it by reason, such as an unlisted recipient or contract, a call Portal couldn’t read, an unsupported chain, a raw sign or message signing. While the saved allowlist is monitor-only, the Allowlist panel on the dashboard’s Policies page shows the totals for the last 7 UTC days, today included, by reason and by day.
- Enforce blocks them.
Before you enforce
These are the cases that most often block traffic an app relies on. Check for them in the monitor-only counts, and list the addresses you need:- Your own wallets. The allowlist doesn’t know which addresses belong to the wallet that signs, so a transfer between your users’ wallets, or a CCTP transfer to the same wallet on another chain, needs the destination listed.
- Wrapping SOL. Wrapping sends SOL to the wallet’s own wSOL token account, so list that token account as a recipient. It’s the one case where a Solana recipient is a token account rather than a wallet.
- DEX routers. A swap calls the router, so list it as a contract. A token approval to the router is judged by its spender, so list it as a recipient too.
- Solana swaps through aggregators. Jupiter and most other aggregators use address lookup tables, which the allowlist can’t read, so their swaps are blocked even when every program is listed.
- Tron staking. Freezing TRX, delegating resources and voting are blocked.
- Integrations. Agg and CCTP have their own rules, described in How integrations are affected.
Message signing and raw signs
A signed message can authorize a transfer the allowlist never sees, for example a token Permit that lets a spender pull funds. So the allowlist blocks message signing (personal_sign, eth_sign, eth_signTypedData in all its versions, sol_signMessage and tron_signTypedData) unless you turn on “Allow message signing”. With it on, users can sign Permit, Permit2 and other typed data, sign-in prompts and text messages.
Even with message signing on, a personal_sign or eth_sign message that is a bare 32-byte hash (0x and 64 hex characters) is blocked unless Portal built that hash. Every raw sign (POST /v1/raw/sign/{curve} on the Enclave MPC API, or rawSign in the SDKs) is held to the same rule, whatever the setting. Smart accounts accept a signed hash as approval for a transaction, so a hash Portal didn’t build could move funds the allowlist never checked.
Portal built a hash when build-user-operation or a CCTP transfer returned it as the user operation hash to the same client in the last 10 minutes, after the allowlist had checked its calls. Account Abstraction clients that build through Portal keep working: sign userOpHash within 10 minutes of building it. Portal only records the hash while an allowlist is enabled, so a user operation built before you enabled it has to be built again. A user operation you build yourself can’t be signed while the allowlist is enforced.
How integrations are affected
Agg and CCTP move funds in ways the allowlist judges differently from a transaction you sign yourself.Agg
While the allowlist is enforced, Agg orders, redemptions and withdrawals are refused. Agg moves those funds from its own custody without Portal signing anything, so the allowlist can’t see where they go. Funds already in Agg stay there, and can’t be withdrawn through Portal until you switch the allowlist back to monitor-only or disable it. A monitor-only allowlist lets these calls through and counts them. Funding Agg is an ordinary transfer to the user’s Agg deposit address, so it passes only when that address is a listed recipient. Deposit addresses are per user, so an enforced allowlist effectively blocks funding Agg.CCTP transfers
A CCTP transfer passes only when every address it pays is a listed recipient: the mint recipient on the destination chain, your fee address when you charge a fee, and Circle’s TokenMessenger when the transfer starts with anapprove, which names it as spender. For a transfer to Solana, list the recipient’s wallet, not its USDC token account.
When the allowlist blocks
No signature is produced.POST /v1/sign, POST /v1/raw/sign/{curve} and POST /v1/assets/send on the Enclave MPC API fail with HTTP 400:
403 with the policy that blocked it:
403 with the id POLICY_VIOLATION and the policy in details.policyViolation, as they do for amount limits.
Match on the POLICY_ALLOWLIST_BLOCKED identifier. The reason tells you what to change. Portal adds (<policy name>) to every reason and cuts it short when the policy name is long:
Supported chains
- EVM chains — Ethereum, Sepolia, Polygon, Base, and Monad (mainnet and testnet) out of the box; amount extraction works on any
eip155chain - Solana — mainnet and devnet
- Tron — mainnet, Shasta, and Nile testnets
How enforcement behaves
All enabled policies in an environment are evaluated for every transaction. If any policy’s rule matches, the transaction is blocked; if none match, the transaction proceeds. An enforced allowlist also blocks every transaction that pays or calls an address it doesn’t list, and returns its own error (see When the allowlist blocks). When a policy blocks a transaction, the request fails with HTTP400 and no signature is ever produced. Both POST /v1/assets/send and POST /v1/sign on the Enclave MPC API return the same body:
POLICY_AMOUNT_LIMIT_EXCEEDED identifier rather than on the message text. Responses also carry a legacy numeric code, which is deprecated.
For Account Abstraction clients, policies also run when Portal builds the user operation. When one blocks it, build-user-operation returns HTTP 403 with the same identifier and the policy that blocked it:
403 with the id POLICY_VIOLATION instead.
Managing policies on the dashboard
Step 1: Click on “Policies” in the left sidebar, under Configuration. Step 2: Click “Create policy,” choose a chain and token, set your per-transaction cap, optionally add recipients, and save. Each policy holds one rule. Once created, a policy appears in your list with a toggle and a delete action:- Toggle — enable or disable the policy without deleting it. Disabled policies are not evaluated.
- Delete — permanently remove the policy.
Setting up the allowlist
Step 1: On the Policies page, click “Set up allowlist” in the Allowlist panel. A new allowlist starts Monitor-only, so nothing is blocked while you see what it would block. Step 2: Name the allowlist, then paste recipient and contract addresses and press Enter or click “Add”. Addresses are grouped by chain family (EVM, Solana, Tron). Each recipient starts on every chain of its family and each contract on one chain; click an address’s chains to pick others. You can give any address an optional label. Turn on “Allow message signing” if your app needs users to sign messages, then click “Create allowlist”. Step 3: Back on the Policies page, the Allowlist panel shows what the allowlist would have blocked in the last 7 days: a total, the counts per day, and the counts by reason. Click “Edit” to add any recipients or contracts your app needs. If message signing is counted and your app relies on it, click “Allow message signing” in the panel. Step 4: When the counts show nothing your app relies on, click “Enforce” in the panel’s Off / Monitor-only / Enforce control. The dashboard lists what enforcing will block and asks you to confirm. Click “Edit” at any time to change the name, the lists or message signing. While the allowlist enforces, saving a change that removes an address, or takes it off a chain, asks you to confirm first. Switching from Enforce back to Monitor-only, or turning the allowlist Off, asks you to confirm too. Would-block counts are collected only while the allowlist is Monitor-only, so the panel doesn’t show them under Enforce or Off. Only one allowlist per environment can be on. Allowlists created through the API beyond the first are listed under “Other allowlists (created through the API)” and stay off.Scope & caveats
Policy Engine v1 is intentionally scoped. A few things to keep in mind:- Per-transaction only. Limits are compared against a single transaction’s amount. Velocity or cumulative limits (e.g. “no more than $1,000 per day”) are on the roadmap but not yet available.
- Direct transfers are covered, not everything that moves value. Token limits inspect direct
transfer/transferFromcalls on EVM and Tron, and SPL transfers on Solana, bothTransferCheckedand plainTransfersent from a wallet’s associated token account. Value moved through arbitrary contract calls, approve-then-pull flows, or non-standard token accounts is not currently inspected. - Raw-signed payloads can’t be policy-checked. If your integration signs an opaque hash rather than a structured transaction, Portal has no transaction contents to evaluate against a policy, by design. An enforced allowlist blocks raw signs unless Portal built the hash.