azeth_whitelist_protocol
Whitelist or delist a contract address for your smart account to enable automated operations through executor modules like PaymentAgreementModule.
Instructions
Add or remove a protocol (contract address) from your smart account's guardian whitelist.
Use this when: You need to interact with a new DeFi protocol or contract through executor modules (like PaymentAgreementModule). Protocols must be whitelisted for automated operations to succeed.
The "protocol" field must be a valid Ethereum address of the contract to whitelist.
Returns: Confirmation of the whitelist update with transaction hash.
Note: This requires a UserOperation (gas). Only the account owner can modify whitelists. Whitelisting a protocol allows executor modules to interact with it on your behalf. Whitelist additions require guardian co-signature for security.
Example: { "protocol": "0x71D52798e3D0f5766f6f0AFEd6710EB5D1FF4DF9", "allowed": true }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | Target chain. Defaults to AZETH_CHAIN env var or "baseSepolia". Accepts "base", "baseSepolia", "ethereumSepolia", "ethereum" (and aliases like "base-sepolia", "eth-sepolia", "sepolia", "eth", "mainnet"). | |
| protocol | Yes | Protocol/contract address to whitelist or delist (0x...). | |
| allowed | Yes | true to whitelist, false to remove from whitelist. | |
| smartAccount | No | Smart account address, name, or "#N". Defaults to first smart account. |