We refreshed our doc site!

Bookmarked links may have changed

Read release notes

Web3 Services

Smart Contract Platform

The Smart Contract Platform (SCP) lets developers intuitively utilize onchain smart contracts in their apps. It allows them to facilitate the creation, deployment, and execution of smart contracts via the Developer Console or via APIs, ensuring flexibility and ease of integration. SCP aims to make it easy for developers to use smart contracts to get real-world utility into their apps.

Some examples of what developers can do using the SCP:

  1. Deploying Custom Contracts: Bring your custom contracts to life by efficiently deploying them onto the blockchain network, expanding the functionality and capabilities of your application.
  2. Deploying NFT Contracts: Easily deploy NFT contracts and programmatically mint unique tokens for end-users, enabling the creation of digital assets and collectibles.
  3. Creating On-Chain Loyalty Programs: Establish on-chain loyalty programs within your applications, allowing users to earn and redeem rewards seamlessly.
  4. Interacting with DeFi Projects: Effortlessly integrate with popular DeFi projects like Uniswap, enabling users to interact with decentralized exchanges and other financial services with just a few clicks.
  5. Integrating Circle Contracts: Seamlessly incorporate Circle contracts, such as CCTP (Cross-Chain Transfer Protocol), into your application, providing secure and efficient transfer functionalities.

Explore smart contracts

The Web3 Services console allows developers to view the details of any smart contract. Developers can import a smart contract by adding its address and chain. Once imported, developers can explore the contract, view the ABI functions, read the source code, see all transactions, subscribe to events, or execute function calls.

Deploy smart contracts

Developers can deploy smart contracts using SCP by writing their contracts or using pre-vetted templates provided by Circle. To deploy a contract, developers need to create a Developer-controlled wallet using Circle's Programable wallets and use it to deploy the contract across any supported chains. Deployment can be done through the console in a no-code way or programmatically using APIs.

Deploy a custom contract

If you have already written a smart contract on an IDE, you can deploy it by providing the compiled bytecode and ABI. For console deployment, create a console wallet (a smart contract wallet) and use it to deploy the contract on the desired chain. Include the source code, ABI, and bytecode for API deployment in the request parameters.

Deploy contracts with templates

For developers unfamiliar with smart contract engineering, Templates provide code snippets to deploy contracts without writing any solidity code. These templates, curated by the Circle team and audited by third-party auditors, cover popular on-chain use cases. Fill in the required properties and deploy the contract. Templates can be deployed through the console or APIs.

Some templates that we support include:

  • Token (ERC-20) contract, by Thirdweb
  • NFT (ERC-721) contract, by Thirdweb
  • NFT (ERC-1155) contract, by Thirdweb

What's next: We are continuously improving the deployment experience and will soon support using SCP via your favorite IDE, deploying proxy contracts, and deploying gasless contracts. We will also be launching new templates.

Manage smart contracts

Once deployed, you can use the console to manage your smart contracts. This includes viewing analytics, calling contract admin functions (e.g. changing ownership, updating configs) or subscribing to events. The console provides an easy way to update and manage contracts post-deployment. Developers can access analytics such as transactions and events for contracts deployed using SCP via APIs.

Interact with smart contracts

Interacting with smart contracts allows you to integrate existing on-chain contracts into your applications. Import the contract and explore its various functions. You can add parameters and generate API resources to interact with the contract in a straightforward manner.


WHAT'S NEXT

Head over to our quickstart and deploy your first smart contract!

Did this page help you?
© 2023-2024 Circle Technology Services, LLC. All rights reserved.