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 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
- Learn more about the contract through its README.
- Check our documentation.