Our Donation example enables to forward money to an account while keeping track of it. It is one of the simplest examples on making a contract receive and send money.
- How to receive and transfer $NEAR on a contract.
- How to divide a project into multiple modules.
- How to handle the storage costs.
- How to handle transaction results.
- How to use a
Map.
Clone this repository locally or open it in gitpod. Then follow these steps:
npm installDeploy your contract in a sandbox and simulate interactions from users.
npm testBuild the contract and deploy it in a testnet account
npm run deployStart the web application to interact with your smart contract
npm start- Learn more about the contract through its README.
- Check our documentation.
