├── index.html ├── README.md ├── login.html ├── login-advanced.html ├── contract.html └── contract-advanced.html /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | NEAR-powered Frontend 8 | 9 | 10 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # `near-api-js` Starter Kit 2 | 3 | This is a simple project to help you get started with frontend development on NEAR Protocol 4 | 5 | ## Quick Reference 6 | 7 | [near-api-js / quick-reference](https://github.com/near/near-api-js/blob/master/examples/quick-reference.md) 8 | 9 | ## Cookbook 10 | 11 | [near-api-js / cookbook](https://github.com/near/near-api-js/tree/master/examples/cookbook) 12 | 13 | ## Files 14 | 15 | ```txt 16 | ├── index.html # default page, nothing here 17 | ├── login.html # code to login to NEAR Wallet 18 | ├── contract.html # code to call view and change methods (basic) 19 | └── contract-advanced.html # code to call view and change methods (advanced) 20 | ``` 21 | -------------------------------------------------------------------------------- /login.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Login to NEAR 8 | 9 | 10 | 11 | 16 |
17 | 18 | 19 | 64 | 65 | 66 | -------------------------------------------------------------------------------- /login-advanced.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 67 | 68 | 69 | -------------------------------------------------------------------------------- /contract.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Call Contract Methods using NEAR 8 | 9 | 10 | 11 | 16 |
17 | 18 |
19 | 20 |
21 | 22 | 23 | 69 | 70 | 71 | -------------------------------------------------------------------------------- /contract-advanced.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | Call Contract Methods using NEAR 8 | 9 | 10 | 11 | 12 | 17 |
18 | 19 |
20 | 21 |
22 | 23 | 24 | 116 | 117 | 118 | --------------------------------------------------------------------------------