What is Smart Contract Interaction?
A smart contract interaction is any transaction that calls a function on a deployed smart contract — encompassing all DeFi operations, token transfers, NFT minting, and on-chain governance actions.
WHY IT MATTERS
Smart contract interactions are the fundamental building blocks of on-chain activity. Every DeFi swap, lending deposit, NFT mint, and governance vote is a contract interaction — a transaction that triggers code execution on the blockchain.
The interaction flow: encode the function call (ABI encoding), sign the transaction, submit to the network, wait for inclusion in a block, and verify the receipt. SDKs handle most of this complexity.
For AI agents, contract interactions are the primary mechanism for executing on-chain actions. The agent decides what to do; the interaction executes it on the blockchain.
HOW POLICYLAYER USES THIS
PolicyLayer intercepts smart contract interactions from AI agents. Before any agent transaction reaches the blockchain, PolicyLayer validates the interaction against policies: is this contract allowed? Is the token approved? Does the amount fit within the budget? Only policy-compliant interactions are executed.