@vault:isOperator
Whether an account is an approved operator of a controller on an ERC-7540 vault.
Returns: bool
Syntax
Section titled “Syntax”@vault:isOperator(vault operator controller?)Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
vault | address | ERC-7540 vault address |
operator | address | Operator account to check |
[controller] | address | Controller the operator would act for (defaults to the connected account) |
Examples
Section titled “Examples”# Check whether an account can request and claim on your behalfload vault
switch mainnetprint "operator:" @vault:isOperator(0xFE6920eB6C421f1179cA8c8d4170530CDBdfd77A 0x4F2083f5fBede34C2714aFfb3105539775f7FE64)