TESTNET, COGN has no monetary value. For testing purposes only.Get your free 500 COGN

Smart Contracts

Deploy and call sandboxed on-chain programs. Gas fees are paid in COGN and burned.

Smart contracts run as PUBLIC, on-chain code in a sandbox. Anyone can read a contract's code, comments, and stored state, never put passwords, secrets, or private personal data in a contract. You are responsible for the code you deploy.

What is a smart contract? (in plain words)

A smart contract is a small program you put on the blockchain. Once deployed, it follows its own rules exactly and nobody, not even you, can change it or switch it off. You send it an input, it updates its saved state, and returns a result: a tamper-proof rulebook that thousands of computers agree on.

Can do
  • Run logic & math, conditions, loops, calculations
  • Store data permanently on-chain (balances, records, lists)
  • Accept inputs as JSON, numbers, text, or objects
  • Power ledgers, registries, voting, membership, escrow rules
  • Move COGN, pay out from the contract's own funded balance
  • Use deterministic time & randomness (block timestamp + seed)
Not supported yet
  • Call other contracts (planned with the WebAssembly upgrade)
  • Reach the internet or files directly, use an oracle for outside data

Gas: deploying this contract costs ~35 COGN, it scales with contract size (max 150 COGN); each call costs 1 COGN. Both are burned (deflationary).

Checking wallet…

Deploy a Contract

Start from a template:

Deployed Contracts (0)

No contracts deployed yet. Deploy one above.