npm install
Deploy your contract in a sandbox and simulate interactions from users.
npm test
Build the contract and deploy it in a testnet account
npm run deploy
1.When you run */.sh file and get this error : "/bin/bash^M:bad interpreter:No such file or directory"
2.RPC error:"Retrying HTTP request for https://rpc.testnet.near.org because of error: FetchError: request to https://rpc.testnet.near.org/ failed, reason: Client network socket disconnected before secure TLS connection was established"
You should run this two commands orderly:
export NEAR_CLI_TESTNET_RPC_SERVER_URL=https://hk.bsngate.com/api/1e7227ced74cdd9507575cf08bef7d1ff715db9c8d9befd945b766a86c2ea1fd/Near-Testnet/rpc
near set-api-key https://hk.bsngate.com/api/1e7227ced74cdd9507575cf08bef7d1ff715db9c8d9befd945b766a86c2ea1fd/Near-Testnet/rpc 29e93a93a9868bb25fadf2f5cf19848ca87b31797f963b314b462cbb79dc32ea