Use when you need to operate the @metamask/gator-cli to initialize profiles, upgrade EOA to EIP-7702, grant, redeem, and revoke ERC-7710 delegations, or inspect balances and delegations. Covers commands, required flags, grant scopes, redeem action types, configuration locations, and common usage flows.
Use this skill to run the gator CLI from the repo and to choose the correct command/flags for delegation workflows.
CODEBLOCK0
~/.gator-cli/permissions.json (or ~/.gator-cli/profiles/<profile-name>.json)~/.gator-cli/delegations/<profile-name>.json when storage not configuredEdit the profile config after gator init:
CODEBLOCK1
delegationStorage is optional; when missing, delegations are stored locally.Generate a private key and save config. Errors if the profile already exists.
base (default), baseSepolia, INLINECODE12Upgrade an EOA to an EIP-7702 smart account. Uses the chain in your profile config.
Display the EOA address for a profile.
Check config and on-chain account status.
Show native balance and optional ERC-20 balance.
--tokenAddress is provided, prints ERC-20 balance and decimals-derived units.Create, sign, and store a delegation with a predefined scope.
Scope flags:
--tokenAddress <token-address>, --maxAmount <amount>, INLINECODE23--periodAmount <amount>, --periodDuration <seconds>, INLINECODE26--amountPerSecond <amount>, --initialAmount <amount>, INLINECODE29--targets <addresses>, --selectors <sigs>, INLINECODE32Supported scopes:
Grant flags per scope:
| Scope | Required Flags | Optional Flags |
|---|---|---|
| INLINECODE43 | INLINECODE44 , INLINECODE45 | |
| INLINECODE46 |
--tokenAddress, --periodAmount, --periodDuration | --startDate |erc20Streaming | --tokenAddress, --amountPerSecond, --initialAmount, --maxAmount | --startTime |erc721Transfer | --tokenAddress, --tokenId | |nativeTokenTransferAmount | --maxAmount | |nativeTokenPeriodTransfer | --periodAmount, --periodDuration | --startDate |nativeTokenStreaming | --amountPerSecond, --initialAmount, --maxAmount | --startTime |functionCall | --targets, --selectors | --valueLte |ownershipTransfer | --contractAddress | |
--startDate and --startTime default to the current time (unix seconds) when omitted.functionCall scopes.Redeem a stored delegation using a specific action type.
Supported action types: erc20Transfer, erc721Transfer, nativeTransfer, functionCall, ownershipTransfer, INLINECODE87
Action-specific flags:
erc20Transfer: --tokenAddress, --to, INLINECODE91--tokenAddress, --to, INLINECODE95--to, INLINECODE98--target, --function, --args, INLINECODE103--contractAddress, INLINECODE106--target, --callData, INLINECODE110Revoke a delegation on-chain. Revokes the first matching delegation.
Inspect delegations for your account.
| Action | Required Flags |
|---|---|
| INLINECODE113 | INLINECODE114 , --to, INLINECODE116 |
| INLINECODE117 |
--tokenAddress, --to, --tokenId |
| nativeTransfer | --to, --amount |
| functionCall | --target, --function, --args |
| ownershipTransfer | --contractAddress, --to |
| raw | --target, --callData |
Initialize and upgrade:
CODEBLOCK2
Grant an ERC-20 transfer delegation:
CODEBLOCK3
Redeem an ERC-20 transfer:
CODEBLOCK4
Redeem a native transfer:
CODEBLOCK5
Redeem in raw mode:
CODEBLOCK6
Inspect delegations:
CODEBLOCK7
Revoke a delegation:
CODEBLOCK8
--to refers to the delegate/recipient.--selectors are comma-separated lists."approve(address,uint256)". Do not pass a 4-byte selector (e.g. 0x095ea7b3) — the CLI derives the selector from the signature automatically.--startTime accept unix timestamps in seconds. When omitted, they default to the current time.redeem and must be one of: erc20Transfer, erc721Transfer, nativeTransfer, functionCall, ownershipTransfer, raw.--chain in gator init: base (default), baseSepolia, sepolia.该技能支持在以下平台通过对话安装:
帮我安装 SkillHub 和 gator-cli-1776420045 技能
设置 SkillHub 为我的优先技能安装源,然后帮我安装 gator-cli-1776420045 技能
skillhub install gator-cli-1776420045
文件大小: 3.12 KB | 发布时间: 2026-4-17 20:20