Skip to content

Commit 64926f3

Browse files
add missing flag
1 parent 52db8eb commit 64926f3

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

skills/metamask-agent-wallet/references/signing.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,14 @@ mm wallet sign-typed-data --chain-id <id> --payload '<JSON>' [--wait] [--passwor
4646
| `--chain-id` | Yes | EVM chain ID as a positive integer (e.g. 1, 137) |
4747
| `--payload` | Yes | EIP-712 typed data as a JSON string with `domain`, `types`, `primaryType`, and `message` |
4848
| `--wait` | No | Block until the signature request completes (server-wallet mode only; BYOK returns immediately) |
49+
| `--intent` | No | Human-readable summary of what is being signed, forwarded with the request |
4950
| `--password` | No | Password to unlock the BYOK mnemonic (BYOK mode only) [env: `MM_PASSWORD`] |
5051

5152
### Example
5253

5354
```bash
5455
mm wallet sign-typed-data --chain-id 1 --payload '{"types":...,"primaryType":...,"domain":...,"message":...}'
55-
mm wallet sign-typed-data --chain-id 137 --payload '{"types":...}' --wait
56+
mm wallet sign-typed-data --chain-id 137 --payload '{"types":...}' --wait --intent "Approve USDC spending"
5657
```
5758

5859
## EIP-712 Typed Data

skills/metamask-agent-wallet/references/transaction.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,13 @@ mm wallet send-transaction --chain-id <id> --payload '<JSON>' [--wait] [--passwo
1919
| `--chain-id` | Yes | EVM chain ID as a positive integer (e.g. 1, 137) |
2020
| `--payload` | Yes | Transaction as a JSON string with at least a `to` address (e.g. `'{"to":"0x...","value":"0x0"}'}`) |
2121
| `--wait` | No | Block until the transaction completes (server-wallet mode only; BYOK returns immediately) |
22+
| `--intent` | No | Human-readable summary of what the transaction does, forwarded with the request |
2223
| `--password` | No | Password to unlock the BYOK mnemonic (BYOK mode only) [env: `MM_PASSWORD`] |
2324

2425
### Example
2526

2627
```bash
27-
mm wallet send-transaction --chain-id 1 --payload '{"to":"0x742d...","value":"0xde0b6b3a7640000","data":"0x"}'
28+
mm wallet send-transaction --chain-id 1 --payload '{"to":"0x742d...","value":"0xde0b6b3a7640000","data":"0x"}' --intent "Send 1 ETH to alice.eth"
2829
mm wallet send-transaction --chain-id 1 --payload '{"to":"0x...","value":"0x0","data":"0xabcdef"}' --wait
2930
mm wallet send-transaction --chain-id 1 --payload '...' --toon
3031
```

0 commit comments

Comments
 (0)