Skip to content

neargami/neargami-coin-smartcontract

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NearGami Coin (NGC)

This project is created by following https://docs.near.org/build/smart-contracts/quickstart

YOU NEED TO CHEKC before anything: https://neargami.com/legal-disclaimer

Quickstart

  1. Make sure you have installed node.js >= 16.
  2. Install the NEAR CLI

1. Build and Test the Contract

You can automatically compile and test the contract by running:

npm run build

2. Create an Account and Deploy the Contract

You can create a new account and deploy the contract by running:

near create-account <your-account.testnet> --useFaucet
near deploy <your-account.testnet> build/release/hello_near.wasm

3. View and Call methods

View methods can be called for free by anyone, even people without a NEAR account!

# Use near-cli to get the greeting
near view <your-account.testnet> any_view_method

Call methods can only be invoked using a NEAR account, since the account needs to pay GAS for the transaction.

# Use near-cli to set a new greeting
near call <your-account.testnet> any_call_method '{"param1":"howdy"}' --accountId <your-account.testnet>

Tip: If you would like to call any_call_method using another account, first login into NEAR using:

# Use near-cli to login your NEAR account
near login

and then use the logged account to sign the transaction: --accountId <another-account>.

License

MIT

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published