NEAR Lucky Quote - NEAR Blockchain example app for NEAR Certificated Developer I certificate
-
Clone repo with
git clone
-
Install dependencies
yarn
--- Follow 3. to 6. or check scripts in
./scripts
--- -
Build Web Assembly file
yarn build:release
-
Deploy to NEAR testnet
near dev-deploy ./build/release/singleton.wasm
and copy temporary account id -
Set CONTRACT env variable with that account id
export CONTRACT=<dev-123-456>
-
Call method from deployed smart contract
near call $CONTRACT generateLuckyQuote --accountId $CONTRACT
Check out front end code from NEAR Certificated Developer II that this application is using