Skip to main content

Basic instructions

To compile release version of the smart contract you can run a build script (specified in package.json for your project as { build: near-sdk-js build, ... }):

npm run build
info

The above build command seeks a index.js file in /src and outputs a contract.wasm file in a newly created /build folder at the same level as /src. For more information, see the source code for the CLI commands here.

Was this page helpful?