domain | cadence-lang.org |
summary | **Summary:**
- In Cadence, a programming language for smart contracts: - You can define an NFT (Non-Fungible Token) using `create NFT`. - An NFT has methods like `.greet` which can be called. - After interacting with the NFT, you can return a greeting message. - Here's a simplified version of your code: ```cadence access(all) fun main(): String { let nft = create NFT() let greeting = nft.greet() destroy nft return greeting } ``` - Cadence allows developers to extend existing types with new functionality and data, without requiring the original author's involvement or foresight. This is achieved through the `attachments` feature. - The overall goal of Cadence is to empower everyone to explore and advance smart contracts and on-chain logic. |
title | Hello from Cadence | Cadence |
description | Cadence is a resource-oriented programming language that introduces new features to smart contract programming that help developers ensure that their code is safe, secure, clear, and approachable. |
keywords | cadence, smart, contracts, developers, programming, security, safety, logic, code, contract, resource, language, resources, design, experiences, like, transaction |
upstreams |
flow.com |
downstreams |
|
nslookup | A 76.76.21.21 |
created | 2024-11-30 |
updated | 2025-04-25 |
summarized | 2025-04-25 |
|
|