Circular Developer Docs
BuildNetworkGuidesConceptsStandards & ResourcesResources
  • Overview
  • Developer Guides
    • Get Started
    • Install Circular
  • Your first dApp on Circular
    • Introduction to Hyper Code IDE
      • Smart Contract Project Files
      • Project Files
      • CRC_Contract
      • Contract Method
    • Smart Contracts
      • Creating your first smart contract
      • Debugging
      • Deployment
      • Smart Contract Interaction
    • Wallet Access
      • Circular Wallet Architecture
      • Native CRC Wallet
      • Custom Wallet Data
    • Your First Token
      • Simple Token Balance
      • GetBalance Function
      • Drop Function
      • Transfer Function
    • Hyper Code Libraries
      • sha256.hc
      • secp256k1.hc
      • StrUtil.hc
  • Smart Contracts on Circular
    • Smart Contracts (Hyper Code)
      • Get Started
      • Why Hyper Code
      • Compiling
      • Testing
      • Debugging
Powered by GitBook
On this page
  1. Your first dApp on Circular
  2. Smart Contracts

Smart Contract Interaction

We’ve reached a key milestone—deploying our first smart contract. Now it’s time to interact with it! Be sure to save the smart contract address, usually the same as the transaction ID, as it’s essential for future interactions. If lost, you can recover it via the blockchain explorer.

With the contract deployed, you can now interact either directly through the IDE or by using the Circular Protocol APIs. As discussed earlier, there are two main ways to interact with your contract:

1. Directly through the IDE

2. Using Circular Protocol APIs for seamless integration.

Regular Transactions: These are submitted and executed as part of a blockchain block. To verify the outcome, you can check the blockchain explorer using the transaction’s unique ID.

Single Node Calls (SNCs): These aren’t full transactions but simple contract queries executed by a single node. The output is displayed in the IDE’s output section, similar to debugging.

Both interactions are easily managed within the IDE. To perform a regular transaction, simply enter the contract call into the Payload Terminal. Here’s an example to guide you:

<IMAGE>

For Single Node Calls we need to remember that the call will require a SNC method:

<IMAGE>

Instead of clicking the transaction icon, click the call icon to the left. Unlike a transaction, the call generates an immediate output, which will be displayed in the output section without creating a blockchain transaction.

PreviousDeploymentNextWallet Access

Last updated 7 months ago