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.