Skip to content

feat(cli): add call command for arbitrary contract calls#119

Merged
JamesLawton merged 1 commit into
mainfrom
feat/cli-generic-call-command
Jun 8, 2026
Merged

feat(cli): add call command for arbitrary contract calls#119
JamesLawton merged 1 commit into
mainfrom
feat/cli-generic-call-command

Conversation

@AkshatGada

Copy link
Copy Markdown
Collaborator

Adds polygon-agent call --to <addr> --data 0x... [--value <amount>] [--wallet <name>] [--chain <name|id>] [--prefer-native-fee] [--broadcast], a thin wrapper over the existing runDappClientTx primitive that submits any pre-encoded calldata through the active wallet session. Users encode function calls with viem/ethers/cast and hand the calldata to the CLI directly, no domain-specific helpers required.

Default gas-payment path mirrors the rest of the CLI: pay in an ERC20 fee token (USDC etc.). Pass --prefer-native-fee to use the chain's native token (POL/ETH) instead , useful when the wallet has only native

Adds `polygon-agent call --to <addr> --data 0x... [--value <amount>]
[--wallet <name>] [--chain <name|id>] [--prefer-native-fee]
[--broadcast]`, a thin wrapper over the existing runDappClientTx
primitive that submits any pre-encoded calldata through the active
wallet session. Users encode function calls with viem/ethers/cast
and hand the calldata to the CLI directly, no domain-specific
helpers required.

Default gas-payment path mirrors the rest of the CLI: pay in an
ERC20 fee token (USDC etc.). Pass --prefer-native-fee to use the
chain's native token (POL/ETH) instead — useful when the wallet has
only native
@JamesLawton JamesLawton merged commit 96fce51 into main Jun 8, 2026
5 checks passed
@JamesLawton JamesLawton deleted the feat/cli-generic-call-command branch June 8, 2026 12:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants