The Ant Blockchain contract platform supports writing and compiling Solidity smart contracts. The platform's Solidity implementation differs from native Solidity in specific ways — this guide covers those differences, along with the syntax, semantics, and platform-specific operations you need to develop contracts on the platform.
For the complete Solidity language reference, see Solidity documentation.
Choose between Solidity and WASM contracts
The contract platform supports two contract types. Choose based on your requirements:
| Solidity contracts | WASM contracts | |
|---|---|---|
| Privacy APIs | Not supported | Supported |
| Cryptographic APIs | Not supported | Supported (zero-knowledge proof, homomorphic encryption) |
| Best for | Standard smart contract logic | Privacy-preserving or cryptographic use cases |
If your contract requires zero-knowledge proof or homomorphic encryption, use WASM contracts instead.
What this guide covers
The child pages in this section cover:
Solidity syntax and semantics as implemented on the Ant Blockchain contract platform
Platform-specific functions and operations
Behavioral differences between platform Solidity and native Solidity smart contracts