Execute write functions on any smart contract from your agent wallet. Common uses include approving token allowances, interacting with DeFi protocols, or calling custom contract logic.Documentation Index
Fetch the complete documentation index at: https://developers.circle.com/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
Before you begin, ensure you have:- Installed Node.js v20.18.2 or later.
-
Installed Circle CLI:
- Completed the Agent Wallets quickstart (authenticates and funds your wallet).
Steps
Follow these steps to execute a smart contract function.Find the contract address
For Circle contracts (USDC, CCTP, Gateway), look up the address for your
blockchain:
Execute the contract function
Run The CLI waits for the transaction to reach a terminal state and returns the
result:If the transaction fails, the CLI prints the reason. Verify the contract
address, function signature, and parameters, then retry.
circle wallet execute with the ABI function signature, parameters,
and contract address:--amount to send native token value with
the call.