- AssemblyScript is a dialect of TypeScript programming language that compiles to WebAssembly. The syntax resembles JavaScript, but with strict and static typing. One can think of it as a mix of TypeScript’s high level syntax and C’s low-level capabilities. Thanks to this, the resulting WebAssembly modules can profit from predictable performance while guaranteeing a small binary size. However, this comes with the tradeoff of having to strictly type all variables and structures, and therefore not having
any
,union
types orundefined
variables. -
::caution
Because of its maturity and safety features, we strongly recommend to use Rust when writing financial contracts. - ::
Get Started Now!
Create your first Assemblyscript contract in minutes:
- Download and install Node.js.
- Create a new project using our quickstart guide.
- Continue reading what is a smart contract?.
Resources
- Github: https://github.com/near/near-sdk-as
- Examples: https://docs.near.org/tutorials/welcome