> For the complete documentation index, see [llms.txt](https://docs.frequencychain.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.frequencychain.org/15.-apis-and-sdk-integration/15.5-integrating-smart-contracts-via-apis.md). Agents can also search and read this documentation through its [MCP server](https://docs.frequencychain.org/~gitbook/mcp).

# 15.5 Integrating Smart Contracts via APIs

Applications frequently interact with deployed smart contracts. This requires contract address, ABI (Application Binary Interface) and provider or wallet.

Example:

```
const contract = new ethers.Contract(contractAddress, abi, wallet);

const result = await contract.getValue();
await contract.setValue(50);
```

This enables seamless interaction between application logic and blockchain state.
