Learn NEAR Smart Contracts
import { NearBindgen, view } from "near-sdk-js";
@NearBindgen({})
class Contract {
constructor({ greeting } = { greeting: "hello" }) {
this.greeting = greeting;
}
@view({})
get_greeting() {
return this.greeting;
}Join a community of developers
Last updated
Was this helpful?





